Name
svn diff — Display the differences between two revisions or paths.
Synopsis
diff [-c M | -r N[:M]] [TARGET
[@REV
]...]
diff [-r N[:M]] --old=OLD-TGT
[@OLDREV
] [--new=NEW-TGT
[@NEWREV
]] [PATH
...]
diffOLD-URL
[@OLDREV
]NEW-URL
[@NEWREV
]
Description
Display the differences between two paths. You can use svn diff in the following ways:
Use just
svn diff
to display local modifications in a working copy.Display the changes made to
TARGET
s as they are seen inREV
between two revisions.TARGET
s may be all working copy paths or allURL
s. IfTARGET
s are working copy paths,N
defaults toBASE
andM
to the working copy; ifTARGET
s areURL
s,N
must be specified andM
defaults toHEAD
. The-c M
option is equivalent to-r N:M
whereN = M-1
. Using-c -M
does the reverse:-r M:N
whereN = M-1
.Display the differences between
OLD-TGT
as it was seen inOLDREV
andNEW-TGT
as it was seen inNEWREV
.PATH
s, if given, are relative toOLD-TGT
andNEW-TGT
and restrict the output to differences for those paths.OLD-TGT
andNEW-TGT
may be working copy paths orURL[@REV]
.NEW-TGT
defaults toOLD-TGT
if not specified.-r N
makesOLDREV
default toN
;-r N:M
makesOLDREV
default toN
andNEWREV
default toM
.
svn diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]
is shorthand for svn diff --old=OLD-URL[@OLDREV]
--new=NEW-URL[@NEWREV].
svn diff -r N:M URL
is shorthand for
svn diff -r N:M --old=URL --new=URL
.
svn diff [-r N[:M]] URL1[@N] URL2[@M]
is
shorthand for svn diff [-r N[:M]] --old=URL1
--new=URL2
.
If TARGET
is a URL, then revs ...
Get Version Control with Subversion, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.