Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-06-01 Thread Ævar Arnfjörð Bjarmason
On Thu, May 31 2018, Stefan Beller wrote: > Hi Ævar, > > Sorry for chiming in late. I have a couple of thoughts: > >> ( >> cd /tmp && >> rm -rf tbdiff && >> git clone g...@github.com:trast/tbdiff.git && >> cd tbdiff && >> git branch -m topic && >>

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-06-01 Thread Eric Sunshine
On Thu, May 31, 2018 at 5:49 PM, Stefan Beller wrote: >> I considered splitting this into checkout.defaultRemote and >> worktree.defaultRemote, but it's probably less confusing to break our >> own rules that anything shared between config should live in core.* >> than have two config settings,

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Junio C Hamano
Thomas Gummerer writes: >> I considered splitting this into checkout.defaultRemote and >> worktree.defaultRemote, but it's probably less confusing to break our >> own rules that anything shared between config should live in core.* >> than have two config settings, and I couldn't come up with a

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Thomas Gummerer
On 05/31, Ævar Arnfjörð Bjarmason wrote: > Introduce a checkout.defaultRemote setting which can be used to > designate a remote to prefer (via checkout.defaultRemote=origin) when > running e.g. "git checkout master" to mean origin/master, even though > there's other remotes that have the "master"

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Stefan Beller
Hi Ævar, Sorry for chiming in late. I have a couple of thoughts: > ( > cd /tmp && > rm -rf tbdiff && > git clone g...@github.com:trast/tbdiff.git && > cd tbdiff && > git branch -m topic && > git checkout master > ) > > That will output: > >

[PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Introduce a checkout.defaultRemote setting which can be used to designate a remote to prefer (via checkout.defaultRemote=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