diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-05-03 14:01:18 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-05-03 14:04:36 -0700 |
commit | 8c7635593e5ef362cd5d03a634beb48ed99df785 (patch) | |
tree | aab291547c080565fba0fe7613fcd8e0d99101de /bin/git-branchmove | |
parent | e0830b3247541071d867fa34b5635e552d8dff58 (diff) | |
download | dotfiles-8c7635593e5ef362cd5d03a634beb48ed99df785.tar.gz |
git-branchmove: process --detach arg
Diffstat (limited to 'bin/git-branchmove')
-rwxr-xr-x | bin/git-branchmove | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/git-branchmove b/bin/git-branchmove index dc35a0a9..fed28766 100755 --- a/bin/git-branchmove +++ b/bin/git-branchmove @@ -82,6 +82,11 @@ try { # process arguments die "git-branchmove: not enough arguments\n" if (scalar @ARGV < 3); +my $attempt_detach = 0; +if ($ARGV[0] eq '-d' or $ARGV[0] eq '--detach') { + $attempt_detach = 1; + shift @ARGV; +} my ($op, $remote, @patterns) = @ARGV; die "git-branchmove: unknown operation\n" unless ($op eq 'get' or $op eq 'put'); |