Roland's homepage

My random knot in the Web

git-check-all

Update: The checkfor function was split off into its own
(included) module.

This scripts looks for all directories in the users' home directory that are managed by the git revision control system (i.e. that have a .git subdirectory).

For each of those directories it checks wether there are uncommitted changes by running git status. If there aren't any, it runs git gc using the --auto option, to cleanup and optimize the repository.

source:git-check-all.zip
GPG signature:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEABECAAYFAlDV70YACgkQEnfvsMMhpyXStACgk+dIoRwEwY3yE+Iaq+HUH8q1
HGAAn2AOOpNT7tcmbKccRtVoq9uhxd3m
=mrya
-----END PGP SIGNATURE-----
SHA256 hash:5c6f3e3fef8008eac9cd3962f874c882b972ac208a28de578cc8d1b06c00c908
Requirements:python, git

Note

|filename|/images/cc0.png

To the extent possible under law, Roland Smith has waived all copyright and related or neighboring rights to git-check-all.zip. This work is published from the Netherlands.