aboutsummaryrefslogtreecommitdiffstats
path: root/repository/git.go
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-09-22 11:48:48 +0200
committeramine <hilalyamine@gmail.com>2019-11-09 13:25:07 +0100
commit3433fa5def3fb3c2707bae1aeb4ae1bd62c930de (patch)
tree80722ad58a765e878ebe43dd602607ae0d562ecb /repository/git.go
parent967e168333a7c3057cf77f9c3f890ea1bbf7a1df (diff)
downloadgit-bug-3433fa5def3fb3c2707bae1aeb4ae1bd62c930de.tar.gz
commands: use token value as identifier
Diffstat (limited to 'repository/git.go')
-rw-r--r--repository/git.go12
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{}