mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	revert the removed method to fix tmpl break on graph page (#25005)
Fix #24996 Caused by #24634
This commit is contained in:
		| @@ -53,6 +53,11 @@ func (ref *Reference) Commit() (*Commit, error) { | |||||||
| 	return ref.repo.getCommit(ref.Object) | 	return ref.repo.getCommit(ref.Object) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // ShortName returns the short name of the reference | ||||||
|  | func (ref *Reference) ShortName() string { | ||||||
|  | 	return RefName(ref.Name).ShortName() | ||||||
|  | } | ||||||
|  |  | ||||||
| // RefGroup returns the group type of the reference | // RefGroup returns the group type of the reference | ||||||
| func (ref *Reference) RefGroup() string { | func (ref *Reference) RefGroup() string { | ||||||
| 	return RefName(ref.Name).RefGroup() | 	return RefName(ref.Name).RefGroup() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user