Hacker News new | ask | show | jobs
by habosa 4873 days ago
This is a great tip, thanks! I never thought of using git diff to test things out, and I definitely didn't know you could diff against a stash.
1 comments

That was news to me as well. I've always done the following:

    $ diff -u <(git stash show -p) <(git diff)
never again.. by the way, `git diff --no-index` also works like a generic diff utility on any two files.

(Wow, that --no-index behavior seems to be default outside repositories now. I learned something, just git diff works now.)