git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/3] archive: specfile support (--pretty=format: in archive files)

From
David Kastrup <dak@gnu.org>
Date
Sep 3, 2007, 20:19 UTC
Message-ID
<85ps0zmrhs.fsf@lola.goethe.zz>
In-Reply-To
<Pine.LNX.4.64.0709031935540.28586@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 15 quoted lines
> On Mon, 3 Sep 2007, Ren? Scharfe wrote:
>
>> 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.

I think a bit more layering would be helpful: when using git-svn, one would want to have things like $Id$ and $Date$ expanded, so maybe attribute specs like

somefile: expandmarkers="$Date: %aD$ $Id: ....$"

would be nice having. In the case of git-svn, I would expect them to be generated from git-svn from the respective svn properties, so that the user is not bothered with figuring out the awful $Id$ and whatever strings.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Previous: Johannes SchindelinNext: René Scharfe
Message 3 of 25 in “archive: specfile support (--pretty=format: in archive files)”
  1. 2/3 archive: specfile support (--pretty=format: in archive files)René Scharfe, Sep 3, 2007
  2. Johannes SchindelinSep 3, 2007
  3. David KastrupSep 3, 2007
  4. René ScharfeSep 4, 2007
  5. Junio C HamanoSep 3, 2007
  6. Andreas EricssonSep 4, 2007
  7. Johannes SchindelinSep 4, 2007
  8. René ScharfeSep 4, 2007
  9. Johannes SchindelinSep 5, 2007
  10. Junio C HamanoSep 5, 2007
  11. 4/3 archive: specfile syntax change: "$Format:%PLCHLDR$" instead of just "%PLCHLDR"René Scharfe, Sep 6, 2007
  12. Johannes SchindelinSep 6, 2007
  13. René ScharfeSep 6, 2007
  14. René ScharfeSep 6, 2007
  15. Junio C HamanoSep 6, 2007
  16. Johannes SchindelinSep 7, 2007
  17. 5/3 add memmem()René Scharfe, Sep 6, 2007
  18. 4/3 archive: specfile syntax change: "$Format:%PLCHLDR$" instead of just "%PLCHLDR" (take 2)René Scharfe, Sep 6, 2007
  19. 5/3 archive: rename attribute specfile to export-substRené Scharfe, Sep 6, 2007
  20. Johannes SchindelinSep 6, 2007
  21. René ScharfeSep 6, 2007
  22. Junio C HamanoSep 6, 2007
  23. Johannes SchindelinSep 7, 2007
  24. René ScharfeSep 4, 2007
  25. Junio C HamanoSep 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.