commit ea887a943ddba9fa2caa87a60e37139204c40441
Author: Elan Ruusamäe <[email protected]>
Date:   Fri Mar 20 13:56:07 2015 +0200

    d: pass extra args to diff(1)

 shrc.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/shrc.sh b/shrc.sh
index 8e36984..aceec77 100755
--- a/shrc.sh
+++ b/shrc.sh
@@ -294,8 +294,8 @@ sed -e '
 # does diff between FILE~ and FILE
 # the diff can be applied with patch -p1
 d() {
-       local file="$1"
-       local dir diff
+       local file="$1" dir
+       shift
        if [[ "$file" = /* ]]; then
                # full path -- no idea where to strip
                dir=.
@@ -306,7 +306,7 @@ d() {
                diff=${PWD##*/}/${file}
        fi
 
-       (builtin cd "$dir"; dif $diff{~,})
+       (builtin cd "$dir"; dif $diff{~,} "$@")
 }
 
 # spec name from NVR
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/ea887a943ddba9fa2caa87a60e37139204c40441

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to