8 lines
409 B
Bash
Executable file
8 lines
409 B
Bash
Executable file
#!/bin/sh
|
|
|
|
git-pending "$@" \
|
|
| grep '^ahead' \
|
|
| lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \
|
|
| zenity --list --column Repository --column Path --text "Repositories that need pushing:" --multiple --title "Git" --separator ';' --width 800 --height 300 --print-column=2 2>/dev/null \
|
|
| tr ';' '\n' \
|
|
| xargs -L 1 -I€ sh -c 'cd € && git push'
|