Re: [PATCH 2/3] archive: specfile support (--pretty=format: in archive files)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 3, 2007, 18:40 UTC
- Message-ID
- <Pine.LNX.4.64.0709031935540.28586@racer.site>
- In-Reply-To
- <46DC4D45.4030208@lsrfire.ath.cx>
Hi,
On Mon, 3 Sep 2007, Ren? Scharfe wrote:
Show 5 quoted lines
> Add support for a new attribute, specfile. Files marked as being > specfiles are expanded by git-archive when they are written to an > archive. It has no effect on worktree files. The same placeholders > as those for the option --pretty=format: of git-log et al. can be > used.
I almost like this approach. Would it not be a little more useful if you could mark the placeholders with something like "$Format: xyz %c$"? Because then we could just shut up all those complainers that want to insert some revision specific information into the files, without affecting formats for printf().
Of course, the idea to keep the worktree unaffected is brilliant.
Ciao, Dscho