summaryrefslogtreecommitdiff
path: root/apply.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-09-04 20:18:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-07 19:29:54 (GMT)
commit5b0b57fd91ce684679fdac1c3ae3a50c6aa3943e (patch)
treeda7bc3003f4acc3baec62df895748d0db73305e7 /apply.h
parentb4290342dd2d957cbcdb100c7d847802746b0730 (diff)
downloadgit-5b0b57fd91ce684679fdac1c3ae3a50c6aa3943e.zip
git-5b0b57fd91ce684679fdac1c3ae3a50c6aa3943e.tar.gz
git-5b0b57fd91ce684679fdac1c3ae3a50c6aa3943e.tar.bz2
apply: learn to use a different index file
Sometimes we want to apply in a different index file. Before the apply functionality was libified it was possible to use the GIT_INDEX_FILE environment variable, for this purpose. But now, as the apply functionality has been libified, it should be possible to do that in a libified way. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'apply.h')
-rw-r--r--apply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apply.h b/apply.h
index 9fec536..b3d6783 100644
--- a/apply.h
+++ b/apply.h
@@ -63,6 +63,7 @@ struct apply_state {
int unsafe_paths;
/* Other non boolean parameters */
+ const char *index_file;
enum apply_verbosity apply_verbosity;
const char *fake_ancestor;
const char *patch_input_file;