Skip to content

Instantly share code, notes, and snippets.

@VaclavSir
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VaclavSir/9743330 to your computer and use it in GitHub Desktop.
Save VaclavSir/9743330 to your computer and use it in GitHub Desktop.
#!/bin/bash
for SUBDIR in $(ls -d -- */)
do
cd $SUBDIR
echo -ne "."
CMD="git log --all --grep='$1' 2>/dev/null"
RESULT=$(eval $CMD)
if [[ "$RESULT" != "" ]]
then
echo
echo
echo $SUBDIR
git log --all --grep="$1" --oneline
fi
cd ..
done
echo
#!/bin/bash
for SUBDIR in $(ls -d -- */)
do
if [[ ! -h ${SUBDIR%%/} ]]
then
cd $SUBDIR
echo -ne "."
if [[ "$(git status --porcelain 2>/dev/null)" != "" ]]
then
echo
echo $SUBDIR
git status
fi
cd ..
fi
done
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment