897419136ae05b665d6b8d5aa1c02932b8238ddc
Introduce repos.finddirty.py, a Python utility that scans a specified directory for Git repositories and reports those with uncommitted changes. The script uses pathlib for filesystem traversal, subprocess to execute git status commands, and sys for argument handling. It defines is_git_repo() to check for .git directories and is_dirty() to parse git status output for "tree clean" indicators, returning None for non-repo paths. Licensed under MIT.
Examples / research
This is a collection of source code examples and research that I share with others online. Not all is written by me. It's also used for just sharing resources on discussion forums. The contents are mainly destined to be read by a software developer.
Do you see something you want to know more about? Contact retoor@molodetz.nl.
Languages
Python
86.7%
C
8.7%
HTML
2.8%
JavaScript
1.5%
Shell
0.3%