From 69868f054a1b38a753b64ec3b90999e0bb3f8b8d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 13 Aug 2014 01:47:17 +0900 Subject: [PATCH] shrc: define mkpatch --- shrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/shrc b/shrc index 8797ed8..994c47b 100755 --- a/shrc +++ b/shrc @@ -507,6 +507,21 @@ then # alias cygsu="cygstart /cygwinsetup.exe" fi +mkpatch(){ + if test $# -eq 0 + then + echo "usage: mkpatch " + elif ! test -d "$1" + then + echo "mkpatch: $1 is not a directory" + elif ! test -d "$2" + then + echo "mkpatch: $2 is not a directory" + else + diff -Naur "$1" "$2" + fi +} + g(){ if test $# -eq 0 && null type git-info then