From: Junio C Hamano Date: Mon, 02 May 2011 19:08:54 GMT Subject: Re: [PATCH/RFC 0/4] grep: support to match by line number Message-ID: <7vy62oly2h.fsf@alter.siamese.dyndns.org> In-Reply-To: Bert Wesarg writes: >> - Are there existing non-git "grep" implementations that do this? > > I didn't know of any, until Jakub mentioned the ack tool. And I didn't > look for one. I will answer you 'yes'-questions only in context of my > proposal. Thanks, but these questions are simple sanity checks done by contrasting your design with _existing practices_, if any. It is not useful to answer what you did here, only to contrast your design with itself. Also we can read them from your implementation ;-). >> - perhaps people use something like "sed -n -e 25,30p file" and be >> happy? > > How would you combine this with git grep HEAD or with multiple files? Now how did you get the compiler error messages from your example from the files in HEAD commit without checking them out? Besides, that question is still part of figuring out prior art done in the git-unaware grep, so it is irrelevant that sed or other people's grep cannot peek into HEAD.