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

improvement to pre-commit hook

From
OOOlegzandr von Denman (ORESoftware) <alex@oresoftware.com>
Date
May 19, 2019, 06:03 UTC
Message-ID
<CAMsBkhmt0Xxe7EHSXJjxeZa4-CmF8oVgJiTFo2uHQOMcyKfCvw@mail.gmail.com>
I was expected an env var like:
GIT_DESIRED_COMMIT_MESSAGE
to show up when .git/hooks/pre-commit is run

but as described here, there doesn't appear to be any args to the script and the environment variable isn't there?

https://stackoverflow.com/questions/56205170/retrieving-desired-git-commit-message-in-pre-commit-hook
-alex
-- 
Alexander Mills
ORESoftware (inc.)
Next: brian m. carlson
Message 1 of 2 in “improvement to pre-commit hook”
  1. Olegzandr von Denman (ORESoftware)May 19, 2019
  2. brian m. carlsonMay 20, 2019

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.