mirror of
https://github.com/git/git.git
synced 2024-11-17 22:44:49 +01:00
Merge branch 'jc/fmt-patch' into next
* jc/fmt-patch: git-fmt-patch: thinkofix to show [PATCH] properly.
This commit is contained in:
commit
f1f114d080
1 changed files with 3 additions and 2 deletions
5
commit.c
5
commit.c
|
@ -574,8 +574,9 @@ unsigned long pretty_print_commit(enum cmit_fmt fmt, const struct commit *commit
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subject) {
|
if (subject) {
|
||||||
memcpy(buf + offset, subject, 9);
|
int slen = strlen(subject);
|
||||||
offset += 9;
|
memcpy(buf + offset, subject, slen);
|
||||||
|
offset += slen;
|
||||||
}
|
}
|
||||||
memset(buf + offset, ' ', indent);
|
memset(buf + offset, ' ', indent);
|
||||||
memcpy(buf + offset + indent, line, linelen);
|
memcpy(buf + offset + indent, line, linelen);
|
||||||
|
|
Loading…
Reference in a new issue