mirror of
https://github.com/nmasur/dotfiles
synced 2026-11-08 05:15:02 +00:00
find uncommitted git repos
This commit is contained in:
1 parent
afefa06229
commit
b486085580
1 file changed
+16
Executable
+16
@@ -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
|
||||
Reference in new issue
Block a user