Store full ref in Name field of update-ref commits

Strip the prefix at presentation time instead. This makes it easier to find
update-ref todos in order to move them up/down, or delete them.
This commit is contained in:
Stefan Haller 2024-03-16 15:48:34 +01:00
parent e8d84a1f2c
commit e5fa9e1c4a
3 changed files with 5 additions and 2 deletions

View file

@ -348,7 +348,7 @@ func (self *CommitLoader) getRebasingCommits(rebaseMode enums.RebaseMode) []*mod
for _, t := range todos {
if t.Command == todo.UpdateRef {
t.Msg = strings.TrimPrefix(t.Ref, "refs/heads/")
t.Msg = t.Ref
} else if t.Commit == "" {
// Command does not have a commit associated, skip
continue