Skip to content

Commit

Permalink
Add -w parameter to diff command.
Browse files Browse the repository at this point in the history
  • Loading branch information
dilijev committed May 26, 2017
1 parent 5bf930d commit bf2f507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-diff-blame
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ chdir($git_root) or die "$!";
my ($oldrev, $newrev) = @ARGV;
$oldrev ||= 'HEAD';
if ($newrev) {
open($diff, '-|', 'git', '--no-pager', 'diff', $oldrev, $newrev) or die;
open($diff, '-|', 'git', '--no-pager', 'diff', '-w', $oldrev, $newrev) or die;
} else {
open($diff, '-|', 'git', '--no-pager', 'diff', $oldrev) or die;
open($diff, '-|', 'git', '--no-pager', 'diff', '-w', $oldrev) or die;
}

my ($pre, $post);
Expand Down

1 comment on commit bf2f507

@hlovdal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality (and more) is supported in my fork, and there is a pending pull request upstream.

Please sign in to comment.