path: root/apply.h
diff options
authorNguyễn Thái Ngọc Duy <>2018-05-26 12:08:46 (GMT)
committerJunio C Hamano <>2018-05-29 03:42:30 (GMT)
commitcff5dc09ed0d07461bf77e9abef57dc86a11ab77 (patch)
treef72684761303670cba7ad8a2d6178254ed5ef3e9 /apply.h
parent8fc8f05cef9b5a60cc7adbd5cd6ed130a89ca4e1 (diff)
apply: add --intent-to-add
Similar to 'git reset -N', this option makes 'git apply' automatically mark new files as intent-to-add so they are visible in the following 'git diff' command and could also be committed with 'git commit -a'. Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'apply.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/apply.h b/apply.h
index dc4a019..b80d8ba 100644
--- a/apply.h
+++ b/apply.h
@@ -45,6 +45,7 @@ struct apply_state {
int check; /* preimage must match working tree, don't actually apply */
int check_index; /* preimage must match the indexed version */
int update_index; /* check_index && apply */
+ int ita_only; /* add intent-to-add entries to the index */
/* These control cosmetic aspect of the output */
int diffstat; /* just show a diffstat, and don't actually apply */