Created
January 19, 2022 15:19
-
-
Save renkin/37685e359705e0598709933533a11e04 to your computer and use it in GitHub Desktop.
This script prints out all commits after a given timestamp, usually the timestamp of the last release, in all relevant repos.
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 | |
# | |
# This script prints out all commits after a given timestamp, usually the timestamp of the last release, in all relevant repos. | |
# | |
# Usage: changed_git_repos.sh <start check time> | |
# E.g.: changed_git_repos.sh '2021-12-21T18:00:00-02:00' | |
# | |
RELEVANT_REPOS=( repo1 repo2 ) | |
# base directory, where all repositories are located | |
BASE_DIR="/c/Dev/FP" | |
START_TIME="$1" | |
for repo in "${RELEVANT_REPOS[@]}" | |
do | |
echo "" | |
echo "Repo '$repo'" | |
echo "====================" | |
cd "$BASE_DIR/$repo" | |
git fe | |
git lga --after="$START_TIME" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment