From efdd7d3cdca70ad34a8f1783a5df89dd05fd599c Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Fri, 3 Jan 2025 14:43:22 -0800 Subject: [PATCH 1/2] Drop --no- for command lines ars where it does not make sense --- git-rebase-first-parent | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-rebase-first-parent b/git-rebase-first-parent index ad11d1d..17d0297 100755 --- a/git-rebase-first-parent +++ b/git-rebase-first-parent @@ -43,10 +43,10 @@ die() { OPTS_SPEC="\ git rebase-first-parent [-i | --interactive] [--onto ] [ []] -- -h,help show the help +h,help! show the help -i,interactive let the user edit the list of commits to rebase -onto=newbase rebase onto given branch instead of upstream" +i,interactive! let the user edit the list of commits to rebase +onto!=newbase rebase onto given branch instead of upstream" usage() { if [ $# -gt 0 ]; then From 73d94be0cb13d9b51300912f937d2bbee6d3785b Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Fri, 3 Jan 2025 14:45:20 -0800 Subject: [PATCH 2/2] Add support for -x/--exec= to run commands after each commit This can be useful to check that each commit in the merge builds and passes tests. --- git-rebase-first-parent | 8 ++++++++ make-rebase-first-parent | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/git-rebase-first-parent b/git-rebase-first-parent index 17d0297..c44a604 100755 --- a/git-rebase-first-parent +++ b/git-rebase-first-parent @@ -46,6 +46,7 @@ git rebase-first-parent [-i | --interactive] [--onto ] [ [