Skip to content

Instantly share code, notes, and snippets.

@connordavenport
Created February 2, 2022 21:25
Show Gist options
  • Save connordavenport/d275aaf90ac7e8e84afadd4b6544df8f to your computer and use it in GitHub Desktop.
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 )
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