diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-05-24 08:11:21 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-01 17:10:16 (GMT) |
commit | 71dac5cef57daacb35a56b4b54e1a30bc6417968 (patch) | |
tree | 3d5f76cc0876b984242cf8ffef7e077e6ad2c015 /builtin/help.c | |
parent | d7263d097c4510d864f8c9ff808bc9b377f0bf8f (diff) | |
download | git-71dac5cef57daacb35a56b4b54e1a30bc6417968.zip git-71dac5cef57daacb35a56b4b54e1a30bc6417968.tar.gz git-71dac5cef57daacb35a56b4b54e1a30bc6417968.tar.bz2 |
builtin/apply: move 'fn_table' global into 'struct apply_state'
To libify the apply functionality the 'fn_table' variable should
not be static and global to the file. Let's move it into
'struct apply_state'.
As fn_table is cleared at the end of apply_patch(), it is not
necessary to clear it in clear_apply_state().
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/help.c')
0 files changed, 0 insertions, 0 deletions