From b7e2019eeed38d3b22f07c51aac8578fd53c9bee Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 13 Dec 2023 21:39:47 -0500 Subject: Move aliases to scripts. The git aliases mechanism is pretty limited; there's some stuff you can't really do without dropping to a shell. If you're going to do that, then custom subcommand scripts are more flexable than aliases that start with ! are. --- bin/git-amend | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 bin/git-amend (limited to 'bin/git-amend') diff --git a/bin/git-amend b/bin/git-amend new file mode 100755 index 0000000..04430a6 --- /dev/null +++ b/bin/git-amend @@ -0,0 +1,4 @@ +#!/bin/bash -e + +# Replace the most recent commit: `git amend [commit options]`. +exec git commit --amend --no-edit "$@" -- cgit v1.2.3