git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Alf Clement" <alf.clement@gmail.com>
To: git@vger.kernel.org
Subject: current repository hash
Date: Mon, 16 Jun 2008 13:51:52 +0200	[thread overview]
Message-ID: <556d90580806160451g36daefb6o48b93b92589211bf@mail.gmail.com> (raw)

Hi all,

I want to compile the current repository hash id into my program, to
be able to checkout later this
id an see the exact files for the compile. It should flag if there are
currently modified files in the
directory tree.

What would be the best command to get a unique identifier?
Do I need the 40 digit hash id?
How can I make sure that a shorter hash id will be unique?

Thanks,
Alf

             reply	other threads:[~2008-06-16 11:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-16 11:51 Alf Clement [this message]
2008-06-16 12:11 ` current repository hash David Tweed
2008-06-16 12:15 ` Santi Béjar
2008-06-16 18:30   ` Alf Clement
2008-06-16 18:45     ` Jeff King
2008-06-17  6:48       ` Alf Clement
2008-06-17  7:07         ` Johan Herland
2008-06-16 15:04 ` Jeff King
2008-06-17  9:51 ` Johannes Schindelin

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=556d90580806160451g36daefb6o48b93b92589211bf@mail.gmail.com \
    --to=alf.clement@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.
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).