aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lfs/pointer.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lfs/pointer.go')
-rw-r--r--modules/lfs/pointer.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/lfs/pointer.go b/modules/lfs/pointer.go
index f7f225bf1c..d7653e836c 100644
--- a/modules/lfs/pointer.go
+++ b/modules/lfs/pointer.go
@@ -13,8 +13,6 @@ import (
"strconv"
"strings"
- "code.gitea.io/gitea/modules/log"
-
"github.com/minio/sha256-simd"
)
@@ -113,15 +111,11 @@ func (p Pointer) RelativePath() string {
return path.Join(p.Oid[0:2], p.Oid[2:4], p.Oid[4:])
}
-// ColorFormat provides a basic color format for a Team
-func (p Pointer) ColorFormat(s fmt.State) {
+func (p Pointer) LogString() string {
if p.Oid == "" && p.Size == 0 {
- log.ColorFprintf(s, "<empty>")
- return
+ return "<LFSPointer empty>"
}
- log.ColorFprintf(s, "%s:%d",
- log.NewColoredIDValue(p.Oid),
- p.Size)
+ return fmt.Sprintf("<LFSPointer %s:%d>", p.Oid, p.Size)
}
// GeneratePointer generates a pointer for arbitrary content