mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
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:
parent
e8d84a1f2c
commit
e5fa9e1c4a
3 changed files with 5 additions and 2 deletions
|
@ -282,7 +282,7 @@ func (self *LocalCommitsController) GetOnRenderToMain() func() error {
|
|||
utils.ResolvePlaceholderString(
|
||||
self.c.Tr.UpdateRefHere,
|
||||
map[string]string{
|
||||
"ref": commit.Name,
|
||||
"ref": strings.TrimPrefix(commit.Name, "refs/heads/"),
|
||||
}))
|
||||
} else {
|
||||
cmdObj := self.c.Git().Commit.ShowCmdObj(commit.Sha, self.c.Modes().Filtering.GetPath())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue