1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Add ShortRefName to Ref interface

This commit is contained in:
Stefan Haller
2024-08-28 15:33:12 +02:00
parent b07ce19b9a
commit ac335907ae
6 changed files with 21 additions and 0 deletions

View File

@ -18,6 +18,10 @@ func (r *RemoteBranch) RefName() string {
return r.FullName()
}
func (r *RemoteBranch) ShortRefName() string {
return r.RefName()
}
func (r *RemoteBranch) ParentRefName() string {
return r.RefName() + "^"
}