I have a following problem. I want to get the output from git diff
, but for all uncommitted local changes (that means unstaged and staged files).
I am not searching for git log, or any other output, it has to be git diff
output, because then I am parsing it with the parser I made.
For now I have:
All unstaged files:
git diff
Staged + unstaged files + all local commits (compare to remote)
git diff origin/master
Now I am missing the part when I can get git diff
for all unstaged and staged files, but not compare it with remote (cuz it would take all local commits too), but just compare it with last local commit. Is there a way to do this?