diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-10 08:39:19 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-10 08:39:19 +0200 |
commit | 73ecf4baf4720f9791964e88b4a84c245064496c (patch) | |
tree | ae1f3d922f436115128e80cbb9b1ef84bc793d6b /include/pkglist | |
parent | c597ca15e1d53b2e5800b0704d658233208b66cb (diff) |
Updated comments in include/pkglist
Diffstat (limited to 'include/pkglist')
-rwxr-xr-x | include/pkglist | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/pkglist b/include/pkglist index 2182f4b..95696a2 100755 --- a/include/pkglist +++ b/include/pkglist @@ -1,7 +1,7 @@ #!/usr/bin/env zsh ## on the PKG_HOST: list available packages -## used by ct remote-update -# the PKG_PATH (package root path) is given as first argument ($1) +## used by ct update remote +## the PKG_PATH (package root path) is given as first argument ($1) if [[ ! -d $1 ]] { echo "$0: package root directory '$1' does not exist!" >&2 @@ -10,19 +10,24 @@ if [[ ! -d $1 ]] { setopt err_exit -# change into package root directory (first argument) cd $1 shift for i in *(-/); { + + # git repo if [[ -d $i/.git ]] { echo -n "$i git " echo -n ${$(git --git-dir=$i/.git log -n 1)[2]} echo " $*" + + # bare git repo } elif [[ -d $i/objects && -d $i/refs ]] { echo -n "$i git " echo -n ${$(git --git-dir=$i log -n 1)[2]} echo " $*" + + # unknown } else { echo "$i: Unsupported or no repository" >&2 } |