Files
git/builtin
Christian Couder 8f31fac365 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>
2016-06-03 10:30:16 -07:00
..
2016-03-10 11:13:41 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-25 11:31:02 -08:00
2016-05-06 14:45:44 -07:00
2016-04-13 14:12:36 -07:00
2016-02-10 14:20:08 -08:00
2015-10-21 15:59:34 -07:00
2016-04-25 15:17:15 -07:00
2016-02-26 13:37:16 -08:00
2016-04-29 12:59:07 -07:00
2016-04-13 14:12:34 -07:00
2016-04-29 12:59:08 -07:00
2016-02-26 13:37:25 -08:00
2016-02-26 13:37:19 -08:00
2015-10-05 13:20:08 -07:00
2015-11-20 08:02:05 -05:00
2016-02-22 13:10:21 -08:00
2016-01-28 16:10:14 -08:00
2016-04-29 12:59:09 -07:00
2015-11-20 08:02:05 -05:00