Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-09-04 23:18:32 +0300
committerJunio C Hamano <gitster@pobox.com>2016-09-07 22:29:54 +0300
commit5b0b57fd91ce684679fdac1c3ae3a50c6aa3943e (patch)
treeda7bc3003f4acc3baec62df895748d0db73305e7 /apply.h
parentb4290342dd2d957cbcdb100c7d847802746b0730 (diff)
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 9fec5363ab..b3d6783d55 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;