Re: Commit ID in exported Tar Ball

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: rene.scharfe
Date: Tuesday, May 22, 2007 - 4:44 pm

Junio C Hamano schrieb:

$Id$ (and $commit$) is reversible, @@COMMITID@@ is not.  That means you
can create a synthetic file byte for byte with @@COMMITID@@ (and its not
yet implemented brethren), but you can't do that with $Id$ -- it's
impossible to get rid of the dollar signs.

I'm not attached to any particular syntax.  It all started with
@@VERSION@@ from git.spec.in, which should not be implemented 1:1 anyway
(we'd need to be able to use arbitrary separators between version parts
to support different ways of ordering version numbers).

We could use $ to indicate reversible substitutions as before and @
(instead of @@) for one-way substitutions.  I can't think of any other
use than in archives, though.  It sure would be very confusing to have
such a conversion happen on checkout -- you'd need to use git-cat-file
to see the real file contents.


Ugh.  Requiring another global variable doesn't smell like good design.

By the way, we already have a similar, but very different syntax: the
one format_commit_message in commit.c.  It's a one-way conversion, too.
 Maybe we should copy the relevant pieces like %H and %h from there..

Do we want git-archive specific one-way conversions that are capable of
creating files like git.spec?  Or is this just a shiny toy hypnotizing
me? 8-)

René
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Commit ID in exported Tar Ball, Thomas Glanzmann, (Thu May 17, 9:38 am)
Re: Commit ID in exported Tar Ball, Johan Herland, (Thu May 17, 9:57 am)
Re: Commit ID in exported Tar Ball, krh, (Thu May 17, 10:02 am)
Re: Commit ID in exported Tar Ball, Frank Lichtenheld, (Thu May 17, 10:11 am)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Thu May 17, 10:13 am)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Thu May 17, 10:14 am)
Re: Commit ID in exported Tar Ball, Johan Herland, (Thu May 17, 10:28 am)
Re: Commit ID in exported Tar Ball, Frank Lichtenheld, (Thu May 17, 10:48 am)
Re: Commit ID in exported Tar Ball, Johan Herland, (Thu May 17, 11:05 am)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Sat May 19, 1:22 pm)
Re: Commit ID in exported Tar Ball, Junio C Hamano, (Sat May 19, 2:00 pm)
Re: Commit ID in exported Tar Ball, A Large Angry SCM, (Sat May 19, 2:39 pm)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Sat May 19, 5:15 pm)
Re: Commit ID in exported Tar Ball, Shawn O. Pearce, (Sat May 19, 8:57 pm)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Sun May 20, 4:20 am)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Sun May 20, 4:20 am)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Sun May 20, 4:20 am)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Sun May 20, 9:10 am)
Re: Commit ID in exported Tar Ball, Brian Gernhardt, (Sun May 20, 9:28 am)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Sun May 20, 9:30 am)
Re: Commit ID in exported Tar Ball, Shawn O. Pearce, (Sun May 20, 11:02 pm)
Re: Commit ID in exported Tar Ball, Peter Baumann, (Sun May 20, 11:19 pm)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Sun May 20, 11:24 pm)
Re: Commit ID in exported Tar Ball, Shawn O. Pearce, (Sun May 20, 11:29 pm)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Sun May 20, 11:37 pm)
Re: Commit ID in exported Tar Ball, Shawn O. Pearce, (Sun May 20, 11:53 pm)
Re: Commit ID in exported Tar Ball, Brian Gernhardt, (Sun May 20, 11:56 pm)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Mon May 21, 12:00 am)
Re: Commit ID in exported Tar Ball, Thomas Glanzmann, (Mon May 21, 12:02 am)
Re: Commit ID in exported Tar Ball, Petr Baudis, (Mon May 21, 5:09 am)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Mon May 21, 12:54 pm)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Tue May 22, 3:26 pm)
Re: Commit ID in exported Tar Ball, Junio C Hamano, (Tue May 22, 3:54 pm)
Re: Commit ID in exported Tar Ball, rene.scharfe, (Tue May 22, 4:44 pm)
Re: Commit ID in exported Tar Ball, Shawn O. Pearce, (Tue May 22, 10:22 pm)