]> granicus.if.org Git - git/commitdiff
sha1_name.c: rename to use dash in file name
authorStefan Beller <sbeller@google.com>
Tue, 10 Apr 2018 21:26:19 +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>
Makefile
list-objects-filter.c
object.h
sha1-name.c [moved from sha1_name.c with 100% similarity]

index 88730d6fdd4bbae8a7b842b822f6e0faa99a4e3f..ed0ac30a16fa3ec7433f7c373954e3364a8fe4f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -901,7 +901,7 @@ LIB_OBJS += setup.o
 LIB_OBJS += sha1-array.o
 LIB_OBJS += sha1-lookup.o
 LIB_OBJS += sha1_file.o
-LIB_OBJS += sha1_name.o
+LIB_OBJS += sha1-name.o
 LIB_OBJS += shallow.o
 LIB_OBJS += sideband.o
 LIB_OBJS += sigchain.o
index 0ec83aaf1888903be4f1de38c8a94a594ef2130a..247717561f8fb6e2320b0128cad4325a4fca7da5 100644 (file)
@@ -19,7 +19,7 @@
  * in the traversal (until we mark it SEEN).  This is a way to
  * let us silently de-dup calls to show() in the caller.  This
  * is subtly different from the "revision.h:SHOWN" and the
- * "sha1_name.c:ONELINE_SEEN" bits.  And also different from
+ * "sha1-name.c:ONELINE_SEEN" bits.  And also different from
  * the non-de-dup usage in pack-bitmap.c
  */
 #define FILTER_SHOWN_BUT_REVISIT (1<<21)
index f13f85b2a94e3afc15debfbaf89416b5cda45acb..b8e70e55190bb918a523af0e45fac626b0290fdc 100644 (file)
--- a/object.h
+++ b/object.h
@@ -37,7 +37,7 @@ struct object_array {
  * bundle.c:                                        16
  * http-push.c:                                     16-----19
  * commit.c:                                        16-----19
- * sha1_name.c:                                              20
+ * sha1-name.c:                                              20
  * list-objects-filter.c:                                      21
  * builtin/fsck.c:           0--3
  * builtin/index-pack.c:                                     2021
similarity index 100%
rename from sha1_name.c
rename to sha1-name.c