简体   繁体   中英

Is there a GitX equivalent for Subversion that allows command-line execution?

I really like being able to the command-line tool gitx from Terminal.app to open GitX and see the Git repository change log that I can scroll through, with nicely formatted diffs for each.

Git and Subversion are fairly different, and I know a tool to view a log and diffs for a checkout of a part of the subversion repo certainly wouldn't be the same as viewing a git repo via GitX. But, is there anything out there that allows command-line execution that would allow me to see a similar log in a checked-out directory of a svn repo with even a vaguely similar interface?

我认为有一个名为SvnX的程序

SvnX can be used at command-line to do this:

~/bin/svnx wc . && ~/bin/svnx log .

I added an alias for this in .bash_profile:

alias svnx='~/bin/svnx wc . && ~/bin/svnx log .'

Then after restarting Terminal.app, I can cd into an svn trunk directory and just use:

svnx

It works well, although it is a little slow with big logs, requires a few more clicks than gitx to see each revision's changeset, and shows the entire documents you are comparing in the diff tool rather than just the diffs. But, it allows you to choose between different versions in the log to compare and much more.

I normally wouldn't make the alias the same name as the script it is calling, but in this case I use gitx for the same purpose (opening up the current project to view diffs), so it makes it easy to remember.

Thanks to chris0 of lavabit for the info on adding the working copy!

download this fmdiff script and put it in /usr/local/bin

then run svn diff --diff-cmd fmdiff instead of svn diff and the diff will load up in FileMerge.app, Apple's diff tool

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM