]> granicus.if.org Git - git/commitdiff
sha1_file.c: rename to use dash in file name
authorStefan Beller <sbeller@google.com>
Tue, 10 Apr 2018 21:26:20 +0000 (14:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Apr 2018 09:11:00 +0000 (18:11 +0900)
This is more consistent with the project style. The majority of Git's
source files use dashes in preference to underscores in their file names.

Signed-off-by: Stefan Beller <sbeller@google.com>
Documentation/technical/api-object-access.txt
Makefile
builtin/index-pack.c
sha1-file.c [moved from sha1_file.c with 100% similarity]

index a1162e5bcd19ba509fff39bceca49e1b33e2add2..5b29622d00ea61808176a27bdc2a86971d297749 100644 (file)
@@ -1,7 +1,7 @@
 object access API
 =================
 
-Talk about <sha1_file.c> and <object.h> family, things like
+Talk about <sha1-file.c> and <object.h> family, things like
 
 * read_sha1_file()
 * read_object_with_reference()
index ed0ac30a16fa3ec7433f7c373954e3364a8fe4f3..ce26efa7dc02fb79535e85bf401a33301572ee33 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -900,7 +900,7 @@ LIB_OBJS += server-info.o
 LIB_OBJS += setup.o
 LIB_OBJS += sha1-array.o
 LIB_OBJS += sha1-lookup.o
-LIB_OBJS += sha1_file.o
+LIB_OBJS += sha1-file.o
 LIB_OBJS += sha1-name.o
 LIB_OBJS += shallow.o
 LIB_OBJS += sideband.o
index 7700907f1b2c169dfb969d255cd9d61953cfb9f4..78e66b998664ee23244fd9fc9acd33578b9c53c0 100644 (file)
@@ -1593,7 +1593,7 @@ static void read_idx_option(struct pack_idx_option *opts, const char *pack_name)
        /*
         * Get rid of the idx file as we do not need it anymore.
         * NEEDSWORK: extract this bit from free_pack_by_name() in
-        * sha1_file.c, perhaps?  It shouldn't matter very much as we
+        * sha1-file.c, perhaps?  It shouldn't matter very much as we
         * know we haven't installed this pack (hence we never have
         * read anything from it).
         */
similarity index 100%
rename from sha1_file.c
rename to sha1-file.c