chiark / gitweb /
Test suite: Document args to t-has-ancestor
[dgit.git] / 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`