Make git-push-pending bash script more generic

This commit is contained in:
Talia 2020-07-20 16:25:45 +02:00
parent f934cf59e1
commit bd87f3a9e6

View file

@ -1,6 +1,6 @@
#!/bin/sh
(echo $HOME/darkrc; echo $HOME/me; find $HOME/workspace/ -name '*.git' -type d | sed 's/\/.git$//') \
(for name in $@; do find $name -name '*.git' -type d | sed 's/\/.git$//'; done) \
| xargs git-pending \
| grep '^ahead' \
| lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \