diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-22 12:56:57 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-22 15:12:24 +1100 |
commit | 61ccc1efd287b022cf29059914788152fb9f09ad (patch) | |
tree | 425b5c6ad279a828fde29233a2abde1fef9585e1 /pkg/commands | |
parent | 5b7dd9e43ccd2b82f07f0f0ff0ee8d54d0ecba11 (diff) |
exclude interactive rebase TODO commits from commit graph
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/models/commit.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/commands/models/commit.go b/pkg/commands/models/commit.go index 330c525dc..9f9184f2e 100644 --- a/pkg/commands/models/commit.go +++ b/pkg/commands/models/commit.go @@ -40,3 +40,9 @@ func (c *Commit) Description() string { func (c *Commit) IsMerge() bool { return len(c.Parents) > 1 } + +// returns true if this commit is not actually in the git log but instead +// is from a TODO file for an interactive rebase. +func (c *Commit) IsTODO() bool { + return c.Action != "" +} |