aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2017-11-26 20:21:00 +0000
committerJunio C Hamano <gitster@pobox.com>2017-11-27 10:36:58 +0900
commit5a0526264b472dff1def6b5c6facd0e9a54cbac7 (patch)
tree21944f2f86d9cc9e848e32b85473cd9075762373
parent51b7a525223bfa856b0ab44c7afe517dfeed465a (diff)
downloadgit-5a0526264b472dff1def6b5c6facd0e9a54cbac7.tar.gz
git-5a0526264b472dff1def6b5c6facd0e9a54cbac7.tar.xz
t/README: document test_cmp_rev
test_cmp_rev is a useful function that's used in quite a few test scripts. It is however not documented in t/README. Document it. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/README b/t/README
index 448569b60..e867d1f8b 100644
--- a/t/README
+++ b/t/README
@@ -674,6 +674,11 @@ library for your script to use.
<expected> file. This behaves like "cmp" but produces more
helpful output when the test is run with "-v" option.
+ - test_cmp_rev <expected> <actual>
+
+ Check whether the <expected> rev points to the same commit as the
+ <actual> rev.
+
- test_line_count (= | -lt | -ge | ...) <length> <file>
Check whether a file has the length it is expected to.