Shell: git-check.

master
Pierre Neidhardt 2013-02-22 22:43:22 +01:00
parent 82f2571dcf
commit 7876663de6
1 changed files with 11 additions and 0 deletions

View File

@ -863,6 +863,17 @@ crun()
rm "$FILE"
}
git-check()
{
while IFS= read -r FOLDER; do
if [ -z "$(cd "${FOLDER%/*}" && git status -uno | grep "nothing to commit")" ]; then
echo "${FOLDER%/*}"
fi
done <<EOF
$(find . -type d -name ".git")
EOF
}
##==============================================================================
## Pacman functions
##==============================================================================