Re: can pre-commit hook accept user input?
- From
- Marc 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