From fc1395f4a491a7da46a446233531005634eb979d Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Tue, 10 Apr 2018 14:26:20 -0700 Subject: [PATCH] sha1_file.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 --- Documentation/technical/api-object-access.txt | 2 +- Makefile | 2 +- builtin/index-pack.c | 2 +- sha1_file.c => sha1-file.c | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename sha1_file.c => sha1-file.c (100%) diff --git a/Documentation/technical/api-object-access.txt b/Documentation/technical/api-object-access.txt index a1162e5bcd..5b29622d00 100644 --- a/Documentation/technical/api-object-access.txt +++ b/Documentation/technical/api-object-access.txt @@ -1,7 +1,7 @@ object access API ================= -Talk about and family, things like +Talk about and family, things like * read_sha1_file() * read_object_with_reference() diff --git a/Makefile b/Makefile index ed0ac30a16..ce26efa7dc 100644 --- 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 diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 7700907f1b..78e66b9986 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -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). */ diff --git a/sha1_file.c b/sha1-file.c similarity index 100% rename from sha1_file.c rename to sha1-file.c