find uncommitted git repos

This commit is contained in:
Noah Masur 2021-11-16 07:49:59 -05:00
parent afefa06229
commit b486085580

View File

@ -0,0 +1,16 @@
#!/usr/local/bin/fish
function uncommitted --description "Find uncommitted git repos"
set current_dir (pwd)
cd $HOME/dev
find . -type d -name '.git' | \
while read dir
cd $dir/../
and if test -n (echo (git status -s))
pwd
git status -s
end
cd -
end
cd $current_dir
end