Single file
arielgabizon opened this issue · 1 comments
arielgabizon commented
Is it possible to restrict the diff to a single file?
jeremy-ww commented
my ($oldrev, $newrev, $file) = @ARGV;
$oldrev ||= 'HEAD';
if ($newrev) {
open($diff, '-|', 'git', '--no-pager', 'diff', $oldrev, $newrev, '--', $file) or die;
And use as:
git-diff-blame develop master source.json