summaryrefslogtreecommitdiff
path: root/bin/git-branchmove
diff options
context:
space:
mode:
Diffstat (limited to 'bin/git-branchmove')
-rwxr-xr-xbin/git-branchmove5
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');