subtree: push: allow specifying a local rev other than HEAD
authorLuke Shumaker <lukeshu@datawire.io>
Tue, 27 Apr 2021 21:17:47 +0000 (15:17 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Apr 2021 07:47:19 +0000 (16:47 +0900)
commit49470cd445166fbe778218c7618ea8ee78ca7d00
tree2fb21e14de3ccca4ad261410f449f5a1e305ad1e
parent94389e7c81d47102f061b36a93e050d639fe3d40
subtree: push: allow specifying a local rev other than HEAD

'git subtree split' lets you specify a rev other than HEAD.  'git push'
lets you specify a mapping between a local thing and a remot ref.  So
smash those together, and have 'git subtree push' let you specify which
local thing to run split on and push the result of that split to the
remote ref.

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