Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-16

Re: [PATCH v4 1/2] Documentation: fix linkgit references

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-16 02:19:11

Possibly related (same subject, not in this thread)

On Wed, May 4, 2016 at 10:06 PM, Jeff King [off-list ref] wrote:
Would:

  open(my $files, '-|', qw(git ls-files));
  while (<$files>) {
    chomp;
    ...
  }

make sense? Or a simpler but non-streaming spelling:

  my @files = map { chomp; $_ } `git ls-files`;
As a minor sidenote you can equivalently write that as:

    chomp(my @files = `git ls-files`);

I.e. chomp itself when given a list will chomp each item of the list.
So no need for a map.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help