summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2025-07-01 21:22:27 +0000
committerJunio C Hamano <gitster@pobox.com>2025-07-01 14:58:23 -0700
commitca6daa1368eb9b0b48f64ef57907821318d7971c (patch)
treefd48d36667b3b186c3469dab3acd79c1cbf76c33 /builtin/commit.c
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff)
hash: add a constant for the default hash algorithm
Right now, SHA-1 is the default hash algorithm in Git. However, this may change in the future. We have many places in our code that use the SHA-1 constant to indicate the default hash if none is specified, but it will end up being more practical to specify this explicitly and clearly using a constant for whatever the default hash algorithm is. Then, if we decide to change it in the future, we can simply replace the constant representing the default with a new value. For these reasons, introduce GIT_HASH_DEFAULT to represent the default hash algorithm. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions