All of lore.kernel.org
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Allan Kelly <allankelly@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Show current SHA1
Date: Sat, 11 Jul 2009 12:55:17 +0300	[thread overview]
Message-ID: <874otjlf22.fsf@iki.fi> (raw)
In-Reply-To: <9586f3420907110239nbc35aealb473e1f1b3667410@mail.gmail.com> (Allan Kelly's message of "Sat, 11 Jul 2009 10:39:44 +0100")

On 2009-07-11 10:39 (+0100), Allan Kelly wrote:

> The question then is: what is the command to report the current SHA1?
> Note I never branch in the HTML repo, it's entirely linear.

If the "current SHA1" means "the SHA1 of the most recent commit in the
current branch" then usually

    git show

is the simplest way. There are many ways to print _only_ the SHA1.
Examples:

    git log -1 --pretty=format:%H
    git rev-list -1 HEAD

  reply	other threads:[~2009-07-11  9:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-11  9:39 Show current SHA1 Allan Kelly
2009-07-11  9:55 ` Teemu Likonen [this message]
2009-07-11 10:16   ` Charles Bailey
2009-07-11 11:36 ` Heinrich Nirschl

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=874otjlf22.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=allankelly@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.