mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Find commit that referenced a blob first
@ 2018-07-19 21:02 Lars Schneider
  2018-07-19 21:19 ` Stefan Beller
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Schneider @ 2018-07-19 21:02 UTC (permalink / raw)
  To: git; +Cc: Jeff King, Jared Murrell


I have a blob hash and I would like to know what commit referenced 
this blob first in a given Git repo.

I could iterate through all commits sorted by date (or generation 
number) and then recursively search in the referenced trees until 
I find my blob. I wonder, is this the most efficient way to solve 
my problem? Is there some trick/existing Git command that would 
perform this search more efficiently for large repos?

Thank you,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-07-19 22:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19 21:02 Find commit that referenced a blob first Lars Schneider
2018-07-19 21:19 ` Stefan Beller
2018-07-19 21:45   ` Lars Schneider
2018-07-19 21:47   ` Jeff King
2018-07-19 22:38   ` Junio C Hamano
2018-07-19 22:45     ` Stefan Beller

Code repositories for project(s) associated with this public inbox

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 read-only IMAP folder(s) and NNTP newsgroup(s).