Re: Something like $Id$, $Revision$ or $Date$?
- From
Michal Nazarewicz <mina86@tlen.pl>
- Date
- Nov 10, 2008, 20:00 UTC
- Message-ID
- <871vxjl5af.fsf@erwin.mina86.com>
- In-Reply-To
- <200811101903.27685.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 11 quoted lines
> Dnia poniedziałek 10. listopada 2008 18:38, Michal Nazarewicz napisał: >> Jakub Narebski <jnareb@gmail.com> writes: >> >> > The reason why git doesn't support keywords like $Revision$ or $Date$ >> > is performance: the $Revision$ and $Date$ are keywords related to >> > _commit_ data, not blob data. >> >> In my case identifying content not commit would be even better. > > Well, in that case using `ident` attribute would be enough > (but cryptic).
Yes, but it forces me to do some voodoo magic (ie. checkout) to get the Id in the file, ;) like so:
#v+ $ echo '$Id$' >bar && git add bar && git commit -m 'Added bar' && cat bar Created commit d49d436: Added bar 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 bar $Id$ $ rm bar && git checkout bar && cat bar $Id: 055c8729cdcc372500a08db659c045e16c4409fb $ #v-
But never mind, since it seems hard to accomplish in git, I'll have to learn to live without it. ;)
-- Best regards, _ _ .o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michal "mina86" Nazarewicz (o o) ooo +--<mina86*tlen.pl>--<jid:mina86*jabber.org>--ooO--(_)--Ooo--