This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
git revision at time
- From: Tim Moore <timoore at redhat dot com>
- To: frysk <frysk at sourceware dot org>
- Date: Tue, 08 Jan 2008 18:06:53 +0100
- Subject: git revision at time
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
To find the last revision before a date:
git-rev-list --before=2007-12-14 --pretty=oneline -n1 HEAD
You could use --pretty=format:%H to just get the SHA1 hash if you wanted to feed the
result directly to another command, like git-tag or git-branch.
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHg62teDhWHdXrDRURAvnBAKDhUpZpSHyhl1NRrk2+QUsSJPFpTQCgxNb5
X8zrvoa5BzC1aYleiohlb2Y=
=wPe6
-----END PGP SIGNATURE-----