Sunday, December 04, 2011

diff 使用 –exclude 選項在比較時去除 .svn 文件夾

資料來源: diff 使用 –exclude 選項在比較時去除 .svn 文件夾

diff --exclude='*.orig' --exclude='*.o' --exclude='*.ko' \
    --exclude='*.cmd' --exclude='*.o' --exclude='CVS' \
    --exclude='.svn' --exclude='*.mod' --exclude='.*' \
    --exclude='*.rej' --exclude='*.orig' --exclude='*.symvers' \
    --exclude='debian' --exclude='*.a' --exclude='*.mod.c' \
    --exclude='System.map' --exclude='*.so' -urN \
    a b > different.patch

No comments: