Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Sigurdson\, Dirk" <Dirk.Sigurdson@T-Mobile.com>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Determine Blob ID from Commit ID and File Path
Date: Thu, 25 Jun 2009 12:07:45 -0700	[thread overview]
Message-ID: <7vhby49loe.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <C66917DD.29BF%dirk.sigurdson@t-mobile.com> (Dirk Sigurdson's message of "Thu\, 25 Jun 2009 12\:02\:37 -0700")

"Sigurdson, Dirk" <Dirk.Sigurdson@T-Mobile.com> writes:

> Given a commit id and the path to a file, I¹d like to be able to determine
> the blob id for the file.  Is there a git command that would provide this
> info?

"git rev-parse $commit:$path"?

      reply	other threads:[~2009-06-25 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25 19:02 Determine Blob ID from Commit ID and File Path Sigurdson, Dirk
2009-06-25 19:07 ` Junio C Hamano [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vhby49loe.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Dirk.Sigurdson@T-Mobile.com \
    --cc=git@vger.kernel.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox