dmnd/git-diff-blame

Single file

arielgabizon opened this issue · 1 comments

Is it possible to restrict the diff to a single file?

Change this to:

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