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

How to "pre-populate" a git message

From
PDPatrick Doyle <wpdster@gmail.com>
Date
Dec 3, 2010, 17:51 UTC
Message-ID
<AANLkTim=dVxVLL31aEBrjw7OhXpdYOjAO9Sk16gGP3zJ@mail.gmail.com>

Once in a while, I would like to run some scripts that will automatically generate some files that I keep maintained in my repository. (Yes, I know that I shouldn't have to keep them version controlled if I can regenerate them, but it's easier to check out old versions of the files than it is to check out old versions of the repository, wait 1/2 hour to regenerate the files, and then look at them).

I also like to review the files before they get committed.

Is there any way I can "pre-populate" the commit message so that I can run my "regenerate" command, review the differences, and then commit the changes with my prewritten message?

--wpd
Next: Jonathan Nieder
Message 1 of 3 in “How to "pre-populate" a git message”
  1. Patrick DoyleDec 3, 2010
  2. Jonathan NiederDec 3, 2010
  3. Dirk SüsserottDec 3, 2010

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.