From 1cb38790bdf8a1705b3224fa9e0b7306c0175945 Mon Sep 17 00:00:00 2001 From: Christian Schilling Date: Tue, 14 Feb 2023 14:13:18 +0100 Subject: [PATCH] Remove deprecated command line flags (#1110) Those have been made obsolete by the dedicated filter Change: rm-author-flag --- src/bin/josh-filter.rs | 10 ---------- tests/filter/squash.t | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/bin/josh-filter.rs b/src/bin/josh-filter.rs index cd37db31f..6b8ebb41b 100644 --- a/src/bin/josh-filter.rs +++ b/src/bin/josh-filter.rs @@ -45,16 +45,6 @@ fn make_app() -> clap::Command { .help("Produce a history that contains only commits listed in the given file") .long("squash-file") ) - .arg( - clap::Arg::new("author") - .help("Author to use for commits with rewritten message") - .long("author") - ) - .arg( - clap::Arg::new("email") - .help("Author email to use for commits with rewritten message") - .long("email") - ) .arg( clap::Arg::new("single") .action(clap::ArgAction::SetTrue) diff --git a/tests/filter/squash.t b/tests/filter/squash.t index 988b2b878..01b05728f 100644 --- a/tests/filter/squash.t +++ b/tests/filter/squash.t @@ -28,7 +28,7 @@ $ git merge -q branch2 --no-ff - $ josh-filter -s --squash-pattern "refs/tags/*" --author "New Author" --email "new@e.mail" --update refs/heads/filtered + $ josh-filter -s --squash-pattern "refs/tags/*" --update refs/heads/filtered Warning: reference refs/heads/filtered wasn't updated [1] :squash(