diff options
Diffstat (limited to 'commit.go')
-rw-r--r-- | commit.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |