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

Re: can pre-commit hook accept user input?

From
MWMarc Weber <marco-oweber@gmx.de>
Date
May 22, 2010, 12:11 UTC
Message-ID
<1274530138-sup-6441@nixos>
In-Reply-To
<ht7co7$d0s$1@dough.gmane.org>
Excerpts from Neal Kreitzinger's message of Sat May 22 03:41:11 +0200 2010:
> Can the pre-commit hook accept user input?  I'm new to linux and bash 

Maybe try describing why you want to add this hook? Which purpose does it have? Maybe there is another way to get what you want.

There may be some ways using new ttys and such to be able to read from stdin again. Maybe even use tools such as xmessage or gui inputs.

But this should be a personal hack only then - because I don't know exactly those hooks are run. So tell more about the "why" and maybe you'll get much feedback about the "how" to do it.

Marc Weber
Previous: Shawn O. Pearce
Message 3 of 3 in “can pre-commit hook accept user input?”
  1. Neal KreitzingerMay 22, 2010
  2. Shawn O. PearceMay 22, 2010
  3. Marc WeberMay 22, 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.