projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
compact
(merge:
70e1cca
1142038
)
Merge branch 'maint'
author
Junio C Hamano
<junkio@cox.net>
Thu, 2 Mar 2006 07:20:31 +0000
(23:20 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 2 Mar 2006 07:20:31 +0000
(23:20 -0800)
* maint:
read-tree --aggressive: remove deleted entry from the working tree.
1
2
read-tree.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --combined
read-tree.c
index
f39fe5c
,
da0fcf0
..
c56b572
---
1
/
read-tree.c
---
2
/
read-tree.c
+++ b/
read-tree.c
@@@
-404,7
-404,7
+404,7
@@@
static void verify_uptodate(struct cach
return;
if (!lstat(ce->name, &st)) {
- unsigned changed = ce_match_stat(ce, &st);
+ unsigned changed = ce_match_stat(ce, &st
, 1
);
if (!changed)
return;
errno = 0;
@@@
-560,9
-560,11
+560,11
@@@
static int threeway_merge(struct cache_
*/
if ((head_deleted && remote_deleted) ||
(head_deleted && remote && remote_match) ||
- (remote_deleted && head && head_match))
+ (remote_deleted && head && head_match)) {
+ if (index)
+ return deleted_entry(index, index);
return 0;
-
+ }
/*
* Added in both, identically.
*/