Fix --revision-range=SINGLE_COMMIT on git.
Review Request #3926 — Created March 2, 2013 and discarded
Fix --revision-range=SINGLE_COMMIT on git. Before this, we would generate a diff with git diff SINGLE_COMMIT..CURRENT_HEAD but this is not what was intended and what we write in the docs. Now, we use git show SINGLE_COMMIT to really only generate the diff of the given commit.
Things like `rbtools/postreview.py -n --revision-range=master^` work as expected now.
Description | From | Last Updated |
---|---|---|
git show is very different from git diff, and will provide a different sort of patch to Review Board. We … |
chipx86 | |
Using show breaks something with our parent diffs. |
SM smacleod |
-
This looks OK, but someone more familiar with RBTools and our SCM clients should probably give it a ship-it too.
-
-
rbtools/clients/git.py (Diff revision 1) git show is very different from git diff, and will provide a different sort of patch to Review Board. We should be using git diff only, with the appropriate arguments for diffing just the revision we want.