summaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..master^
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2026-03-25 21:54:54 +0200
committerJunio C Hamano <gitster@pobox.com>2026-03-25 14:00:45 -0700
commitb06770e5d8948c7cad76d7507423376eacf1e005 (patch)
treea7f33c56ab99bdaa551b23c99583257e381f5fbd /t/t4013/diff.format-patch_--inline_--stdout_initial..master^
parent6b9f9e2d2f3d9d6634e72d190e800f65f9a88f30 (diff)
downloadgit-b06770e5d8948c7cad76d7507423376eacf1e005.tar.gz
git-b06770e5d8948c7cad76d7507423376eacf1e005.zip
hook: fix minor style issues
Fix some minor style nits pointed out by Patrick, Junio and Eric: * Use CALLOC_ARRAY instead of xcalloc. * Init struct members during declaration. * Simplify if condition boolean logic. * Missing curly braces in if/else stmts. * Unnecessary header includes. * Capitalization and full-stop in error/warn messages. * Curly brace on separate line when defining struct. * Comment spelling: free'd -> freed. * Sort the included headers. * Blank line fixes to improve readability. These contain no logic changes, the code behaves the same as before. Suggested-by: Eric Sunshine <sunshine@sunshineco.com> Suggested-by: Junio C Hamano <gitster@pobox.com> Suggested-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..master^')
0 files changed, 0 insertions, 0 deletions