Re: [PATCH v2] git-rebase--interactive.sh: replace cut with ${v%% *}

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

Re: [PATCH v2] git-rebase--interactive.sh: replace cut with ${v%% *}

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:33

Chris Johnsen [off-list ref] writes:
It seems like the other uses of cut in git-rebase--interactive.sh
would be more awkward if they were replaced with equivalent
processing done in-shell with parameter expansions...
More importantly, they are fed output from rev-list and do not have
breakage you observed on your Mac OS box, do they?

IOW, I don't see anything that needs fixing in other uses.

In any case, thanks for the fix.

Re: [PATCH v2] git-rebase--interactive.sh: replace cut with ${v%% *}

From: Chris Johnsen <hidden>
Date: 2016-06-15 22:49:34

Junio C Hamano [off-list ref] wrote:
Chris Johnsen [off-list ref] writes:
quoted
It seems like the other uses of cut in git-rebase--interactive.sh
would be more awkward if they were replaced with equivalent
processing done in-shell with parameter expansions...
More importantly, they are fed output from rev-list and do not have
breakage you observed on your Mac OS box, do they?

IOW, I don't see anything that needs fixing in other uses.
Right, the other uses of cut do not cause any problems on my system.

Any remaining reason to change them would be along the lines of your
"the less of 'cut' we see, the better" and the possible efficency of
in-shell processing (e.g. for msys/cygwin).

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