summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2017-11-26 20:21:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-27 01:36:58 (GMT)
commit5a0526264b472dff1def6b5c6facd0e9a54cbac7 (patch)
tree21944f2f86d9cc9e848e32b85473cd9075762373 /t/README
parent51b7a525223bfa856b0ab44c7afe517dfeed465a (diff)
downloadgit-5a0526264b472dff1def6b5c6facd0e9a54cbac7.zip
git-5a0526264b472dff1def6b5c6facd0e9a54cbac7.tar.gz
git-5a0526264b472dff1def6b5c6facd0e9a54cbac7.tar.bz2
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>
Diffstat (limited to 't/README')
-rw-r--r--t/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/README b/t/README
index 448569b..e867d1f 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.