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

Re: using git-diff as a diff replacement?

From
Jacob Keller <jacob.keller@gmail.com>
Date
Feb 25, 2016, 02:43 UTC
Message-ID
<CA+P7+xr-OH=nptBS9us5iWKkDr7FX-dfAjJZvBzPkUQ7JPKLzg@mail.gmail.com>
In-Reply-To
<CACsJy8DTKOhOxdiQbRSddMSTMCQAFmZDdm6G1QeY6TpDf2HuKg@mail.gmail.com>
On Wed, Feb 24, 2016 at 6:38 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 13 quoted lines
> On Thu, Feb 25, 2016 at 5:21 AM, Jacob Keller <jacob.keller@gmail.com> wrote:
>> Hey,
>>
>> I know that running "git diff <path> <path>" when outside a git
>> project will result in a normal diff being run. I happen to prefer the
>> diff algorithm and diff output of "git diff" but there does not seem
>> to be a way to have this behavior from within a git tree.
>
> git diff --no-index <path> <path>
>
> ?
> --
> Duy

Yep thanks.. I swear I did git help diff, but I guess I am blind. This does what I want, and I had my shell alias diff so I don't forget :D

Thanks, Jake

Previous: Duy Nguyen
Message 3 of 3 in “using git-diff as a diff replacement?”
  1. Jacob KellerFeb 24, 2016
  2. Duy NguyenFeb 25, 2016
  3. Jacob KellerFeb 25, 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.