当我使用“svn diff en.lua”时,我得到了这个结果:
num="Amount",
all="All",
class="Quality",
-own="Have",
+own="Have2",
paper="Specs",
piece="Shard",
not_enough=" not enough",
Run Code Online (Sandbox Code Playgroud)
但我只想看这个
-own="Have",
+own="Have2",
Run Code Online (Sandbox Code Playgroud)
我想知道“svn diff”应该使用哪个参数?
至少在 svn 1.9 中,您可以使用svn diff -x -U0. 我不确定该选项是否在早期版本中可用。这似乎没有记录在svn book 中,但是命令行文档显示:
$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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1279 次 |
| 最近记录: |