summaryrefslogtreecommitdiff
path: root/notes.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-06-03 16:58:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-03 17:30:16 (GMT)
commit8f31fac365c312aa9109a7a1fc1014e56ed473d2 (patch)
treead51b6cbf8585d4960fe8e576f62a8a22fa25097 /notes.c
parent91b769c48f4cf46d9514770849a1bf9cb33430c3 (diff)
downloadgit-8f31fac365c312aa9109a7a1fc1014e56ed473d2.zip
git-8f31fac365c312aa9109a7a1fc1014e56ed473d2.tar.gz
git-8f31fac365c312aa9109a7a1fc1014e56ed473d2.tar.bz2
builtin/apply: add 'lock_file' pointer into 'struct apply_state'
We cannot have a 'struct lock_file' allocated on the stack, as lockfile.c keeps a linked list of all created lock_file structures. Also 'struct apply_state' users might later want the same 'struct lock_file' instance to be reused by different series of calls to the apply api. So let's add a 'struct lock_file *lock_file' pointer into 'struct apply_state' and have the user of 'struct apply_state' allocate memory for the actual 'struct lock_file' instance. Let's also add an argument to init_apply_state(), so that the caller can easily supply a pointer to the allocated instance. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.c')
0 files changed, 0 insertions, 0 deletions