Browse Source

Add an example usage for `-w 0`

Matthew Wang 10 years ago
parent
commit
11eb21cae6
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      README.rst

+ 2
- 1
README.rst View File

@@ -85,8 +85,9 @@ from e.g. ``git diff``, ``svn diff``):
85 85
 
86 86
     cd proj-workspace
87 87
     cdiff                       # view colored incremental diff
88
-    cdiff -s                    # view side by side
88
+    cdiff -s                    # view side by side, use default text width 80
89 89
     cdiff -s -w 90              # use text width 90 other than default 80
90
+    cdiff -s -w 0               # auto set text width based on terminal size
90 91
     cdiff -s file1 dir2         # view modification of given files/dirs only
91 92
     cdiff -s -w90 -- -U10       # pass '-U10' to underneath revision diff tool
92 93
     cdiff -s -w90 -U10          # '--' is optional as it's unknown to cdiff