Skip to content

Commit e4b52d5

Browse files
committed
Implement -u option with no effect
If "svn diff --diff-cmd" is called without -x option, svn executes external diff command with -u option. So this allows to use difft as external diff for Apache Subversion, without extra options.
1 parent b553583 commit e4b52d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/options.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ fn app() -> clap::Command<'static> {
135135
.validator(|s| s.parse::<u32>())
136136
.required(false),
137137
)
138+
.arg(
139+
// Dummy 'unified' flag of POSIX/GNU diff utility for svn support:
140+
// This takes no effect.
141+
Arg::new("nop_unified")
142+
.short('u')
143+
.hide(true)
144+
)
138145
.arg(
139146
Arg::new("label").short('L')
140147
.long("label")

0 commit comments

Comments
 (0)