aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-07-01 12:42:55 +0200
committerJunio C Hamano <gitster@pobox.com>2022-07-01 11:43:43 -0700
commit480a0e30a78a6a86e1ea97059f72e4bf4299d052 (patch)
tree5efaa6159105c86be84e31b1ecbd460c09d98eea /commit-graph.c
parentcat-file: fix a memory leak in --batch-command mode (diff)
downloadgit-480a0e30a78a6a86e1ea97059f72e4bf4299d052.tar.gz
git-480a0e30a78a6a86e1ea97059f72e4bf4299d052.zip
merge-file: refactor for subsequent memory leak fix
Refactor the code in builtin/merge-file.c to: * Use the initializer to zero out "mmfs", and use modern C syntax for the rest. * Refactor the the inner loop to use a variable and "if/else if" pattern followed by "return". This will make a change to change it to a "goto cleanup" pattern smaller. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions