DEV Community

Discussion on: Self Code Review with Git Add Patch

Collapse
 
davearonson profile image
Dave Aronson

Neat way to automate something I usually do manually. Usually I do something like git diff -w master > tmp/diffs.txt (or hg diff -r default > tmp/diffs.txt), and examine that, both looking for things that shouldn't be there (like debugging calls and such) and to compose a detailed pull request description. (Sometimes I'll also do this before an individual commit.)