Skip to content

Commit 0a86803

Browse files
phil-blaingitster
authored andcommitted
diff.c: mention completion above add_diff_options
Add a comment on top of add_diff_options, where common diff options are listed, mentioning __git_diff_common_options in the completion script, in the hope that contributors update it when they add new diff flags. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 55245d6 commit 0a86803

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

diff.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5491,6 +5491,10 @@ static int diff_opt_rotate_to(const struct option *opt, const char *arg, int uns
54915491
return 0;
54925492
}
54935493

5494+
/*
5495+
* Consider adding new flags to __git_diff_common_options
5496+
* in contrib/completion/git-completion.bash
5497+
*/
54945498
struct option *add_diff_options(const struct option *opts,
54955499
struct diff_options *options)
54965500
{

0 commit comments

Comments
 (0)