]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'bc/use-sha256-by-default-in-3.0' into seen
authorJunio C Hamano <gitster@pobox.com>
Tue, 24 Jun 2025 16:49:47 +0000 (09:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jun 2025 16:49:47 +0000 (09:49 -0700)
Prepare to flip the default hash function to SHA-256.

* bc/use-sha256-by-default-in-3.0:
  Enable SHA-256 by default in breaking changes mode
  t5300: choose the built-in hash outside of a repo
  t4042: choose the built-in hash outside of a repo
  t1007: choose the built-in hash outside of a repo
  t: default to compile-time default hash if not set
  setup: use the default algorithm to initialize repo format
  Use original hash for legacy formats
  builtin: use default hash when outside a repository
  hash: add a constant for the original hash algorithm
  hash: add a constant for the default hash algorithm

12 files changed:
1  2 
builtin/diff.c
builtin/hash-object.c
builtin/index-pack.c
builtin/receive-pack.c
builtin/shortlog.c
bundle.c
fetch-pack.c
hash.h
t/t1007-hash-object.sh
t/t5300-pack-object.sh
t/test-lib-functions.sh
t/test-lib.sh

diff --cc builtin/diff.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc bundle.c
Simple merge
diff --cc fetch-pack.c
Simple merge
diff --cc hash.h
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/test-lib.sh
Simple merge