Skip to content

Conversation

@AmaranthineCodices
Copy link
Collaborator

For large or busy repositories, stack-pr commands can generate hundreds
of lines of output from Git subcommands being executed. Most of the time
these don't matter; the user doesn't care about them. This PR suppresses
them by default by redirecting stdout and stderr to
subprocess.DEVNULL. If this output is desired in a specific case, the
command-line flag --verbose (-V) can be used to avoid this
redirection.

For large or busy repositories, stack-pr commands can generate hundreds
of lines of output from Git subcommands being executed. Most of the time
these don't matter; the user doesn't care about them. This PR suppresses
them by default by redirecting stdout and stderr to
`subprocess.DEVNULL`. If this output is desired in a specific case, the
command-line flag `--verbose` (`-V`) can be used to avoid this
redirection.
Copy link
Collaborator

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ZolotukhinM ZolotukhinM merged commit a2af242 into main Oct 5, 2024
@ZolotukhinM ZolotukhinM deleted the lbrown/quieter-by-default branch October 5, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants