* Feature suggestion: git grep --blame
@ 2009-06-20 15:29 David Christensen
2009-06-20 18:19 ` René Scharfe
0 siblings, 1 reply; 2+ messages in thread
From: David Christensen @ 2009-06-20 15:29 UTC (permalink / raw)
To: git
Hey folks,
It's occurred to me on several occasions that a useful output option
for `git grep` would be to prefix lines with the same commit/author/
date annotation that `git blame` shows when viewing an individual
file. I didn't find anything myself with a quick google search so I
was wondering if anyone a) has a recipe for this either with a trivial
command alias (I couldn't come up with one myself), b) know if this
has been done/attempted before, or c) have a reason why this is a
really stupid idea? :-)
Regards,
David
--
David Christensen
End Point Corporation
david@endpoint.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Feature suggestion: git grep --blame
2009-06-20 15:29 Feature suggestion: git grep --blame David Christensen
@ 2009-06-20 18:19 ` René Scharfe
0 siblings, 0 replies; 2+ messages in thread
From: René Scharfe @ 2009-06-20 18:19 UTC (permalink / raw)
To: David Christensen; +Cc: Git Mailing List, pi song, Junio C Hamano
David Christensen schrieb:
> Hey folks,
>
> It's occurred to me on several occasions that a useful output option for
> `git grep` would be to prefix lines with the same commit/author/date
> annotation that `git blame` shows when viewing an individual file. I
> didn't find anything myself with a quick google search so I was
> wondering if anyone a) has a recipe for this either with a trivial
> command alias (I couldn't come up with one myself), b) know if this has
> been done/attempted before, or c) have a reason why this is a really
> stupid idea? :-)
This is a very good idea -- so good, in fact, that Pi Song sent patches
to implement it a quarter ago. There were a few issues which prevented
them from being merged unchanged. Junio merged an initial cleanup patch
into pu instead ("blame.c: start libifying the blame infrastructure",
97926c6c). Work on the remaining parts seems to have stalled, though.
Pi Song?
René
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-20 18:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-20 15:29 Feature suggestion: git grep --blame David Christensen
2009-06-20 18:19 ` René Scharfe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).