aboutsummaryrefslogtreecommitdiffstats
path: root/range-diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-17 17:21:41 -0800
committerJunio C Hamano <gitster@pobox.com>2021-02-17 17:21:41 -0800
commit77348b0e6e350ec81b3880f99c6077d165df2276 (patch)
tree19833dbe1ebf5b5300a0a1cc4bc9c8f136b8b617 /range-diff.h
parentMerge branch 'jt/clone-unborn-head' (diff)
parentrange-diff(docs): explain how to specify commit ranges (diff)
downloadgit-77348b0e6e350ec81b3880f99c6077d165df2276.tar.gz
git-77348b0e6e350ec81b3880f99c6077d165df2276.zip
Merge branch 'js/range-diff-wo-dotdot'
There are other ways than ".." for a single token to denote a "commit range", namely "<rev>^!" and "<rev>^-<n>", but "git range-diff" did not understand them. * js/range-diff-wo-dotdot: range-diff(docs): explain how to specify commit ranges range-diff/format-patch: handle commit ranges other than A..B range-diff/format-patch: refactor check for commit range
Diffstat (limited to 'range-diff.h')
-rw-r--r--range-diff.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/range-diff.h b/range-diff.h
index 583ced2e8e..4abd70c40f 100644
--- a/range-diff.h
+++ b/range-diff.h
@@ -16,4 +16,10 @@ int show_range_diff(const char *range1, const char *range2,
const struct diff_options *diffopt,
const struct strvec *other_arg);
+/*
+ * Determine whether the given argument is usable as a range argument of `git
+ * range-diff`, e.g. A..B.
+ */
+int is_range_diff_range(const char *arg);
+
#endif