From: Lars Schneider <larsxschneider@gmail.com>
To: git@vger.kernel.org
Cc: Jeff King <peff@peff.net>, Jared Murrell <primetheus@github.com>
Subject: Find commit that referenced a blob first
Date: Thu, 19 Jul 2018 23:02:47 +0200 [thread overview]
Message-ID: <C00CED1F-D685-40E5-A5CC-4040BFD82886@gmail.com> (raw)
Hi,
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,
Lars
next reply other threads:[~2018-07-19 21:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 21:02 Lars Schneider [this message]
2018-07-19 21:19 ` Find commit that referenced a blob first 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C00CED1F-D685-40E5-A5CC-4040BFD82886@gmail.com \
--to=larsxschneider@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=primetheus@github.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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).