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
..
2015-11-05 12:18:12 -08:00
2016-03-10 11:13:41 -08:00
2016-06-03 10:30:16 -07:00
2016-04-13 14:12:41 -07:00
2016-04-18 10:49:14 -07:00
2016-01-15 10:35:06 -08:00
2016-02-01 13:43:02 -08:00
2016-02-01 13:43:02 -08:00
2016-01-15 10:12:51 -08:00
2016-02-22 14:51:09 -08:00
2016-02-01 13:43:49 -08:00
2016-04-10 11:35:36 -07:00
2016-02-26 13:37:16 -08:00
2016-05-06 14:45:43 -07:00
2016-01-15 10:35:07 -08:00
2015-11-20 08:02:05 -05:00
2016-04-22 15:45:07 -07:00
2016-04-14 18:57:43 -07: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-02-22 14:51:09 -08:00
2016-03-01 11:19:19 -08:00
2016-04-06 11:39:01 -07:00
2015-12-11 11:14:13 -08:00
2015-09-17 10:02:49 -07:00
2016-04-10 11:35:33 -07:00
2015-12-04 11:33:08 -08:00
2015-10-16 15:27:52 -07:00
2016-05-06 14:45:44 -07:00
2016-02-10 14:20:08 -08:00
2016-02-22 14:51:09 -08:00
2016-04-14 18:37:16 -07:00
2016-04-13 14:12:28 -07:00
2016-01-14 12:22:17 -08:00
2016-04-13 14:12:36 -07:00
2016-02-10 14:20:08 -08:00
2016-01-19 10:07:56 -08:00
2015-09-25 10:18:18 -07:00
2015-10-21 15:59:34 -07:00
2015-09-25 10:18:18 -07:00
2016-02-22 14:51:09 -08:00
2015-11-03 15:32:41 -08:00
2015-10-05 11:08:05 -07:00
2015-09-25 10:18:18 -07:00
2016-04-25 14:23:42 -07:00
2016-04-25 15:17:15 -07:00
2015-10-16 15:27:52 -07:00
2016-02-26 13:37:16 -08:00
2016-04-29 12:59:07 -07:00
2016-05-03 14:08:13 -07:00
2016-04-13 14:12:34 -07:00
2016-05-10 13:40:28 -07:00
2016-02-22 14:51:09 -08:00
2015-10-16 15:27:52 -07:00
2015-11-03 15:32:25 -08:00
2016-04-29 12:59:08 -07:00
2016-02-26 13:37:25 -08:00
2015-09-25 10:18:18 -07:00
2016-04-25 15:17:15 -07:00
2016-04-25 14:23:42 -07:00
2016-02-22 14:50:32 -08:00
2016-02-26 13:37:19 -08:00
2016-01-15 10:12:51 -08:00
2016-04-29 12:59:07 -07:00
2015-10-05 13:20:08 -07:00
2015-11-20 08:02:05 -05:00
2016-03-17 11:24:14 -07:00
2016-04-14 18:57:44 -07:00
2016-02-22 13:10:21 -08:00
2016-04-13 14:12:33 -07:00
2016-01-28 16:10:14 -08:00
2015-12-11 11:14:14 -08:00
2015-11-20 08:02:07 -05:00
2016-01-29 16:02:34 -08:00
2016-04-22 15:45:04 -07:00
2015-12-21 12:03:03 -08:00
2016-04-29 12:59:09 -07:00
2015-09-25 10:18:18 -07:00
2015-11-20 08:02:05 -05:00
2016-02-10 14:20:08 -08:00
2015-09-11 09:50:02 -07:00
2015-09-25 10:18:18 -07:00
2016-04-22 14:06:46 -07:00
2016-03-29 11:12:36 -07:00