git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc Weber <marco-oweber@gmx.de>
To: git <git@vger.kernel.org>
Subject: Re: can pre-commit hook accept user input?
Date: Sat, 22 May 2010 14:11:15 +0200	[thread overview]
Message-ID: <1274530138-sup-6441@nixos> (raw)
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

      parent reply	other threads:[~2010-05-22 12:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22  1:41 can pre-commit hook accept user input? Neal Kreitzinger
2010-05-22  1:45 ` Shawn O. Pearce
2010-05-22 12:11 ` Marc Weber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1274530138-sup-6441@nixos \
    --to=marco-oweber@gmx.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).