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

bug: git-diff silently fails when run outside of a repository (v1.5.4.2)

From
MCMike Coleman <tutufan@gmail.com>
Date
Apr 29, 2008, 20:04 UTC
Message-ID
<3c6c07c20804291304n36976417wf3c2a13303aa3133@mail.gmail.com>

At least in version 1.5.4.2, git-diff silently fails when not run inside a repository. It should give an error diagnostic, especially since "no output" would otherwise be a meaningful response.

I think there are other git programs that have this problem as well.
Mike
Next: Junio C Hamano
Message 1 of 7 in “bug: git-diff silently fails when run outside of a repository (v1.5.4.2)”
  1. Mike ColemanApr 29, 2008
  2. Junio C HamanoApr 29, 2008
  3. Mike ColemanApr 29, 2008
  4. Junio C HamanoApr 29, 2008
  5. Johannes SchindelinApr 30, 2008
  6. Junio C HamanoApr 30, 2008
  7. Johannes SchindelinApr 30, 2008

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.