Re: Something like $Id$, $Revision$ or $Date$?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: <git@...>
Date: Monday, November 10, 2008 - 1:38 pm

Jakub Narebski <jnareb@gmail.com> writes:


In my case identifying content not commit would be even better.


Earlier in the thread there was following code for a pre-commit hook
mentioned:

#v+
files=3D$(git diff-index --name-only --diff-filter=3DAM HEAD)
perl -pi -e 's/\$Id.*?\$/\$Id: '$(TZ=3DUTC date +%s)' \$/g' $files
git add $files
#v-

Now, this meats all my needs except that (i) it adds all the files that
were modified (ie. makes `git commit` work like `git commit -a`) and
(ii) it modifies files even if the commit was aborted.

So, it seems that, what I need is: (i) a pre-commit-post-message-hook
and (ii) a way to get a list of files that are being committed.


That would work but the thing is I'd like to have visioning without the
need of creating releases or doing some other voodoo magic -- simply `scp
file remote:file` or attach to an email.

=2D-=20
Best regards,                                         _     _
 .o. | Liege of Serenly Enlightened Majesty of      o' \,=3D./ `o
 ..o | Computer Science,  Michal "mina86" Nazarewicz   (o o)
 ooo +--<mina86*tlen.pl>--<jid:mina86*jabber.org>--ooO--(_)--Ooo--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Something like $Id$, $Revision$ or $Date$?, Michal Nazarewicz, (Mon Nov 10, 1:38 pm)
Re: Something like $Id$, $Revision$ or $Date$?, Jakub Narebski, (Mon Nov 10, 2:03 pm)
Re: Something like $Id$, $Revision$ or $Date$?, Michal Nazarewicz, (Mon Nov 10, 4:00 pm)
Re: Something like $Id$, $Revision$ or $Date$?, Jakub Narebski, (Mon Nov 10, 4:17 pm)
Re: Something like $Id$, $Revision$ or $Date$?, Francis Galiegue, (Mon Nov 10, 4:24 pm)
Re: Something like $Id$, $Revision$ or $Date$?, Jakub Narebski, (Mon Nov 10, 4:32 pm)
Re: Something like $Id$, $Revision$ or $Date$?, Brian Gernhardt, (Mon Nov 10, 4:58 pm)