Value | Meaning |
---|---|
GIT_APPLY_LOCATION_WORKDIR0 | Apply the patch to the workdir, leaving the index untouched. This is the equivalent of git apply with no location argument. |
GIT_APPLY_LOCATION_INDEX1 | Apply the patch to the index, leaving the working directory untouched. This is the equivalent of git apply --cached. |
GIT_APPLY_LOCATION_BOTH2 | Apply the patch to both the working directory and the index. This is the equivalent of git apply --index. |
Possible application locations for git_apply