diff.c: return filepair from diff_unmerge()
The underlying diff_queue() returns diff_filepair so that the caller can further add information to it, and the helper function diff_unmerge() utilizes the feature itself, but does not expose it to its callers, which was kind of selfish. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
2
diff.h
2
diff.h
@ -209,7 +209,7 @@ extern void diff_change(struct diff_options *,
|
||||
const char *fullpath,
|
||||
unsigned dirty_submodule1, unsigned dirty_submodule2);
|
||||
|
||||
extern void diff_unmerge(struct diff_options *,
|
||||
extern struct diff_filepair *diff_unmerge(struct diff_options *,
|
||||
const char *path,
|
||||
unsigned mode,
|
||||
const unsigned char *sha1);
|
||||
|
Reference in New Issue
Block a user