update: pop the stash more quietly
git stash pop -q will print "Already up-to-date!" if untracked changes are being poppped. This quiets it down unless verbose is set. Closes #320. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
14657443ce
commit
2cd81e5051
@ -95,11 +95,13 @@ read_current_revision() {
|
|||||||
|
|
||||||
pop_stash() {
|
pop_stash() {
|
||||||
[[ -z "$STASHED" ]] && return
|
[[ -z "$STASHED" ]] && return
|
||||||
git stash pop "${QUIET_ARGS[@]}"
|
|
||||||
if [[ -n "$HOMEBREW_VERBOSE" ]]
|
if [[ -n "$HOMEBREW_VERBOSE" ]]
|
||||||
then
|
then
|
||||||
|
git stash pop
|
||||||
echo "Restoring your stashed changes to $DIR:"
|
echo "Restoring your stashed changes to $DIR:"
|
||||||
git status --short --untracked-files
|
git status --short --untracked-files
|
||||||
|
else
|
||||||
|
git stash pop "${QUIET_ARGS[@]}" 1>/dev/null
|
||||||
fi
|
fi
|
||||||
unset STASHED
|
unset STASHED
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user