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 <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Philippe Blain committed
Jun 26, 2023 at 16:24 UTC
0a868031edee0f7a38b42e13c8017d6cbbb4af1b
1 file changed
+4
diff.c
+4
@@ -5491,6 +5491,10 @@ static int diff_opt_rotate_to(const struct option *opt, const char *arg, int uns
5491
return 0;
5492
}
5493
5494
+/*
5495
+ * Consider adding new flags to __git_diff_common_options
5496
+ * in contrib/completion/git-completion.bash
5497
+ */
5498
struct option *add_diff_options(const struct option *opts,
5499
struct diff_options *options)
5500
{