您的位置:首页 > 运维架构 > Linux

linux下如何使用svn判断本地文件夹那些文件已改动的命令

2012-01-15 15:46 1006 查看
svn diff --diff-cmd "diff" -x "-q" . | grep Index | cut -d " " -f 2


转载自:http://jonathanpolansky.com/2009/04/list-only-the-path-and-filenames-of-files-with-differences-using-subversion-svn/

以下是原文:

The Subversion svn command has built in diff functionality but it is more limited than GNU diff. It doesn’t allow you to use the ‘-q’ option to

“Report only whether the files differ, not the details of the differences.” Luckily, svn allows you to specify an external “diff” command and then pass it arguments. Use the following command to list only files with local modifications and changes within
a subversion checkout.


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: