summaryrefslogtreecommitdiff
path: root/git-quiltimport.sh
diff options
context:
space:
mode:
authorLibravatar Christian Couder <christian.couder@gmail.com>2016-06-03 18:58:51 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-03 10:30:16 -0700
commit8f31fac365c312aa9109a7a1fc1014e56ed473d2 (patch)
treead51b6cbf8585d4960fe8e576f62a8a22fa25097 /git-quiltimport.sh
parentbuiltin/apply: move applying patches into apply_all_patches() (diff)
downloadtgif-8f31fac365c312aa9109a7a1fc1014e56ed473d2.tar.xz
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 'git-quiltimport.sh')
0 files changed, 0 insertions, 0 deletions