Skip to content

Commit

Permalink
Implement -u option with no effect
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
futatuki committed Dec 2, 2023
1 parent b553583 commit e4b52d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ fn app() -> clap::Command<'static> {
.validator(|s| s.parse::<u32>())
.required(false),
)
.arg(
// Dummy 'unified' flag of POSIX/GNU diff utility for svn support:
// This takes no effect.
Arg::new("nop_unified")
.short('u')
.hide(true)
)
.arg(
Arg::new("label").short('L')
.long("label")
Expand Down

0 comments on commit e4b52d5

Please sign in to comment.