Thread (2 messages) flat view 2 messages, 2 authors, 2016-08-11

Re: [PATCH 1/2] Allow users to require source branch on git-checkout -b.

From: Shawn Pearce <hidden>
Date: 2016-08-11 20:20:12

Junio C Hamano [off-list ref] wrote:
"Shawn O. Pearce" [off-list ref] writes:
quoted
This introduces a new config option: checkout.requireSourceBranch,
You could turn it around and make it a per-branch configuration,
like:

	[branch "main"]
        	allowbranchbydefault = true
Are you suggesting that we change "git-checkout -b" to by default
require the source branch, but the user can restore the original
behavior by setting the above per-branch configuration option?

I'm OK with that version too.  Most of these users want to be
required to enter the source branch, and their topic branches (which
are always their current branches btw) are so transient they won't
bother with a per-branch setting.  So they get what they want:
the tool reminding them to select their source revision.

-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help