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>
This commit is contained in:

committed by
Junio C Hamano

parent
c380a48c8b
commit
16bb3d714d
3
diff.h
3
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,
|
||||
|
Reference in New Issue
Block a user