git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
May 4, 2016, 21:15 UTC
Message-ID
<xmqq8tzpfrt0.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160504200635.GA22787@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 29 quoted lines
> On Wed, May 04, 2016 at 12:57:31PM -0700, Junio C Hamano wrote:
>
>> > Is it worth just making this a perl script, rather than a shell script
>> > with a giant inline perl script? Perl is actually really good at doing
>> > that "grep" as it reads the file. :)
>> 
>> OK.
>
> Hmm. This new version uses File::Find:
>
>> +sub lint_it {
>> +	lint($File::Find::name) if -f;
>> +}
>> +
>> +find({ wanted => \&lint_it, no_chdir => 1 }, "Documentation");
>
> That will inspect non-source files, too.
>
> 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`;

I forgot to say that I wanted not to rely on "git" (i.e. OK to use this on tarball extract).

> Or just taking the list of files on the command line as your original
> did, and feeding `ls-files` from the caller. That also lets you do
> "link-gitlink git-foo.txt", etc.
Yes, I think that is the most sensible.
Previous: Jeff KingNext: Jeff King
Message 28 of 53 in “travis-ci: build documentation”
  1. travis-ci: build documentationlarsxschneider@gmail.com, Apr 29, 2016
  2. Jeff KingApr 29, 2016
  3. Matthieu MoyApr 29, 2016
  4. Lars SchneiderApr 29, 2016
  5. Jeff KingApr 29, 2016
  6. Stefan BellerApr 29, 2016
  7. Matthieu MoyApr 29, 2016
  8. Lars SchneiderApr 29, 2016
  9. Junio C HamanoApr 29, 2016
  10. 0/2 travis-ci: build documentationlarsxschneider@gmail.com, May 2, 2016
  11. 1/2 Documentation: fix linkgit referenceslarsxschneider@gmail.com, May 2, 2016
  12. Jeff KingMay 2, 2016
  13. Lars SchneiderMay 3, 2016
  14. Junio C HamanoMay 3, 2016
  15. Jeff KingMay 3, 2016
  16. Jeff KingMay 3, 2016
  17. 0/2 travis-ci: build documentationlarsxschneider@gmail.com, May 4, 2016
  18. 1/2 Documentation: fix linkgit referenceslarsxschneider@gmail.com, May 4, 2016
  19. Lars SchneiderMay 4, 2016
  20. Jeff KingMay 4, 2016
  21. Ramsay JonesMay 4, 2016
  22. Junio C HamanoMay 4, 2016
  23. Junio C HamanoMay 4, 2016
  24. Junio C HamanoMay 4, 2016
  25. Jeff KingMay 4, 2016
  26. Junio C HamanoMay 4, 2016
  27. Jeff KingMay 4, 2016
  28. Junio C HamanoMay 4, 2016
  29. Jeff KingMay 4, 2016
  30. Junio C HamanoMay 4, 2016
  31. Jeff KingMay 4, 2016
  32. Junio C HamanoMay 4, 2016
  33. Jeff KingMay 4, 2016
  34. Junio C HamanoMay 4, 2016
  35. Junio C HamanoMay 4, 2016
  36. Junio C HamanoMay 4, 2016
  37. Jeff KingMay 4, 2016
  38. Jeff KingMay 4, 2016
  39. Ævar Arnfjörð BjarmasonMay 4, 2016
  40. Jeff KingMay 4, 2016
  41. 2/2 travis-ci: build documentationlarsxschneider@gmail.com, May 4, 2016
  42. Junio C HamanoMay 10, 2016
  43. Lars SchneiderMay 13, 2016
  44. 2/2 travis-ci: build documentationlarsxschneider@gmail.com, May 2, 2016
  45. Junio C HamanoMay 2, 2016
  46. Lars SchneiderMay 3, 2016
  47. Junio C HamanoMay 3, 2016
  48. Lars SchneiderMay 4, 2016
  49. Eric WongMay 4, 2016
  50. Junio C HamanoMay 4, 2016
  51. Christian CouderMay 4, 2016
  52. Matthieu MoyMay 4, 2016
  53. Matthieu MoyApr 29, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.