A simple python app that scan a list of remote git repos, and report if there's a new commit since last run/check.
$./git-check.py repos.json -h
usage: git-check.py [-h] [-v] [-c] [-l] [-s] [-a ADD_GIT] [-f FIND_TEXT] [-r ENTRY_POS] jsonfile
positional arguments:
jsonfile a json file with a git repos list to check
options:
-h, --help show this help message and exit
-v, --verbose show more commit info while checking git repos
-c, --check-only do not update commit info in the json file and do not create the backup
file
-l, --list show list of git repos defined in the json file and days since latest
commit
-s, --sort sort json objects by last change date key (ascending order) and update
the json file
-a ADD_GIT, --add ADD_GIT
append a new git url entry in the json file
-f FIND_TEXT, --find FIND_TEXT
find text in url entry
-r ENTRY_POS, --remove ENTRY_POS
delete specific numbered entry from the json file
Note: before start using git-check, create a new json file, e.g., from bash shell with:
$ echo '[]' > list_of_remote_git.json
then start to add git url with:
$ ./git-check filename.json -a https://github.repo.to.check.git