Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Please discuss: what "git push" should do when you do not say what to push?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:20

Joey Hess [off-list ref] writes:
... I know this
will be confusing, because with current git, users have to be instructed
to push these branches *once*, to get the tracking set up.
Well, a tool like git-annex is not the primary audience to choose the
default behaviour for "git push" without configuration. Instead of
instructing "to push *once*", you can easily instruct to install
remote.$name.push that covers the primary and subsidiary branches.

Alternatively "git annex push" could drive the underlying "git push" in
whatever way it wishes. Notice a branch is being pushed, and then add its
subsidiary branch to the set of refs to be pushed (because it, not Git, is
the one who knows the correspondence between the primary branch and the
subsidiary branch).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help