开发者

Get a CVS log/history similar to the "git log" command?

开发者 https://www.devze.com 2023-03-01 00:56 出处:网络
I\'m a git guy, but now I have to use CVS in a project temporarily. I haven\'t been able to find a command that displays a nicely formatted chronological commit list with author, commit message, date

I'm a git guy, but now I have to use CVS in a project temporarily. I haven't been able to find a command that displays a nicely formatted chronological commit list with author, commit message, date and revision (and nothing else).

Instead I get all sorts of useless information about RCS file, locks, etc, and cvs log seems to group commits by file rather than by date which makes it hard to get an over开发者_如何学编程view of what has happened in a repository.

Is there a way to do that, dear CVS experts?


Use git cvsimport to import the entire repository into git and then interact with git. It's not quite as smooth as git svn, but it does work well.


Here's a script to display the history of CVS commits similar to Git or SVN:

https://alvinabad.wordpress.com/2015/03/01/display-the-history-of-cvs-commits-similar-to-git-or-svn/

https://github.com/alvinabad/cvs-utils/blob/master/cvs-history.py

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号