Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Print hook output in real time #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ayg
Copy link

@ayg ayg commented May 2, 2019

Sometimes hooks are used to run various types of linting or tests, e.g.,
for pre-review. These can take a while, and if they print progress
indicators, it's useful to see them immediately. Previously they
wouldn't be printed at all unless there was a failure, and then all
output would suddenly be printed. This makes it look like git-review is
hanging. If hooks want to only print output on failure, they can buffer
the output themselves however they like.

As far as I can tell, the new behavior matches behavior of built-in git
hooks like pre-commit, which do seem to print output immediately.

Sometimes hooks are used to run various types of linting or tests, e.g.,
for pre-review. These can take a while, and if they print progress
indicators, it's useful to see them immediately. Previously they
wouldn't be printed at all unless there was a failure, and then all
output would suddenly be printed. This makes it look like git-review is
hanging. If hooks want to only print output on failure, they can buffer
the output themselves however they like.

As far as I can tell, the new behavior matches behavior of built-in git
hooks like pre-commit, which do seem to print output immediately.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant