Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I limit git log (or svn log) to revisions that regard one particular file?

Tags:

git

logging

svn

I'd like to see a series of diffs for a file. I'd settle for simply the log listing restricted to only those entries that modified the file.

like image 629
James A. Rosen Avatar asked Dec 08 '08 20:12

James A. Rosen


People also ask

Can I use Git and svn at the same time?

You can clone a subversion repository to your machine using git svn clone <SVN repo URL> . The code will be available as a git repository. You can do your work there and make local commits as you please. There is a command line option to get a "shallow" checkout rather than the entire repository which is often useful.

How do I find my svn revision history?

If you want to see what changed in that revision, try pointing svn log directly at the topmost URL of your repository, as in svn log -r 2 ^/ .

Where are svn logs stored?

Modern VisualSVN versions write log messages into the %TEMP%\VisualSVN directory as individual text files with the *. log extension. Each log file contains a description of events during a single Visual Studio session.

How do I view svn logs?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.


1 Answers

svn log filename

or

svn log URL

I also recommend adding --limit N to show only recent entries:

svn log main.cpp --limit 4

These can be applied to a file or project, BTW.

like image 97
theschmitzer Avatar answered Oct 10 '22 01:10

theschmitzer