Re: [PATCH/RFC 2/2] git rebase -i: Warn removed or dupplicated commits

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

Re: [PATCH/RFC 2/2] git rebase -i: Warn removed or dupplicated commits

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:05:01

Remi Galan Alfonso [off-list ref]
writes:
Thank you for reviewing the code. 

Eric Sunshine[off-list ref] writes:
quoted
quoted
+       # To uppercase
+       checkLevel=$(echo "$checkLevel" | tr '[:lower:]' '[:upper:]')
Is there precedence elsewhere for recognizing uppercase and lowercase
variants of config values?
It seems to be commonly used when parsing options in the C files
through strcasecmp.  For exemple, in config.c:818 :
if (!strcmp(var, "core.safecrlf")) {
	if (value && !strcasecmp(value, "warn")) {
		[...]
However we didn't see any precedence in shell files. Do you think we
should remove it?
I think there is a difference between (silently) accepting just to
be lenient and documenting and advocating mixed case uses.

Personally, I'd rather not to see gratuitous flexibility to allow
the same thing spelled in 47 different ways for no good reason.

Re: [PATCH/RFC 2/2] git rebase -i: Warn removed or dupplicated commits

From: Remi Galan Alfonso <hidden>
Date: 2016-06-15 23:05:02

Junio C Hamano [off-list ref] writes:
I think there is a difference between (silently) accepting just to
be lenient and documenting and advocating mixed case uses.

Personally, I'd rather not to see gratuitous flexibility to allow
the same thing spelled in 47 different ways for no good reason.
It was more of a mistake on our part rather than actually wanting to
document mixed case uses.

In the v2 of the patch (not sent to the mailing list yet since we want
to take into consideration the conclusion of this discussion before)
it is entirely in lower case in both the documentation and the code
while we silently allow upper and mixed case.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help