Skip to content

Commit ff7cbca

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 7122863 commit ff7cbca

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
@@ -140,6 +140,13 @@ fn app() -> clap::Command<'static> {
140140
.validator(|s| s.parse::<u32>())
141141
.required(false),
142142
)
143+
.arg(
144+
// Dummy 'unified' flag of POSIX/GNU diff utility for svn support:
145+
// This takes no effect.
146+
Arg::new("nop_unified")
147+
.short('u')
148+
.hide(true)
149+
)
143150
.arg(
144151
Arg::new("label").short('L')
145152
.long("label")

0 commit comments

Comments
 (0)