Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
combine-diff: diff-files fix (#2)
author
Junio C Hamano
<junkio@cox.net>
Tue, 14 Feb 2006 09:11:42 +0000
(
01:11
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 14 Feb 2006 09:11:42 +0000
(
01:11
-0800)
The raw format "git-diff-files -c" to show unmerged state forgot
to initialize the status fields from parents, causing NUL
characters to be emitted.
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-files.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
713a11f
)
diff --git
a/diff-files.c
b/diff-files.c
index 7db5ce6407b9755e42445a7cf43d6dc5615bf3e7..0c3f80046b51abd3c44da61a71dce7da3a712518 100644
(file)
--- a/
diff-files.c
+++ b/
diff-files.c
@@
-150,6
+150,8
@@
int main(int argc, const char **argv)
nce->sha1, 20);
combine.p.parent[stage-2].mode =
DIFF_FILE_CANON_MODE(mode);
+ combine.p.parent[stage-2].status =
+ DIFF_STATUS_MODIFIED;
}
/* diff against the proper unmerged stage */