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

Re: [PATCH] git-latexdiff: new command in contrib, to use latexdiff and Git

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 17, 2012, 17:25 UTC
Message-ID
<7vwr7ltlrj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<vpqobsx7d9s.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 5 quoted lines
>> Look at what we have in the contrib/ area.  I think what is common among
>> them is that their primary benefit is to enrich user's Git experience.
>
> ... and many of them is to enrich the user experience using Git with
> another tool (shell, text editor, foreign VCS).

... where the amount of the benefit they get does not change regardless of the payload. That is what makes them tool in Git users' toolbox, not shell scripters' or p4 users' toolbox.

> Git's _core_ already has some code to show diff hunks for various
> languages,...

I would have to say that it is an oranges vs squirrels comparison. I do not see a justification to reject an addition of an entry to an array that adds a few strings of regexp to drive the mechanism that is already in core, when it gets compiled in, and it is useless by itself outside Git. Unless the language is something obscure, that is.

Read git-latexdiff that is a free-standing 200+ line script again yourself. The use of Git in the script is not more than how you would emulate what you would use "cp -r" in order to populate the old/ and new/ directories if the two versions were stored in the file system outside Git. If you rip the part that deals with "the two versions happen to be stored in Git" out, the remainder deals with parsing the command line, interfacing with latex and reporting the result, none of which is in any way Git specific. That is much larger part of the script, which I view as a clear sign that it is an application to serve the need for LaTeX users better, which happens to be written for the subset of LaTeX users who have their contents in Git.

Aren't there LaTeX tools archives that would be a much better home for this tool?

Previous: Matthieu MoyNext: Jakub Narebski
Message 18 of 22 in “git-latexdiff: new command in contrib, to use latexdiff and Git”
  1. git-latexdiff: new command in contrib, to use latexdiff and GitMatthieu Moy, Feb 15, 2012
  2. Tim HagaFeb 15, 2012
  3. Matthieu MoyFeb 16, 2012
  4. git-latexdiff: new command in contrib, to use latexdiff and GitMatthieu Moy, Feb 16, 2012
  5. Jakub NarebskiFeb 16, 2012
  6. David AguilarFeb 16, 2012
  7. Steven MichalskeFeb 16, 2012
  8. Matthieu MoyFeb 16, 2012
  9. git-latexdiff: new command in contrib, to use latexdiff and GitMatthieu Moy, Feb 16, 2012
  10. Jakub NarebskiFeb 16, 2012
  11. git-latexdiff: new command in contrib, to use latexdiff and GitMatthieu Moy, Feb 16, 2012
  12. Matthieu MoyFeb 16, 2012
  13. Junio C HamanoFeb 16, 2012
  14. Junio C HamanoFeb 16, 2012
  15. Matthieu MoyFeb 17, 2012
  16. Junio C HamanoFeb 17, 2012
  17. Matthieu MoyFeb 17, 2012
  18. Junio C HamanoFeb 17, 2012
  19. Jakub NarebskiFeb 17, 2012
  20. Matthieu MoyFeb 20, 2012
  21. Junio C HamanoFeb 20, 2012
  22. Matthieu MoyFeb 20, 2012

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.