From ce0def95f3924a10b0faceb72aa5df18bf813fb1 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sun, 17 Sep 2023 14:00:03 -0600 Subject: GOPHER --- commit.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'commit.go') diff --git a/commit.go b/commit.go index d10dc6d..c7a102d 100644 --- a/commit.go +++ b/commit.go @@ -22,6 +22,10 @@ type Commit struct { Message string } +func (c *Commit) ParentHash() string { + return c.Hash + "^" +} + func (c *Commit) ShortMessage() string { short, _, _ := strings.Cut(c.Message, "\n") return short -- cgit v1.2.3