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 Mar 13, 2024
1 parent 7122863 commit ff7cbca
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 @@ -140,6 +140,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 ff7cbca

Please sign in to comment.