git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Git hooks and stdin/stderr/stdout.
@ 2020-10-11  9:25 Gabriel Nützi
  0 siblings, 0 replies; only message in thread
From: Gabriel Nützi @ 2020-10-11  9:25 UTC (permalink / raw)
  To: Git List

Dear all,

I have a question regarding git hooks and would have liked to get some
better understanding of how internally a hook is run. Especially I
want to know  what happens under the hood because the behavior kind of
puzzles me. So what I've understood:

When git runs the hook, git does
- connects stdin of the hook process to it (is that always the case?)
- redirects stdout of  the hook process to the stderr of the hook
process. So anything you write to stdout/stderr in the hook process
ends up in the stderr of the git process.

Is that understanding correct? Is there a doc describing this?

Thanks for the help.

BR Gabriel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-11  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11  9:25 Git hooks and stdin/stderr/stdout Gabriel Nützi

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).