Merge branch 'nd/completion-more-parameters'
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 62c7e5b7780eb35968eb96407e87cc1d60588496..70f25c4db4f26b4eef0a995c54da708c122e314a 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -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;
 }