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>
Thomas Gummerer committed
Nov 26, 2017 at 20:21 UTC
5a0526264b472dff1def6b5c6facd0e9a54cbac7
1 file changed
+5
t/README
+5
@@ -674,6 +674,11 @@ library for your script to use.
674
<expected> file. This behaves like "cmp" but produces more
675
helpful output when the test is run with "-v" option.
676
677
+ - test_cmp_rev <expected> <actual>
678
+
679
+ Check whether the <expected> rev points to the same commit as the
680
+ <actual> rev.
681
+
682
- test_line_count (= | -lt | -ge | ...) <length> <file>
683
684
Check whether a file has the length it is expected to.