Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Add git-bundle - pack objects and references for disconnected transfer

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:54

"Shawn O. Pearce" [off-list ref] writes:
Using "test" is a style thing, but using "=" rather than "==" is
a portability issue.  "==" is accepted by bash as a synonym for
"=", but its not valid elsewhere.
True, I should have stressed that.  Thanks.  Also in the same
sense (but to a lessor degree), "test" vs "[" is also
portability issue.
What about:

	parents="$parents $(git-rev-list --max-count=1 --parents $c | cut -b42-)"

I just used that trick recently.  Oh yea it was in git-gui's
GIT-VERSION-GEN script.  Though I did not know about using cut
like that...
I used to stay away from 'cut' myself, although it is not too
bad for portability these days.  I would probably have done the
above with a single sed process, though.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help