diff options
author | Amine <hilalyamine@gmail.com> | 2019-09-22 11:48:48 +0200 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-11-09 13:25:07 +0100 |
commit | 3433fa5def3fb3c2707bae1aeb4ae1bd62c930de (patch) | |
tree | 80722ad58a765e878ebe43dd602607ae0d562ecb /repository | |
parent | 967e168333a7c3057cf77f9c3f890ea1bbf7a1df (diff) | |
download | git-bug-3433fa5def3fb3c2707bae1aeb4ae1bd62c930de.tar.gz |
commands: use token value as identifier
Diffstat (limited to 'repository')
-rw-r--r-- | repository/git.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/repository/git.go b/repository/git.go index 2b00d1f2..2c72fccd 100644 --- a/repository/git.go +++ b/repository/git.go @@ -15,11 +15,15 @@ import ( "github.com/MichaelMure/git-bug/util/lamport" ) -const createClockFile = "/git-bug/create-clock" -const editClockFile = "/git-bug/edit-clock" +const ( + createClockFile = "/git-bug/create-clock" + editClockFile = "/git-bug/edit-clock" +) -// ErrNotARepo is the error returned when the git repo root wan't be found -var ErrNotARepo = errors.New("not a git repository") +var ( + // ErrNotARepo is the error returned when the git repo root wan't be found + ErrNotARepo = errors.New("not a git repository") +) var _ ClockedRepo = &GitRepo{} |