svn diff 如何只显示改变的行 [英] svn diff how to only show changed line

查看:52
本文介绍了svn diff 如何只显示改变的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用svn diff en.lua"时,我得到了这个结果:

When I used "svn diff en.lua ", I get this result:

 num="Amount",
 all="All",
 class="Quality",
-own="Have",
+own="Have2",
 paper="Specs",
 piece="Shard",
 not_enough=" not enough",

但我只想看这个

-own="Have",
+own="Have2",

我想知道svn diff"应该使用哪个参数?

I'm wondering which parameter should I use for "svn diff"?

推荐答案

至少在 svn 1.9 中,您可以使用 svn diff -x -U0.我不确定该选项是否在早期版本中可用.这似乎没有记录在 svn book,但是命令行文档显示:

At least with svn 1.9, you can use svn diff -x -U0. I'm unsure whether the option is available in earlier versions. This does not seem to be documented in the svn book, however the command line documentation shows:

$svn help diff
[...]
  -x [--extensions] ARG    : Specify differencing options for external diff or
                             internal diff or blame. Default: '-u'. Options are
                             separated by spaces. Internal diff and blame take:
                               -u, --unified: Show 3 lines of unified context
                               -b, --ignore-space-change: Ignore changes in
                                 amount of white space
                               -w, --ignore-all-space: Ignore all white space
                               --ignore-eol-style: Ignore changes in EOL style
                               -U ARG, --context ARG: Show ARG lines of context
                               -p, --show-c-function: Show C function name

这篇关于svn diff 如何只显示改变的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆