Tig: Untracked files: (not shown)

Created on 18 May 2017  路  7Comments  路  Source: jonas/tig

I think I pressed something unexpected, or maybe it's the result of an update, but now I can't see untracked files in tig, instead it shows this:

Untracked files:
  (not shown)

How can I set up tig so it shows untracked files again?

Most helpful comment

Reading through the source code I've found out that you've also added set status-show-untracked-files = yes config variable, which was missing in my tigrc. Untracked files are back as soon as I've added it to my tigrc.

All 7 comments

I do remember that tig warned me about some parameter name change in some file like
status-untracked-dirs should be renamed, but I can't find the exact option name.

Reading through the source code I've found out that you've also added set status-show-untracked-files = yes config variable, which was missing in my tigrc. Untracked files are back as soon as I've added it to my tigrc.

Thanks for confirming.

@jonas Wouldn't yes be the default if it's not in our ~/.tigrc?

@nemoDreamer Yes, it would be the default. The problem is that Tig won't read the internal defaults when a system tigrc exists. This permits full control of what options are read but breaks if a distribution doesn't update the system tigrc, which was the case for Homebrew.

Ah, makes sense, thanks!!
I guess I could pull down the system tigrc from this repo and overwrite mine. Shame Homebrew doesn't do that 馃槶

My advice is to remove the system tigrc (/usr/local/etc/tigrc) so Tig uses the internal one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seiyeah78 picture seiyeah78  路  7Comments

Anrock picture Anrock  路  8Comments

proski picture proski  路  7Comments

julien-lecomte picture julien-lecomte  路  4Comments

weynhamz picture weynhamz  路  8Comments