瀏覽代碼

shrc: define mkpatch

pull/1/head
10sr 10 年之前
父節點
當前提交
69868f054a
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. +15
    -0
      shrc

+ 15
- 0
shrc 查看文件

@@ -507,6 +507,21 @@ then
# alias cygsu="cygstart /cygwinsetup.exe"
fi

mkpatch(){
if test $# -eq 0
then
echo "usage: mkpatch <olddir> <newdir>"
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


Loading…
取消
儲存