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

Re: Confused about "ident" filter

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 19, 2008, 08:27 UTC
Message-ID
<m3skxiqmfr.fsf@localhost.localdomain>
In-Reply-To
<48076059.4040503@gnu.org>
Paolo Bonzini <bonzini@gnu.org> writes:
Show 7 quoted lines
> Peter Karlsson wrote:
> > I tried doing "git checkout test.perl", I tried "git clone" to get a new
> > copy of the repository, but still it showed only "$Id$".
> 
> In fact I'm a little confused too.  The only way I found to expand
> "$Id$" consistently was "rm test.perl; git checkout test.perl", or "rm
> test.perl; git reset --hard HEAD".

I think that "git checkout -f test.perl" should work, forcing git to replace existing file.

As to clone problem: it might be chicken and egg problem, with `ident` filter needing .gitattribites in working directory during checkout phase (currently there is no way to use gitattributes from a tree in repository), and checkout writing this file.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Paolo Bonzini
Message 3 of 3 in “Confused about "ident" filter”
  1. Peter KarlssonApr 17, 2008
  2. Paolo BonziniApr 17, 2008
  3. Jakub NarebskiApr 19, 2008

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.