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-start | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 bin/git-start (limited to 'bin/git-start') diff --git a/bin/git-start b/bin/git-start deleted file mode 100755 index 8251fa4..0000000 --- a/bin/git-start +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -e - -# Create a branch: `git start BRANCHNAME` (protip: run `git fall` first.) The -# new branch will track origin/main by default, or origin/master if origin/main -# doesn't exist. Tracking info gets used below. - -if git rev-parse --quiet --verify origin/main > /dev/null; then - exec git checkout --track origin/main -b "$@" -elif git rev-parse --quiet --verify origin/master > /dev/null; then - exec git checkout --track origin/master -b "$@" -fi - -exec git checkout --track origin/main -b "$@" -- cgit v1.2.3