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

Re: git diff bug?

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Apr 6, 2009, 17:37 UTC
Message-ID
<vpqeiw53cpy.fsf@bauges.imag.fr>
In-Reply-To
<20090406155303.GA3275@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> But the latter two lines are about preference: "here is how _I_ would
> like to generate diffs for el files".

... and they are commands to be executed. If they were in the repository, and propagated with clone, then doing

git clone git://some.git/repo cd repo git diff

would execute arbitrary commands, which wouldn't be acceptable for security reasons.

-- 
Matthieu
Previous: Jeff KingNext: Junio C Hamano
Message 9 of 13 in “git diff bug?”
  1. David AbrahamsApr 4, 2009
  2. Jeff KingApr 4, 2009
  3. Jeff KingApr 4, 2009
  4. David AbrahamsApr 6, 2009
  5. Michael J GruberApr 6, 2009
  6. David AbrahamsApr 6, 2009
  7. Jeff KingApr 6, 2009
  8. Jeff KingApr 6, 2009
  9. Matthieu MoyApr 6, 2009
  10. Junio C HamanoApr 6, 2009
  11. Matthieu MoyApr 6, 2009
  12. David AbrahamsApr 6, 2009
  13. Antriksh PanyApr 7, 2009

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.