Error while trying to set config in tigrc

346 Views Asked by At

I've below line in my tigrc file

set commit-title-graph = no

I'm getting this error when I run any tig command, and I'm not able to fine what it the issue.

tig warning: ~/.tigrc:1: Unknown option name: commit-title-graph
tig warning: Errors while loading /Users/johndoe/.tigrc.
2

There are 2 best solutions below

0
On BEST ANSWER

According to man tigrc, commit-title is one of options in View Settings, not a variable. So the use case is like this:

set main-view = \
    date:relative \
    author:abbreviated \
    id \
    commit-title:graph=v2,refs=true 
1
On

You can also set it like this:

set main-view-commit-title-graph = no

This way you only modify the option you want and don't have to rebuild the whole view from scratch.

It took me a little while to figure it out, but there's a hierarchical structure to the options.