summaryrefslogtreecommitdiff
path: root/t/t5510-fetch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-04-06 14:12:34 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-04-29 15:27:59 -0700
commit9dce832354502a04e724c5776e60fc6189182307 (patch)
tree8edc8b5ca9bd3032852eb313e004b81e30cc89d6 /t/t5510-fetch.sh
parentt3701: Editing a split hunk in an "add -p" session (diff)
downloadtgif-9dce832354502a04e724c5776e60fc6189182307.tar.xz
add--interactive.perl: factor out repeated --recount option
Depending on the direction and the target of patch application, we would need to pass --cached and --reverse to underlying "git apply". Also we only pass --check when we are not applying but just checking. But we always pass --recount since 8cbd431 (git-add--interactive: replace hunk recounting with apply --recount, 2008-07-02). Instead of repeating the same --recount over and over again, move it to a single place that actually runs the command, namely, "run_git_apply" subroutine. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5510-fetch.sh')
0 files changed, 0 insertions, 0 deletions