summaryrefslogtreecommitdiff
path: root/t/t5405-send-pack-rewind.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-04-26 22:00:55 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-29 12:38:32 -0700
commit70c7bd6dafc83eee7bf76d33d12027224d80f20d (patch)
tree6ffbc266b38c277b3e0a5be9e10b8e1ee6251acf /t/t5405-send-pack-rewind.sh
parentreplace: refactor command-mode determination (diff)
downloadtgif-70c7bd6dafc83eee7bf76d33d12027224d80f20d.tar.xz
replace: use OPT_CMDMODE to handle modes
By using OPT_CMDMODE, the mutual exclusion between modes is taken care of for us. It also makes it easy for us to maintain a single variable with the mode, which makes its intent more clear. We can use a single switch() to make sure we have covered all of the modes. This ends up breaking even in code size, but the win will be much bigger when we start adding more modes. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5405-send-pack-rewind.sh')
0 files changed, 0 insertions, 0 deletions