diff options
author | Thomas Rast <trast@student.ethz.ch> | 2009-08-13 14:29:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-14 12:40:09 -0700 |
commit | 8f0bef6df91c48d79f982bdb55f784ce445ba5b2 (patch) | |
tree | a5393f2484c478f9c91a1abf25605e4aa19cc088 /t/t2012-checkout-last.sh | |
parent | Merge branch 'maint' (diff) | |
download | tgif-8f0bef6df91c48d79f982bdb55f784ce445ba5b2.tar.xz |
git-apply--interactive: Refactor patch mode code
This makes some aspects of the 'git add -p' loop configurable (within
the code), so that we can later reuse git-add--interactive for other
similar tools.
Most fields are fairly straightforward, but APPLY gets a subroutine
(instead of just a string a la 'apply --cached') so that we can handle
'checkout -p', which will need to atomically apply the patch twice
(index and worktree).
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2012-checkout-last.sh')
0 files changed, 0 insertions, 0 deletions