Move recursion from git-push-pending to git-pending
This commit is contained in:
parent
6f2f2769a2
commit
4587d1b0c1
2 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
for line in $@
|
||||
repos() {
|
||||
(for name in $@; do find -L $name -name '*.git' -type d | sed 's/\/.git$//'; done)
|
||||
}
|
||||
|
||||
for line in $(repos "$@")
|
||||
do
|
||||
dir=$(pwd)
|
||||
cd "$line"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
(for name in $@; do find -L $name -name '*.git' -type d | sed 's/\/.git$//'; done) \
|
||||
| xargs git-pending \
|
||||
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 \
|
||||
|
|
Loading…
Reference in a new issue