This is in preparation for displaying the diff in the Uberblame visualization.
About 3 lines of context is nice when viewing diffs.
Some extra logic is now necessary to handle the context.
BUG=773350
TBR=dpranke
Change-Id: If202deb3d9fd85ee6f9376739205a15f542b8005
Reviewed-on: https://chromium-review.googlesource.com/1014349
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551184}
* Adds --tokenize-by-character
* This is useful for eg. the blink refactor where fooBar got changed to
foo_bar.
* Adds --tokenize-whitespace
* Adds --skip-visualization
* Added this because it was useful for testing.
* Ran yapf
* Small refactor.
BUG=773350
R=dpranke
Change-Id: I7596f670ce640ed6bd367dee995628edc13dd6f2
Reviewed-on: https://chromium-review.googlesource.com/1010798
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550634}