Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2018-05-20 13:17:34 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-21 00:56:15 +0300
commit89e653da5b1bee9cf645e9d4bdd95f6bb31cc4b9 (patch)
tree728bce3e5c70705267b669fd3e5ac2f365d6288a /argv-array.c
parent6f10a09e0a1a7c3c3a6ee8e67390a4839dbe6a1b (diff)
merge: setup `opts` later in `checkout_fast_forward()`
After we initialize the various fields in `opts` but before we actually use them, we might return early. Move the initialization further down, to immediately before we use `opts`. This limits the scope of `opts` and will help a later commit fix a memory leak without having to worry about those early returns. This patch is best viewed using something like this (note the tab!): --color-moved --anchored=" trees[nr_trees] = parse_tree_indirect" Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'argv-array.c')
0 files changed, 0 insertions, 0 deletions