Re: [PATCH v2] checkout & worktree: introduce checkout.implicitRemote

2018-05-04 Thread Ævar Arnfjörð Bjarmason
On Fri, May 04 2018, Duy Nguyen wrote: > On Fri, May 4, 2018 at 9:54 AM, Ævar Arnfjörð Bjarmason > wrote: >> Realistically the way we do hooks now would make the UI of this suck, >> i.e. you couldn't configure it globally or system-wide easily. Something >> like what I noted in >> https://public

Re: [PATCH v2] checkout & worktree: introduce checkout.implicitRemote

2018-05-04 Thread Duy Nguyen
On Fri, May 4, 2018 at 9:54 AM, Ævar Arnfjörð Bjarmason wrote: > Realistically the way we do hooks now would make the UI of this suck, > i.e. you couldn't configure it globally or system-wide easily. Something > like what I noted in > https://public-inbox.org/git/871sf3el01@evledraar.gmail.com

Re: [PATCH v2] checkout & worktree: introduce checkout.implicitRemote

2018-05-04 Thread Eric Sunshine
On Thu, May 3, 2018 at 9:18 AM, Ævar Arnfjörð Bjarmason wrote: > Introduce a checkout.implicitRemote setting which can be used to > designate a remote to prefer (via checkout.implicitRemote=origin) when > running e.g. "git checkout master" to mean origin/master, even though > there's other remotes

Re: [PATCH v2] checkout & worktree: introduce checkout.implicitRemote

2018-05-04 Thread Ævar Arnfjörð Bjarmason
On Thu, May 03 2018, Duy Nguyen wrote: > On Thu, May 3, 2018 at 3:18 PM, Ævar Arnfjörð Bjarmason > wrote: >> Introduce a checkout.implicitRemote setting which can be used to >> designate a remote to prefer (via checkout.implicitRemote=origin) when >> running e.g. "git checkout master" to mean or

Re: [PATCH v2] checkout & worktree: introduce checkout.implicitRemote

2018-05-03 Thread Duy Nguyen
On Thu, May 3, 2018 at 3:18 PM, Ævar Arnfjörð Bjarmason wrote: > Introduce a checkout.implicitRemote setting which can be used to > designate a remote to prefer (via checkout.implicitRemote=origin) when > running e.g. "git checkout master" to mean origin/master, even though > there's other remotes

[PATCH v2] checkout & worktree: introduce checkout.implicitRemote

2018-05-03 Thread Ævar Arnfjörð Bjarmason
Introduce a checkout.implicitRemote setting which can be used to designate a remote to prefer (via checkout.implicitRemote=origin) when running e.g. "git checkout master" to mean origin/master, even though there's other remotes that have the "master" branch. I want this because it's very handy to