Created
February 2, 2022 21:25
-
-
Save connordavenport/d275aaf90ac7e8e84afadd4b6544df8f to your computer and use it in GitHub Desktop.
A RF script that simply just tells you the status of your Git repo ( if your open fonts are being tracked through Git )
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
import git | |
import os | |
from mojo.UI import OutputWindow | |
OutputWindow().clear() | |
fontDirs = list(set([os.path.dirname(f.path) for f in AllFonts()])) | |
for dirs in fontDirs: | |
if ".git" in os.listdir(dirs): | |
r = git.Repo(dirs) | |
print("pulling git status for...") | |
print(dirs) | |
print() | |
print(r.git.status()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment