Skip to content

Commit

Permalink
combine-diff: diff-files fix (#2)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Feb 14, 2006
1 parent 713a11f commit 9ece716
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diff-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9ece716

Please sign in to comment.