summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-10-22 02:43:31 +0000
committerJunio C Hamano <gitster@pobox.com>2018-10-22 12:59:08 +0900
commit1ccf07cbb762b44746c49634e1c6fb945c9977df (patch)
tree3504b854183d50c51c6faac893a9cfff366a13ca
parent5a0cc8aca797dbd7d2be3b67458ff880ed45cddf (diff)
downloadgit-1ccf07cbb762b44746c49634e1c6fb945c9977df.tar.gz
git-1ccf07cbb762b44746c49634e1c6fb945c9977df.tar.xz
sha1-file: rename algorithm to "sha1"
The transition plan anticipates us using a syntax such as "^{sha1}" for disambiguation. Since this is a syntax some people will be typing a lot, it makes sense to provide a short, easy-to-type syntax. Omitting the dash doesn't create any ambiguity; however, it does make the syntax shorter and easier to type, especially for touch typists. In addition, the transition plan already uses "sha1" in this context. Rename the name of SHA-1 implementation to "sha1". Note that this change creates no backwards compatibility concerns, since we haven't yet used this field in any configuration settings. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--sha1-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-file.c b/sha1-file.c
index a4367b8f0..e29825f25 100644
--- a/sha1-file.c
+++ b/sha1-file.c
@@ -97,7 +97,7 @@ const struct git_hash_algo hash_algos[GIT_HASH_NALGOS] = {
NULL,
},
{
- "sha-1",
+ "sha1",
/* "sha1", big-endian */
0x73686131,
GIT_SHA1_RAWSZ,