Re: [PATCH 7/7] gitweb: group remote heads
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Sep 16, 2010, 11:36 UTC
- Message-ID
- <AANLkTimKV6iT-inphJbCiRa2Pb3OeP-usPpCHoaRuL8O@mail.gmail.com>
- In-Reply-To
- <AANLkTimFjofJo4ByFwr2Cz6-YqkHcZsHGk6r4siEFmDa@mail.gmail.com>
On Thu, Sep 16, 2010 at 12:29 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 13 quoted lines
> On Thu, Sep 16, 2010 at 09:31, Giuseppe Bilotta
> <giuseppe.bilotta@gmail.com> wrote:
>
>> +sub git_get_remotes {
>> + my ($limit) = @_;
>> + open my $fd, '-|' , git_cmd(), 'remote';
>> + return () unless $fd;
>> + my @remotes = map { chomp ; $_ } <$fd>;
>> + close $fd or return ();
>
> return unless $fd;
> chomp(my @remotes = <$fd>);
> close $fd or return;Thanks a lot. I guess this shows pretty much how Perl is not exactly my primary language 8-)
-- Giuseppe "Oblomov" Bilotta