diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2023-12-13 21:39:47 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2023-12-13 22:10:56 -0500 |
| commit | b7e2019eeed38d3b22f07c51aac8578fd53c9bee (patch) | |
| tree | 157b6e31f4d053995f113890faa9bed003fdf156 /bin/git-start | |
| parent | 4f32cdbb3681488b9f9215e253a5754800ebaab8 (diff) | |
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.
Diffstat (limited to 'bin/git-start')
| -rwxr-xr-x | bin/git-start | 13 |
1 files changed, 0 insertions, 13 deletions
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 "$@" |
