summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-03-03 19:45:54 +0100
committerStefan Haller <stefan@haller-berlin.de>2023-04-01 08:16:15 +0200
commitc6930e0538773d1eaf115b41a6f3acb5a4108ec0 (patch)
tree215923258f90ca9be035000e5af836a4c847af70 /pkg/commands/git_commands
parent3a59aba46d834d66c6c9e0a4d46657a5da06fa8d (diff)
Cleanup: use commit.isTODO() consistently
It seems cleaner than checking the Status for "rebasing".
Diffstat (limited to 'pkg/commands/git_commands')
-rw-r--r--pkg/commands/git_commands/commit_loader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/commit_loader.go b/pkg/commands/git_commands/commit_loader.go
index 84af331b5..119566f08 100644
--- a/pkg/commands/git_commands/commit_loader.go
+++ b/pkg/commands/git_commands/commit_loader.go
@@ -113,7 +113,7 @@ func (self *CommitLoader) MergeRebasingCommits(commits []*models.Commit) ([]*mod
// chances are we have as many commits as last time so we'll set the capacity to be the old length
result := make([]*models.Commit, 0, len(commits))
for i, commit := range commits {
- if commit.Status != "rebasing" { // removing the existing rebase commits so we can add the refreshed ones
+ if !commit.IsTODO() { // removing the existing rebase commits so we can add the refreshed ones
result = append(result, commits[i:]...)
break
}