This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/scripts/_git_check_unpushed

17 lines
257 B
Fish
Executable File

#!/bin/fish
cd "$HOME/Projects"
fd -d5 -H '^\.git$' |
sd '\.git$' '' |
while read repo
pushd "$repo"
if git cherry -v 2> /dev/null | wc -l | xargs -n1 test 0 -lt
echo Unpushed repos $repo
break
end
popd
end
# vim: ft=fish