From f28187bad5e9fd725c270cb1753e0619b63f7351 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 8 Mar 2008 14:14:23 +0100 Subject: [PATCH] zshrc: update function git-get-plaindiff() --- debian/changelog | 7 +++++++ etc/skel/.zshrc | 15 ++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7c71e64..e0ce867 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc-core (0.3.50) unstable; urgency=low + + * zshrc: update function git-get-plaindiff() so it works around + the "generating..." bug + + -- Michael Prokop Sat, 08 Mar 2008 14:13:50 +0100 + grml-etc-core (0.3.49) unstable; urgency=low [ Frank Terbeck ] diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 830df2f..3d008a1 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -877,17 +877,22 @@ git-get-commit() { } #f5# Get specific git diff -git-get-plaindiff() { +git-get-plaindiff () { if [[ -z $GITTREE ]] ; then - GITTREE='linux/kernel/git/torvalds/linux-2.6.git' + GITTREE='linux/kernel/git/torvalds/linux-2.6.git' fi - if ! [[ -z $1 ]] ; then - wget "http://kernel.org/git/?p=$GITTREE;a=commitdiff_plain;h=$1" -O $1.diff + if [[ -z $1 ]] ; then + echo 'Usage: git-get-plaindiff ' else - echo 'Usage: git-get-plaindiff ' + echo -n "Downloading $1.diff ... " + # avoid "generating ..." stuff from kernel.org server: + wget --quiet "http://kernel.org/git/?p=$GITTREE;a=commitdiff_plain;h=$1" -O /dev/null + wget --quiet "http://kernel.org/git/?p=$GITTREE;a=commitdiff_plain;h=$1" -O $1.diff \ + && echo done || echo failed fi } + # http://strcat.de/blog/index.php?/archives/335-Software-sauber-deinstallieren...html #f5# Log 'make install' output mmake() { -- 2.1.4