aboutsummaryrefslogtreecommitdiffstats
path: root/entity
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2023-01-17 20:31:58 -0500
committerSteve Moyer <smoyer1@selesy.com>2023-01-17 20:31:58 -0500
commit331e80f2eff161236da2ac4e03c9a2d9493e356c (patch)
tree84d18a86e3a656f30f1724c7f12a618bd9670ed4 /entity
parent0bddfe1d9d737dfbd5c818ac32d79f578129d5d8 (diff)
parent0290091317deb9e6c0ff99f9217065168620d2f0 (diff)
downloadgit-bug-331e80f2eff161236da2ac4e03c9a2d9493e356c.tar.gz
Merge branch 'master' of github.com:MichaelMure/git-bug
Diffstat (limited to 'entity')
-rw-r--r--entity/id.go4
-rw-r--r--entity/id_interleaved.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/entity/id.go b/entity/id.go
index 49398da8..0949bf92 100644
--- a/entity/id.go
+++ b/entity/id.go
@@ -11,7 +11,7 @@ import (
// sha-256
const idLength = 64
-const humanIdLength = 7
+const HumanIdLength = 7
const UnsetId = Id("unset")
@@ -34,7 +34,7 @@ func (i Id) String() string {
// Human return the identifier, shortened for human consumption
func (i Id) Human() string {
- format := fmt.Sprintf("%%.%ds", humanIdLength)
+ format := fmt.Sprintf("%%.%ds", HumanIdLength)
return fmt.Sprintf(format, i)
}
diff --git a/entity/id_interleaved.go b/entity/id_interleaved.go
index 28c59a42..7ae6d72e 100644
--- a/entity/id_interleaved.go
+++ b/entity/id_interleaved.go
@@ -22,7 +22,7 @@ func (ci CombinedId) String() string {
// Human return the identifier, shortened for human consumption
func (ci CombinedId) Human() string {
- format := fmt.Sprintf("%%.%ds", humanIdLength)
+ format := fmt.Sprintf("%%.%ds", HumanIdLength)
return fmt.Sprintf(format, ci)
}