Re: [RFC/PATCH] git push usability improvements and default change

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC/PATCH] git push usability improvements and default change

From: Miles Bader <hidden>
Date: 2016-06-15 22:46:23

Finn Arne Gangstad [off-list ref] writes:
quoted
Presumably the push --track option would be used with an explicit branch
name given to push anyway, right?  Then it can use that info to set up
the tracking flexibly (and with sane defaults).

E.g.,, simple case:
    git push --track SOME_REMOTE BRANCH_NAME

complex case:
    git push --track SOME_REMOTE MY-BRANCH:REMOTE-BRANCH
Yes, git push --track ... would typically do the same thing to the
config as git checkout -b MY-BRANCH SOME_REMOTE/REMOTE-BRANCH, which
is enough for push --tracking to do its thing.

I am not sure if you mean that git push --track could do something
extra to make --tracking unecessary for git push, currently it cannot
do that since the push configuration is per remote, not per branch.
Hmm, now I'm confused... I was just thinking about --track, but am not
sure what --tracking is ... need to go grovel past posts...

-Miles

-- 
Happiness, n. An agreeable sensation arising from contemplating the misery of
another.

Re: [RFC/PATCH] git push usability improvements and default change

From: John Tapsell <hidden>
Date: 2016-06-15 22:46:23

Hi,

   What's the status of these patches?  Will be commited?

John

2009/3/13 Miles Bader [off-list ref]:
Finn Arne Gangstad [off-list ref] writes:
quoted
quoted
Presumably the push --track option would be used with an explicit branch
name given to push anyway, right?  Then it can use that info to set up
the tracking flexibly (and with sane defaults).

E.g.,, simple case:
    git push --track SOME_REMOTE BRANCH_NAME

complex case:
    git push --track SOME_REMOTE MY-BRANCH:REMOTE-BRANCH
Yes, git push --track ... would typically do the same thing to the
config as git checkout -b MY-BRANCH SOME_REMOTE/REMOTE-BRANCH, which
is enough for push --tracking to do its thing.

I am not sure if you mean that git push --track could do something
extra to make --tracking unecessary for git push, currently it cannot
do that since the push configuration is per remote, not per branch.
Hmm, now I'm confused... I was just thinking about --track, but am not
sure what --tracking is ... need to go grovel past posts...

-Miles

--
Happiness, n. An agreeable sensation arising from contemplating the misery of
another.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help