summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-03-24 08:20:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-03-24 13:21:24 (GMT)
commit16bb3d714dcb1bf50f7f96b957c4306dc6df137e (patch)
tree94e12ab57590fba02355d55a5cb05839cbcb57dc /diff.h
parentc380a48c8b40331dd6466d6b565af6d44c7b11bf (diff)
downloadgit-16bb3d714dcb1bf50f7f96b957c4306dc6df137e.zip
git-16bb3d714dcb1bf50f7f96b957c4306dc6df137e.tar.gz
git-16bb3d714dcb1bf50f7f96b957c4306dc6df137e.tar.bz2
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/diff.h b/diff.h
index d9ad73f..03c6afd 100644
--- a/diff.h
+++ b/diff.h
@@ -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,