diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-03-07 00:59:57 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-07 00:59:58 (GMT) |
commit | b0e7fb2e5cc70a03d75e41fe6b1bde6fdc0872c8 (patch) | |
tree | d07202c20257da961faf1f9a2d4852371c0289ca /diff.c | |
parent | 4751a1673c7d4aeb1b6462f89fa7d86c05898d05 (diff) | |
parent | 5a59a2301f6ec9bcf1b101edb9ca33beb465842f (diff) | |
download | git-b0e7fb2e5cc70a03d75e41fe6b1bde6fdc0872c8.zip git-b0e7fb2e5cc70a03d75e41fe6b1bde6fdc0872c8.tar.gz git-b0e7fb2e5cc70a03d75e41fe6b1bde6fdc0872c8.tar.bz2 |
Merge branch 'nd/completion-more-parameters'
The command line completion (in contrib/) has been taught to
complete more subcommand parameters.
* nd/completion-more-parameters:
completion: add more parameter value completion
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -179,6 +179,10 @@ static int parse_submodule_params(struct diff_options *options, const char *valu options->submodule_format = DIFF_SUBMODULE_SHORT; else if (!strcmp(value, "diff")) options->submodule_format = DIFF_SUBMODULE_INLINE_DIFF; + /* + * Please update $__git_diff_submodule_formats in + * git-completion.bash when you add new formats. + */ else return -1; return 0; @@ -205,6 +209,10 @@ long parse_algorithm_value(const char *value) return XDF_PATIENCE_DIFF; else if (!strcasecmp(value, "histogram")) return XDF_HISTOGRAM_DIFF; + /* + * Please update $__git_diff_algorithms in git-completion.bash + * when you add new algorithms. + */ return -1; } |