diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-07-17 09:30:56 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-17 09:30:56 -0700 |
| commit | 86c9c14eb9c7bfa20efd8d65f1aaa685282b7221 (patch) | |
| tree | fd758d24e1db2726312822e7f8e5d1ffcdd13444 /help.c | |
| parent | The eleventh batch (diff) | |
| parent | Enable SHA-256 by default in breaking changes mode (diff) | |
| download | git-86c9c14eb9c7bfa20efd8d65f1aaa685282b7221.tar.gz git-86c9c14eb9c7bfa20efd8d65f1aaa685282b7221.zip | |
Merge branch 'bc/use-sha256-by-default-in-3.0' into ps/config-wo-the-repository
* bc/use-sha256-by-default-in-3.0:
Enable SHA-256 by default in breaking changes mode
help: add a build option for default hash
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 legacy hash for legacy formats
builtin: use default hash when outside a repository
hash: add a constant for the legacy hash algorithm
hash: add a constant for the default hash algorithm
Diffstat (limited to 'help.c')
| -rw-r--r-- | help.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -812,6 +812,7 @@ void get_version_info(struct strbuf *buf, int show_build_options) strbuf_addf(buf, "SHA-256: %s\n", SHA256_BACKEND); strbuf_addf(buf, "default-ref-format: %s\n", ref_storage_format_to_name(REF_STORAGE_FORMAT_DEFAULT)); + strbuf_addf(buf, "default-hash: %s\n", hash_algos[GIT_HASH_DEFAULT].name); } } |
