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 list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ \
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor:

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

AGPL code for this site: git clone