Git code review a single commit

Here is a temporary workflow I use until DevOps integrate Atlassian Fisheye with Git for my team:

1. Code author pushes the code and gives me a sha
2. Run git format-patch -1 <sha> --unified=9999 to generate a patch for this single commit
3. Use Beyond Compare to view the patch by going to Tools -> View Patch

–unified with a large number should give you the entire file

Advertisement

One thought on “Git code review a single commit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s