diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-04-24 13:20:34 +1000 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-05-10 10:05:34 +0200 |
commit | 69ba9e59a65e23f39a07945974edbd01322159ae (patch) | |
tree | 3d0fa57a6d5a336ff8e4de1e111135cdcc8e21af /bin | |
parent | 32c5f1b38162992ac97918c18382767b91e1b78b (diff) |
git-gpush: allow alias to contain multiple comma-separated addresses
Allow setting a single alias for a group of reviewers.
Change-Id: I7d365c6b817b4d4b80102a5c4557cde43961e9bd
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/git-gpush | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/git-gpush b/bin/git-gpush index f3b4377..24c5ba3 100755 --- a/bin/git-gpush +++ b/bin/git-gpush @@ -40,6 +40,9 @@ Description: and if you only want it local in the current repository, just drop the --global option. + An alias may contain multiple comma-separated email addresses; + for example, to set a single alias for an entire team. + If no sha1 or ref-from is specified or configured, 'HEAD' is used. You may configure a ref-from like this git config gpush.ref-from <ref-from value> @@ -101,9 +104,9 @@ sub parse_arguments push @{$self->{'arguments'}}, @arguments; return; } elsif ($arg =~ /^\+(.+)/) { - push @{$self->{'reviewers'}}, $self->lookup_alias($1); + push @{$self->{'reviewers'}}, split(/,/, $self->lookup_alias($1)); } elsif ($arg =~ /^\=(.+)/) { - push @{$self->{'CCs'}}, $self->lookup_alias($1); + push @{$self->{'CCs'}}, split(/,/, $self->lookup_alias($1)); } elsif ($arg =~ /^\-(.+)/) { push @{$self->{'arguments'}}, $arg; } elsif (!$self->{'remote-override'} || !$self->{'ref-override'}) { |