aboutsummaryrefslogtreecommitdiff
path: root/hash.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-15 00:00:00 +0000
committerGravatar Runxi Yu2025-11-15 00:00:00 +0000
commit6655e9f74eac800e26f57ebdb143111726e8b73d (patch)
treedb36fffb1dac361f0ca42023d747081fefaeb14f /hash.go
parentAdd initial support for multi pack indexes (diff)
signature
Use SHA-256 by default
Diffstat (limited to 'hash.go')
-rw-r--r--hash.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/hash.go b/hash.go
index f03866f1..3c6ff6ac 100644
--- a/hash.go
+++ b/hash.go
@@ -1,17 +1,10 @@
package furgit
import (
- "crypto/sha1"
"encoding/hex"
"fmt"
)
-// To change the hash algorithm you probably only need to change these two lines...
-
-const HashSize = sha1.Size
-
-var newHash = sha1.Sum
-
// Hash represents a Git object identifier.
type Hash [HashSize]byte