using git-diff as a diff replacement?

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

using git-diff as a diff replacement?

From: Jacob Keller <hidden>
Date: 2016-06-15 23:08:25

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.

Is there a way to pass an option to git-diff which will result in
strict file comparison?

Thanks,
Jake

Re: using git-diff as a diff replacement?

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:08:26

On Thu, Feb 25, 2016 at 5:21 AM, Jacob Keller [off-list ref] 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

Re: using git-diff as a diff replacement?

From: Jacob Keller <hidden>
Date: 2016-06-15 23:08:26

On Wed, Feb 24, 2016 at 6:38 PM, Duy Nguyen [off-list ref] wrote:
On Thu, Feb 25, 2016 at 5:21 AM, Jacob Keller [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help