Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to default to side-by-side view in GitLab

How can I make Side-by-side be the default diff for my GitLab installation or project or profile?

like image 260
Kon Avatar asked Jan 27 '15 21:01

Kon


People also ask

What are changes in GitLab?

Changes are defined as modifications to the operational environment, including configuration changes, adding or removing components or services to the environment and cloud infrastructure changes. Our Staging environment is crucial to our GitLab.com release process.

How does merging work in GitLab?

A developer must log into the GitLab web application and create a merge request, specify the branch they're working on as the source and the master branch as the target. A user with rights to merge or push into the master branch is then set as the “assignee” before the merge request is initiated.


1 Answers

Update February 2016

The issue is now at issue CE 3071 and... was resolved by commit 9fdd605!
A cookie now retain your diff view choice, with GitLab 8.5.0+.


Original answer (February 2015)

That doesn't seem to be possible right now, and can be voted up at the suggestion 7082397

Remember side-by-side diff choice

Right now when I want to review code, I have to choose side-by-side diff each time I open a Merge Request because that choice is not stored/saved anywhere.

Either store my last choice/change of viewer globally somewhere and use it on all diff views from that point on.
Or let me have a config option on my account where I can specify my preferred choice.

The side-by-side diff view was introduced with GitLab 6.4 (Dec. 2013) with commit b51c2c8.

like image 159
VonC Avatar answered Sep 27 '22 19:09

VonC