]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sha1-file: rename algorithm to "sha1"
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 22 Oct 2018 02:43:31 +0000 (02:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Oct 2018 03:59:08 +0000 (12:59 +0900)
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>
sha1-file.c

index a4367b8f044c6e9254d2a253149187bdb2be6dd2..e29825f259cbf0962fe4c5a617265cfc438047f4 100644 (file)
@@ -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,