]> Kevux Git Server - rit/commit
subtree: allow 'split' flags to be passed to 'push'
authorLuke Shumaker <lukeshu@datawire.io>
Tue, 27 Apr 2021 21:17:46 +0000 (15:17 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Apr 2021 07:47:19 +0000 (16:47 +0900)
commit94389e7c81d47102f061b36a93e050d639fe3d40
treeee0d60084033a1297c58fa48ed30584f8f473369
parentcb6551447b8e0c35408b766ad605ba357f720a0d
subtree: allow 'split' flags to be passed to 'push'

'push' does a 'split' internally, but it doesn't pass flags through to the
'split'.  This is silly, if you need to pass flags to 'split', then it
means that you can't use 'push'!

So, have 'push' accept 'split' flags, and pass them through to 'split'.

Add tests for this by copying split's tests with minimal modification.

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh
contrib/subtree/git-subtree.txt
contrib/subtree/t/t7900-subtree.sh