diff options
author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-04-21 18:03:00 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2024-01-09 16:40:17 +0000 |
commit | 79c4202c178aba84bf0c001fe5c713dcf075978d (patch) | |
tree | 6d8797954795a8d08c8f91d49c5588da30483c38 /bin/git-gpush | |
parent | 58a2bcd28cce5407dbab3adbc7d0b9524d59caf9 (diff) |
gpush: remove support for legacy from:to syntax
commit 14431b408 introduced the new syntax and warnings about use of the
legacy syntax six years ago, which really should be enough.
Change-Id: Ieeedb8fe85a79a108e654c9ba9f7464789735b61
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'bin/git-gpush')
-rwxr-xr-x | bin/git-gpush | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bin/git-gpush b/bin/git-gpush index 7afbfd0..2e99f57 100755 --- a/bin/git-gpush +++ b/bin/git-gpush @@ -533,22 +533,9 @@ sub parse_arguments(@) } elsif ($arg !~ /^\-/) { fail("Specifying multiple sources is currently not supported.\n") if (defined($from)); - # The assumption that no legitimate branch would have a purely numerical - # name seems reasonable, so this overloading of the syntax should be safe. if ($arg =~ /^(.*):(\d+)$/) { $from = length($1) ? $1 : 'HEAD'; $commit_count = $2; - } elsif ($arg =~ /(.*):(.*)/) { - if (length($1)) { - $from = $1; - print STDERR "Warning: Specifying <from>: is deprecated.". - " Use just <from> instead.\n"; - } - if (length($2)) { - $ref_to = $2; - print STDERR "Warning: Specifying :<ref-to> is deprecated.". - " Use --branch instead.\n"; - } } else { $from = $arg; } |