diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-08 20:02:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-08 20:02:58 +0200 |
commit | 0ac96538b643238de0b99db7640e1c3ab18c4c06 (patch) | |
tree | 23829a5c05c21875e5faf0cd3386c0e6537c3988 /include | |
parent | 9d61ea5ef6a154369a1855c5fda70b7b38bcd55f (diff) |
pkglist: Use git log -n 1, so head -n 1 is not neccessary
Diffstat (limited to 'include')
-rwxr-xr-x | include/pkglist | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pkglist b/include/pkglist index f4474ff..a727587 100755 --- a/include/pkglist +++ b/include/pkglist @@ -13,10 +13,10 @@ for i in *(/,@); { if [[ -d $i/.git ]] { if (( newmode )) { echo -n "$i git " - git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 + git --git-dir=$i/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 } else { echo -n "$i git " >> .list - git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 >> .list + git --git-dir=$i/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 >> .list } } else { echo "$i: Unsupported or no repository" >&2 |