diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-08-03 16:46:57 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-08-03 16:48:02 -0700 |
commit | a0b45cc5508ae48b01799ca800e464888ed598be (patch) | |
tree | 52dd72fdc905711123a7ad650ce381b952c1ef70 /plumbing/object/difftree.go | |
parent | b29ccd9cf64cb3c6d7b3fdc6649d97416f3be734 (diff) | |
download | go-git-a0b45cc5508ae48b01799ca800e464888ed598be.tar.gz |
plumbing/object: add Commit.FirstParent
First parents are somewhat special in git.
There's even a --first-parent flag to 'git log'.
Add a helper method to look them up.
This avoids boilerplate and spares the client from
having to arrange for a handle to the Storer,
which is stored in the unexported field Commit.s.
Diffstat (limited to 'plumbing/object/difftree.go')
0 files changed, 0 insertions, 0 deletions