diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-03-24 11:20:13 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-24 16:21:24 +0300 |
commit | 16bb3d714dcb1bf50f7f96b957c4306dc6df137e (patch) | |
tree | 94e12ab57590fba02355d55a5cb05839cbcb57dc /diff.h | |
parent | c380a48c8b40331dd6466d6b565af6d44c7b11bf (diff) |
diff --no-index: use parse_options() instead of diff_opt_parse()
While at there, move exit() back to the caller. It's easier to see the
flow that way than burying it in diff-no-index.c
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -437,7 +437,8 @@ int diff_flush_patch_id(struct diff_options *, struct object_id *, int); int diff_result_code(struct diff_options *, int); -void diff_no_index(struct repository *, struct rev_info *, int, const char **); +int diff_no_index(struct repository *, struct rev_info *, + int implicit_no_index, int, const char **); int index_differs_from(struct repository *r, const char *def, const struct diff_flags *flags, |