Merge pull request #14203 from kaykayehnn/improve-stash-snippet

doctor: add -u flag to suggested git stash command
This commit is contained in:
Bo Anderson 2022-12-04 19:33:09 +00:00 committed by GitHub
commit 001bacee18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,7 +672,7 @@ module Homebrew
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd #{path} && git stash && git clean -d -f
cd #{path} && git stash -u && git clean -d -f
EOS
modified = status.split("\n")