git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v1 2/2] t/README: document test_cmp_rev

From
Thomas Gummerer <t.gummerer@gmail.com>
Date
Nov 26, 2017, 20:21 UTC
Message-ID
<20171126202100.1658-2-t.gummerer@gmail.com>
In-Reply-To
<20171126202100.1658-1-t.gummerer@gmail.com>

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>
---
 t/README | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/t/README b/t/README
index 448569b60e..e867d1f8bd 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.
-- 
2.15.0.426.gb06021eeb
Previous: Thomas GummererNext: Jonathan Nieder
Message 2 of 5 in “t/README: remove mention of adding copyright notices”
  1. 1/2 t/README: remove mention of adding copyright noticesThomas Gummerer, Nov 26, 2017
  2. 2/2 t/README: document test_cmp_revThomas Gummerer, Nov 26, 2017
  3. Jonathan NiederDec 5, 2017
  4. Jonathan NiederDec 5, 2017
  5. Thomas GummererDec 8, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.