Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion equivalent to Git's 'show' command?

Tags:

I like how you can see what went into a git with git show rev

I haven't found an equivalent in Subversion. It seems Subversion wants you to do a diff between two commits to get anything reasonable.

Am I mistaken, or is there an equivalent to git show in svn to just see what went into a commit?

like image 542
randombits Avatar asked Aug 03 '10 17:08

randombits


People also ask

Is SVN checkout same as git clone?

git clone is more of an analogue to svn checkout than git checkout . git checkout just checks out a branch or commit from your local repository. git clone makes a new copy of a remote repository. +1, Just to emphasize, in 99% of case you'd do an svn checkout you'd need a git clone .

What is git SVN fetch?

DESCRIPTION. git svn is a simple conduit for changesets between Subversion and Git. It provides a bidirectional flow of changes between a Subversion and a Git repository. git svn can track a standard Subversion repository, following the common "trunk/branches/tags" layout, with the --stdlayout option.

Which is Better git or SVN?

SVN is better than Git for architecture performance, binary files, and usability. And it may be better for access control and auditability, based on your needs.


2 Answers

svn diff -c rev will show what changes happened in the specified revision.

svn log --diff -c rev will show the diff and the commit information.

like image 71
jamessan Avatar answered Dec 27 '22 03:12

jamessan


I take it you want to see not the list of files in the commit, but the contents of a file itself as it was in the commit. You can do this with svn cat -r rev filename, where "rev" is the revision number and "filename" is the path or URL to the file. Check svn help cat for more info.

like image 25
rmeador Avatar answered Dec 27 '22 01:12

rmeador