mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
pgit.sh: Be more verbose about git commands
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3ebfeed3f8
commit
03dde99cc1
1 changed files with 9 additions and 3 deletions
|
|
@ -32,19 +32,25 @@ config()
|
||||||
pdirs=`(cd $pdir; ls -d */.git 2>/dev/null | sed 's%/.git%%')`
|
pdirs=`(cd $pdir; ls -d */.git 2>/dev/null | sed 's%/.git%%')`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_git()
|
||||||
|
{
|
||||||
|
marker git "$@"
|
||||||
|
eval git "$@"
|
||||||
|
}
|
||||||
|
|
||||||
# ------------- commands
|
# ------------- commands
|
||||||
run()
|
run()
|
||||||
{(
|
{(
|
||||||
local d
|
|
||||||
local cmd=$1
|
local cmd=$1
|
||||||
|
local d
|
||||||
|
|
||||||
shift
|
shift
|
||||||
config
|
config
|
||||||
cd $pdir
|
cd $pdir
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
for d in $pdirs; do
|
for d in $pdirs; do
|
||||||
marker $d
|
run_git -C $d $cmd "$@"
|
||||||
git -C $d $cmd "$@"
|
|
||||||
done
|
done
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue