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

Re: update @version in file

From
Dan Loewenherz <dloewenherz@gmail.com>
Date
May 13, 2009, 16:04 UTC
Message-ID
<20090513160415.GA4097@andros.launchmodem.com>
In-Reply-To
<m3iqk5l4ps.fsf@localhost.localdomain>
On 13/05/09 02:42 -0700, Jakub Narebski wrote:
> Andreas Ericsson <ae@op5.se> writes:
> > No, but see GIT-VERSION-GEN and "git help describe" for info on how to
> > replace such version tags using a script when you cut a release of your
> > project.
Couldn't Git be a little more friendly? 

You can choose to ignore an uncommitted file through the `git update-index --assume-unchanged` command. But AFAIK, Git doesn't allow one to ignore uncommitted _lines_ in tracked files. If this feature were implemented, a post commit hook could write in the latest commit hash and git wouldn't care.

Is this something that is worth pursuing?
      Dan
Previous: Jakub NarebskiNext: Jakub Narebski
Message 5 of 10 in “update @version in file”
  1. takeshinMay 13, 2009
  2. Andreas EricssonMay 13, 2009
  3. takeshinMay 13, 2009
  4. Jakub NarebskiMay 13, 2009
  5. Dan LoewenherzMay 13, 2009
  6. Jakub NarebskiMay 13, 2009
  7. Matthieu MoyMay 13, 2009
  8. Andreas EricssonMay 13, 2009
  9. Jakub NarebskiMay 13, 2009
  10. Matthieu MoyMay 14, 2009

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.