Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-21 00:33:36 +0300
committerJunio C Hamano <gitster@pobox.com>2023-04-21 00:33:36 +0300
commit08bd076ce4c8dcc654d6df9512d476b47d718e8a (patch)
treec9de280fb5303708d5b9a6b2d0417e1f3c3a10e4 /builtin/get-tar-commit-id.c
parentfa9172c70af55a013e7fe2c5c3c97ba63002a7e5 (diff)
parentc870de65024e8ee4ca1637f4765d2d61ecb51152 (diff)
Merge branch 'rs/get-tar-commit-id-use-defined-const'
Code clean-up to replace a hardcoded constant with a CPP macro. * rs/get-tar-commit-id-use-defined-const: get-tar-commit-id: use TYPEFLAG_GLOBAL_HEADER instead of magic value
Diffstat (limited to 'builtin/get-tar-commit-id.c')
-rw-r--r--builtin/get-tar-commit-id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/get-tar-commit-id.c b/builtin/get-tar-commit-id.c
index d5b871b21d..564cfcac4f 100644
--- a/builtin/get-tar-commit-id.c
+++ b/builtin/get-tar-commit-id.c
@@ -35,7 +35,7 @@ int cmd_get_tar_commit_id(int argc, const char **argv UNUSED, const char *prefix
die_errno("git get-tar-commit-id: read error");
if (n != HEADERSIZE)
die_errno("git get-tar-commit-id: EOF before reading tar header");
- if (header->typeflag[0] != 'g')
+ if (header->typeflag[0] != TYPEFLAG_GLOBAL_HEADER)
return 1;
len = strtol(content, &end, 10);