From e4b52d55a8adf1dba841689c0716d9a943e0dc2b Mon Sep 17 00:00:00 2001 From: FUTATSUKI Yasuhito Date: Sun, 27 Aug 2023 00:02:36 +0900 Subject: [PATCH] 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. --- src/options.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/options.rs b/src/options.rs index 6a989cef3b..5a9fb09b33 100644 --- a/src/options.rs +++ b/src/options.rs @@ -135,6 +135,13 @@ fn app() -> clap::Command<'static> { .validator(|s| s.parse::()) .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")