Assuming I have a text file
alex bob matrix will be removed git repo
and I have updated it to be
alex new line here another
I was looking for a way to output only the lines changed for each file using git diff. My idea was to feed this output to a linter for type checking. This is what helped me