-
Notifications
You must be signed in to change notification settings - Fork 459
feat: don't print entering/leaving directory message when no ouput #12974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
f0d32fc to
2e254ba
Compare
2e254ba to
e2b4609
Compare
e2b4609 to
557c454
Compare
557c454 to
6657149
Compare
6657149 to
2d7ba7a
Compare
Signed-off-by: Ali Caglayan <alizter@gmail.com>
2d7ba7a to
f58de00
Compare
rgrinberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any tests where these messages are still being printed?
| | Entering_printed dir -> | ||
| (* make sure all buffered stdout output comes before the "leaving" message | ||
| or else it will interleave. *) | ||
| flush stdout; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this refactoring (the moving of flush into finish) into a separate PR?
| flush stdout; | ||
| directory := Set dir; | ||
| M.print_user_message | ||
| (User_message.make [ Pp.verbatimf "Leaving directory '%s'" dir ]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change from verbatim to verbatimf should also be a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rgrinberg here you can observe how it prints when there is output
--display=quiethas no effect on--root-changing messages #12854