How can I make gitweb ignore whitespace changes?

Is there a url parameter that I can pass to gitweb (or anything else I can do) to tell it not to show me whitespace changes?

Background: I have a file generation process that creates hundreds of files, which are then programmatically checked on git. I recently made some minor changes to this process, which led to the removal of empty spaces from each file that it generates, and some changes without spaces were made for only a few files that it generates. I am trying to use gitweb to verify that my changes without spaces are in these files, but it is very difficult to do because of all the changes to the spaces that I have to sift through before I see any real changes. I know if I was running git diff from the command line, I could just pass the -w option to it, but I'm really just trying to use gitweb for this.

+4
source share
2 answers

I don't think this is supported after a quick look at the source on the github mirror.

our @diff_opts = ('-M'); # taken from git_commit

You can send a function request to the git mailing list so that you can possibly configure it via gitweb.confsome UI element or url parameter. If you feel sharp, develop it;)

Github uses the url parameter if you are looking for ideas:

Add ?w=1 to the URL to see the diff with whitespace ignored.

+1
source

, , , Google: @diff_opts /etc/gitweb.conf. , @diff_opts git-diff-tree , git diff. ,

@diff_opts = ('-b');

. , URL, , , , .

0

All Articles