modularml / stack-pr

A tool for working with stacked PRs on github.
Other
299 stars 11 forks source link

Suppress subcommand output by default #26

Closed AmaranthineCodices closed 1 month ago

AmaranthineCodices commented 1 month ago

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.