Re: [PATCH v2 1/3] t7700: demonstrate mishandling of objects in packs with a .keep file

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

Re: [PATCH v2 1/3] t7700: demonstrate mishandling of objects in packs with a .keep file

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:36

Brandon Casey [off-list ref] writes:
Andreas Ericsson wrote:
quoted
sed 1q is faster, as it stops parsing after the first line (the same as
'head
-n 1' does, but in a more portable fashion).
If your sed is GNU, and you are doing this for a small file, the startup
cost of it may dwarf such gain ;-)
Except that I wanted all but the _last_ line though.

I didn't think about using sed. Perhaps I could have used something like

   sed -n -e '$q' -e 'p'
You surely meant "sed -e '$d'", right?
The grep works though.
Indeed.

Re: [PATCH v2 1/3] t7700: demonstrate mishandling of objects in packs with a .keep file

From: Brandon Casey <hidden>
Date: 2016-06-15 22:45:36

Junio C Hamano wrote:
Brandon Casey [off-list ref] writes:
quoted
   sed -n -e '$q' -e 'p'
You surely meant "sed -e '$d'", right?
Your sed-fu is quite impressive.

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