Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set side-by-side-diffs=1 in cgitrc? #400

Open
tianakack opened this issue Oct 16, 2021 · 1 comment
Open

How to set side-by-side-diffs=1 in cgitrc? #400

tianakack opened this issue Oct 16, 2021 · 1 comment

Comments

@tianakack
Copy link

How to set side-by-side-diffs=1 in cgitrc?Or, can you set it as the default config in the next released Docker image to https://hub.docker.com/r/clearlinux/cgit?

@themegabyte
Copy link

unasnwered issues are criminal :)

I was able to just figure it out, so here's how you will do it,

use this as the run command:

docker run -d \
  -p 8800:80 \
  -v /home/shayan/cgit/cgitrc:/etc/cgitrc \
  -v ~/dev/dev/:/var/www/cgit \
  -v ~/cgit:/usr/share/cgit/ \
  --name local_cgit \
  --restart unless-stopped \
  clearlinux/cgit

notice the /home/shayan/cgit/cgitrc:/etc/cgitrc this will map your cgitrc file into the container and load it. Remember to restart your container if you make any changes, recreating is not required. This will enable or disable any option listed here: https://linux.die.net/man/5/cgitrc

You can also put any custom css files into /usr/share/cgit/ and it will pick it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants