gm repo is-ancestor
from nu-git-manager-sugar git
(see source)
return true iif the first revision is an ancestor of the second
# HEAD~20 is an ancestor of HEAD
gm repo is-ancestor HEAD~20 HEAD
true
# HEAD is never an ancestor of HEAD~20
gm repo is-ancestor HEAD HEAD~20
false
a
<string
>: the base commit-ish revisionb
<string
>: the head commit-ish revision
input | output |
---|---|
nothing |
bool |