mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +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%%')`
|
||||
}
|
||||
|
||||
run_git()
|
||||
{
|
||||
marker git "$@"
|
||||
eval git "$@"
|
||||
}
|
||||
|
||||
# ------------- commands
|
||||
run()
|
||||
{(
|
||||
local d
|
||||
local cmd=$1
|
||||
local d
|
||||
|
||||
shift
|
||||
config
|
||||
cd $pdir
|
||||
|
||||
set -e
|
||||
for d in $pdirs; do
|
||||
marker $d
|
||||
git -C $d $cmd "$@"
|
||||
run_git -C $d $cmd "$@"
|
||||
done
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue