Skip to content

Commit 5a05262

Browse files
tgummerergitster
authored andcommitted
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>
1 parent 51b7a52 commit 5a05262

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,11 @@ library for your script to use.
674674
<expected> file. This behaves like "cmp" but produces more
675675
helpful output when the test is run with "-v" option.
676676

677+
- test_cmp_rev <expected> <actual>
678+
679+
Check whether the <expected> rev points to the same commit as the
680+
<actual> rev.
681+
677682
- test_line_count (= | -lt | -ge | ...) <length> <file>
678683

679684
Check whether a file has the length it is expected to.

0 commit comments

Comments
 (0)