1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

exclude interactive rebase TODO commits from commit graph

This commit is contained in:
Jesse Duffield
2022-01-22 12:56:57 +11:00
parent 5b7dd9e43c
commit 61ccc1efd2
3 changed files with 278 additions and 36 deletions

View File

@ -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 != ""
}