1

I find this post How to default to side-by-side view in GitLab, the answer was "not possible".

What about gitweb? Can I default to side-by-side view in GitWeb?

Community
  • 1
  • 1
Leon
  • 3,124
  • 31
  • 36
  • The only option to default to side by side is to modify the CGI script. You would need to change the default from `inline` to `sidebyside` in the `git_commitdiff` subroutine. https://github.com/git/git/blob/e05806da9ec4aff8adfed142ab2a2b3b02e33c8c/gitweb/gitweb.perl#L7792 – nburr Feb 14 '17 at 04:03

1 Answers1

1

Note: default diff view choice is now (since February 2016, GitLab 8.5.0) possible, and retained by a cookie (I have updated my old answer)

I don't see a similar option in gitweb (see gitweb.perl#L7768-L7787)

You can try and use the ?diff_style=sidebyside url parameter though.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250