From 6655e9f74eac800e26f57ebdb143111726e8b73d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Nov 2025 00:00:00 +0000 Subject: Use SHA-256 by default --- hash.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'hash.go') 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 -- cgit v1.3.1-10-gc9f91