summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-04-10 21:26:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-11 09:11:00 (GMT)
commite5e5e08832f7c4d581c0c70542e61235d21a8067 (patch)
tree1c03bc33b01ee380f214ac2245dcc96273bb8e1f
parentd807c4a01db2b06db047fc6d5d18ac25c8f05bd7 (diff)
downloadgit-e5e5e08832f7c4d581c0c70542e61235d21a8067.zip
git-e5e5e08832f7c4d581c0c70542e61235d21a8067.tar.gz
git-e5e5e08832f7c4d581c0c70542e61235d21a8067.tar.bz2
sha1_name.c: rename to use dash in file name
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>
-rw-r--r--Makefile2
-rw-r--r--list-objects-filter.c2
-rw-r--r--object.h2
-rw-r--r--sha1-name.c (renamed from sha1_name.c)0
4 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 88730d6..ed0ac30 100644
--- 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
diff --git a/list-objects-filter.c b/list-objects-filter.c
index 0ec83aa..2477175 100644
--- a/list-objects-filter.c
+++ b/list-objects-filter.c
@@ -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)
diff --git a/object.h b/object.h
index f13f85b..b8e70e5 100644
--- 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
diff --git a/sha1_name.c b/sha1-name.c
index 5b93bf8..5b93bf8 100644
--- a/sha1_name.c
+++ b/sha1-name.c