aboutsummaryrefslogtreecommitdiff
path: root/builtin/pack-refs.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-05-24 10:10:46 +0200
committerJunio C Hamano <gitster@pobox.com>2016-06-01 10:10:16 -0700
commit6f27b941f2664c1653d0c4edcec5686119f0c023 (patch)
treeef2233617d2fd5e3b79ededbdccb0df566697aaa /builtin/pack-refs.c
parent2fc0f1849bd0d6100719bb53f89f15fbd734157a (diff)
downloadgit-6f27b941f2664c1653d0c4edcec5686119f0c023.tar.gz
git-6f27b941f2664c1653d0c4edcec5686119f0c023.tar.xz
builtin/apply: move 'state' init into init_apply_state()
When the apply functionality will be libified, the 'struct apply_state' will be used by different pieces of code. To properly initialize a 'struct apply_state', let's provide a nice and easy to use init_apply_state() function. Let's also provide clear_apply_state() to release memory used by 'struct apply_state' members, so that a 'struct apply_state' instance can be easily reused without leaking memory. Note that clear_apply_state() does nothing for now, but it will later. While at it, let's rename 'prefix_' parameter to 'prefix'. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-refs.c')
0 files changed, 0 insertions, 0 deletions