diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-25 18:01:32 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-25 18:01:32 +0200 |
commit | 6a12373965aff9f80147f8b5bff6a5a104927365 (patch) | |
tree | ccc1e34fba059512acab39286a86f6b73c5ad318 /repository/repo.go | |
parent | 49c90eab26875cbf3094d9a546ad29b426e174a1 (diff) | |
download | git-bug-6a12373965aff9f80147f8b5bff6a5a104927365.tar.gz |
more refactoring to have reusable bug action across different UI
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go index 6ab7be91..38d8a6cb 100644 --- a/repository/repo.go +++ b/repository/repo.go @@ -48,6 +48,10 @@ type Repo interface { // ListRefs will return a list of Git ref matching the given refspec ListRefs(refspec string) ([]string, error) + // ListIds will return a list of Git ref matching the given refspec, + // stripped to only the last part of the ref + ListIds(refspec string) ([]string, error) + // RefExist will check if a reference exist in Git RefExist(ref string) (bool, error) |