Re: Feature suggestion: git-hist
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Jul 30, 2008, 14:55 UTC
- Message-ID
- <20080730145534.GD32057@genesis.frugalware.org>
- In-Reply-To
- <20080730155835.71289eee@pc09.procura.nl>
On Wed, Jul 30, 2008 at 03:58:35PM +0200, "H.Merijn Brand" <h.m.brand@xs4all.nl> wrote:
> We are not used to working with $SHA's, and IMHO from the end-user pov, > a $SHA is less user friendly than a release number or a file version. I > can remember a version, but I cannot remember a SHA.
But a version is never unique in a distributed environment. So a version is useless without at least an abbreviated hash.
If pure hashes are not friendly enough, you can use something like:
git describe $(git rev-list -1 HEAD -- <file>)
to get the _hash_ of the _commit_ (ie. not the version of a file) that touched the file last time.