Skip to content

Instantly share code, notes, and snippets.

@renkin
Created January 19, 2022 15:19
Show Gist options
  • Save renkin/37685e359705e0598709933533a11e04 to your computer and use it in GitHub Desktop.
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.
#!/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