diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-01 12:28:30 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2014-10-01 13:49:01 -0700 |
| commit | daccee387a7f3e4ca332649d5311b032a71892e2 (patch) | |
| tree | bdb445badb63b2ddc580f62f1812d200668e5bad /builtin/commit.c | |
| parent | try_merge_strategy(): remove redundant lock_file allocation (diff) | |
| download | git-daccee387a7f3e4ca332649d5311b032a71892e2.tar.gz git-daccee387a7f3e4ca332649d5311b032a71892e2.zip | |
try_merge_strategy(): use a statically-allocated lock_file object
Even the one lockfile object needn't be allocated each time the
function is called. Instead, define one statically-allocated
lock_file object and reuse it for every call.
Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
