I want to show the result of both git diff <PATH>
and git diff --staged <PATH>
. I know this answer (Show both staged & working tree in git diff?) says you can use git status -vv
, but it doesn't accept a path argument so I can't do git status -vv -- <PATH>
. Anyone know a way to show both worktree and index diffs for a single path?
I need this solution for a script so I don't mind having to run multiple commands to get the result.