{"thread":{"id":"59567","subject":"[PATCH] get-tar-commit-id: use TYPEFLAG_GLOBAL_HEADER instead of magic value","startedAt":"2023-04-08T10:26:29Z","lastAt":"2023-04-08T10:26:29Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"475034","messageId":"79497392-0296-2ae3-2560-1f90c1a309b5@web.de","threadId":"59567","inReplyTo":null,"subject":"[PATCH] get-tar-commit-id: use TYPEFLAG_GLOBAL_HEADER instead of magic value","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2023-04-08T10:25:04Z","receivedAt":"2023-04-08T10:26:29Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Use the same macro in the archive reader code as on the writer side in\narchive-tar.c to document the connection.\n\nSigned-off-by: René Scharfe <l.s.r@web.de>\n---\n builtin/get-tar-commit-id.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/get-tar-commit-id.c b/builtin/get-tar-commit-id.c\nindex d5b871b21d..564cfcac4f 100644\n--- a/builtin/get-tar-commit-id.c\n+++ b/builtin/get-tar-commit-id.c\n@@ -35,7 +35,7 @@ int cmd_get_tar_commit_id(int argc, const char **argv UNUSED, const char *prefix\n \t\tdie_errno(\"git get-tar-commit-id: read error\");\n \tif (n != HEADERSIZE)\n \t\tdie_errno(\"git get-tar-commit-id: EOF before reading tar header\");\n-\tif (header->typeflag[0] != 'g')\n+\tif (header->typeflag[0] != TYPEFLAG_GLOBAL_HEADER)\n \t\treturn 1;\n\n \tlen = strtol(content, &end, 10);\n--\n2.40.0\n"}]}