Last active
August 29, 2015 13:57
-
-
Save VaclavSir/9743330 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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