We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3b7239 + 4507ecc commit 59d0b3bCopy full SHA for 59d0b3b
builtin/patch-id.c
@@ -5,13 +5,8 @@
5
6
static void flush_current_id(int patchlen, struct object_id *id, struct object_id *result)
7
{
8
- char name[GIT_MAX_HEXSZ + 1];
9
-
10
- if (!patchlen)
11
- return;
12
13
- memcpy(name, oid_to_hex(id), the_hash_algo->hexsz + 1);
14
- printf("%s %s\n", oid_to_hex(result), name);
+ if (patchlen)
+ printf("%s %s\n", oid_to_hex(result), oid_to_hex(id));
15
}
16
17
static int remove_space(char *line)
0 commit comments