summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-22 12:56:57 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-22 15:12:24 +1100
commit61ccc1efd287b022cf29059914788152fb9f09ad (patch)
tree425b5c6ad279a828fde29233a2abde1fef9585e1 /pkg/commands
parent5b7dd9e43ccd2b82f07f0f0ff0ee8d54d0ecba11 (diff)
exclude interactive rebase TODO commits from commit graph
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/models/commit.go6
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 != ""
+}