Fixed a couple of bugs on the git_integration algorithm. Rewrote a bit of the code too to streamline it. Still need to handle the case when the diff contains multiple chunks of modified code...
Using subprocess.call instead of subprocess.Popen to do the git checkouts. Renamed a couple of variables and streamlined regular expression for diff chunk header.
Added support for diffs with multiple chunks. Removed -d option from command line interface.