2012年1月18日 星期三

[tool] Diff with file or folder

diff command :

diff -uitr AXXX(A folder)   BXXX(B folder)

diff -uit AXXX(A file) BXXX(B file)
       -i  --ignore-case
              Ignore case differences in file contents.

       -t  --expand-tabs
              Expand tabs to spaces in output.

       -r  --recursive
              Recursively compare any subdirectories found.

       -u  -U NUM  --unified[=NUM]
              Output NUM (default 3) lines of unified context.

Use the diff command to create a new patch:
       diff –ur samba-1.0.1 samba-1.0.2 > new.patch

0 意見:

張貼留言