diff options
author | Philippe Blain <levraiphilippeblain@gmail.com> | 2023-06-26 18:24:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-26 18:40:14 +0200 |
commit | 0a868031edee0f7a38b42e13c8017d6cbbb4af1b (patch) | |
tree | 36aa440679b370b5baad483121cbc335d9dfa575 | |
parent | completion: complete --remerge-diff (diff) | |
download | git-0a868031edee0f7a38b42e13c8017d6cbbb4af1b.tar.xz git-0a868031edee0f7a38b42e13c8017d6cbbb4af1b.zip |
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>
-rw-r--r-- | diff.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5491,6 +5491,10 @@ static int diff_opt_rotate_to(const struct option *opt, const char *arg, int uns return 0; } +/* + * Consider adding new flags to __git_diff_common_options + * in contrib/completion/git-completion.bash + */ struct option *add_diff_options(const struct option *opts, struct diff_options *options) { |