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

Re: [PATCH] Fix mishandling of $Id$ expanded in the repository copy in convert.c

From
APAndy Parkins <andyparkins@gmail.com>
Date
May 27, 2007, 10:50 UTC
Message-ID
<200705271150.50147.andyparkins@gmail.com>
In-Reply-To
<7vveefiex4.fsf@assigned-by-dhcp.cox.net>
On Saturday 2007, May 26, Junio C Hamano wrote:
Show 12 quoted lines
> Wouldn't it be sufficient to:
>
>  (1) prepare a file with "$Id$", use ident in .gitattributes,
>      check it in and commit;
>
>  (2) remove it from the working tree, check it out with
>      "checkout -f";
>
>  (3) temorarily move away .gitattributes, modify the file, and
>      check it in;
>
>  (4) move .gitattributes back into its place, and commit.

I'm glad to have you confirm that. I wasn't sure if git would do something clever and reading the .gitattributes from the same commit as the file for which is being checked out.

If the above would work, then even simpler:
 (1) Commit a file with $Id: blah blah blah $ in it.
 (2) Add a .gitattributes with ident
 (3) Check out.
Patch to follow.
Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Junio C HamanoNext: Andy Parkins
Message 12 of 13 in “Fix mishandling of $Id$ expanded in the repository copy in convert.c”
  1. Fix mishandling of $Id$ expanded in the repository copy in convert.cAndy Parkins, May 25, 2007
  2. Joshua N PritikinMay 25, 2007
  3. Andy ParkinsMay 25, 2007
  4. Don't allow newlines to occur in $Id:$ collapseAndy Parkins, May 25, 2007
  5. Joshua N PritikinMay 25, 2007
  6. Nicolas PitreMay 25, 2007
  7. Andy ParkinsMay 25, 2007
  8. Joshua N PritikinMay 25, 2007
  9. Junio C HamanoMay 26, 2007
  10. Andy ParkinsMay 26, 2007
  11. Junio C HamanoMay 26, 2007
  12. Andy ParkinsMay 27, 2007
  13. Add test case for $Id$ expanded in the repositoryAndy Parkins, May 27, 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.