]> git.ipfire.org Git - thirdparty/git.git/commit
subtree: use named variables instead of "$@" in cmd_pull
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Fri, 21 Oct 2022 15:13:36 +0000 (15:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2022 20:51:06 +0000 (13:51 -0700)
commit7990142eb1b6fdd60e87f63f003bc593fc105260
tree518de4c572b4840c9dbbd0787dc23c6e0f0716bb
parent34ab458cb1df13ca400c10bbc4ff69c75a4e217e
subtree: use named variables instead of "$@" in cmd_pull

'cmd_pull' already checks that only two arguments are given,
'repository' and 'ref'. Define variables with these names instead of
using the positional parameter $2 and "$@".

This will allow a subsequent commit to pass 'repository' to 'cmd_merge'.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh