Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 659 Bytes

gm-repo-is-ancestor.md

File metadata and controls

29 lines (25 loc) · 659 Bytes

gm repo is-ancestor from nu-git-manager-sugar git (see source)

return true iif the first revision is an ancestor of the second

Examples

# 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

Parameters

  • a <string>: the base commit-ish revision
  • b <string>: the head commit-ish revision

Signatures

input output
nothing bool