Created
August 29, 2017 07:37
-
-
Save Programie/87f02cd8b7129aabcb17fbc0e8f120f7 to your computer and use it in GitHub Desktop.
Show all commits since a specific date in all cloned git repositories (cloned to $GIT_HOME)
This file contains 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 | |
SINCE="$1" | |
if [ -z "${SINCE}" ]; then | |
echo "Usage: $0 <since>" | |
exit 1 | |
fi | |
for REPO in `find ${GIT_HOME} -name .git -type d`; do | |
echo ${REPO} | |
GIT_USER=$(git -C "${REPO}" config user.name) | |
git -C "${REPO}" --no-pager log --author "${GIT_USER}" --since "${SINCE}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment