#34 - Increased max changes before falling back to standard git status, from 99 to 150. Also added a explanation message that is shown after the regular git status.

This commit is contained in:
Nathan Broadbent
2012-08-13 01:21:23 +12:00
parent 989b2233b7
commit 3a507fbd5a
2 changed files with 5 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ git_status_shortcuts() {
fi
if [[ -z "$cmd_output" ]]; then
# Just show regular git status if ruby script returns nothing.
git status; return 1
git status
echo -e "\n\e[33mThere were more than $gs_max_changes changed files. SCM Breeze has fallen back to standard \`git status\` for performance reasons.\e[0m"
return 1
fi
# Fetch list of files from last line of script output
files="$(echo "$cmd_output" | \grep '@@filelist@@::' | sed 's%@@filelist@@::%%g')"