summaryrefslogtreecommitdiff
path: root/bin/git-branchmove
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-07-28 10:21:44 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-07-28 10:21:44 +0100
commit74fde34e9889848ac176eb6369c7311d286ac63c (patch)
treefb032977fa3e46a216a2269372a31a572ec4dfc7 /bin/git-branchmove
parent15d7b89121bff59965cfaf73002af73c5c13362b (diff)
downloaddotfiles-74fde34e9889848ac176eb6369c7311d286ac63c.tar.gz
shorten some code in git-branchmove
Diffstat (limited to 'bin/git-branchmove')
-rwxr-xr-xbin/git-branchmove2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git-branchmove b/bin/git-branchmove
index b34c5bc8..5c9f29bb 100755
--- a/bin/git-branchmove
+++ b/bin/git-branchmove
@@ -121,7 +121,7 @@ if ($rurl =~ m#^ssh://([^:/]+)(?:\:(\w+))?#) {
# If we don't prefix the patterns, we might match branches the user
# doesn't intend. E.g. 'foo' would match 'wip/foo'
-my @branch_pats = map { $_ =~ s|^|[r]efs/heads/|; $_ } @patterns;
+my @branch_pats = map { s|^|[r]efs/heads/|r } @patterns;
# get lists of branches, prefixed with 'refs/heads/' in each case
my @source_branches, my @dest_branches;