chiark / gitweb /
Test suite: Document args to t-has-ancestor
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 15:03:07 +0000 (15:03 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 19:50:48 +0000 (19:50 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index ee4bfd07bfdc145e31b60a9dc1af312c2f3e01fa..1d189a9203d05785cc0260f6d4fc668a3d06ee2d 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -188,6 +188,8 @@ t-git-merge-base () {
 }
 
 t-has-ancestor () {
+       # t-has-ancestor ANCESTOR
+       # (CHILD is implicit, HEAD)
        local now=`git rev-parse HEAD`
        local ancestor=`git rev-parse $1^{}`
        local mbase=`t-git-merge-base $ancestor $now`