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

tig status not showing untracked files #598

Closed
voska opened this issue May 30, 2017 · 7 comments
Closed

tig status not showing untracked files #598

voska opened this issue May 30, 2017 · 7 comments
Labels
component:installation Installation and packaging
Milestone

Comments

@voska
Copy link

voska commented May 30, 2017

I recently upgraded tig to 2.2.2 and now when I run tig status my untracked files do not show up.

It was throwing the following error:

tig warning: /usr/local/etc/tigrc:90: status-untracked-dirs has been renamed to status-show-untracked-dirs
tig warning: Errors while loading /usr/local/etc/tigrc.

I tried updating that config in /usr/local/etc/tigrc, and while the error stopped, my untracked files still did not show under tig status.

@devshane
Copy link

devshane commented Jun 1, 2017

#595 resolved this for me; add a config option to .tigrc:

set status-show-untracked-files = yes

@jonas
Copy link
Owner

jonas commented Jun 1, 2017

@devshane Thanks for the hint.

I am wondering how that option is missing. A new tigrc is installed when installing Tig.

@jonas jonas added the status:more-info-needed More info needed label Jul 4, 2017
@diwo
Copy link

diwo commented Jul 6, 2017

After upgrading to 2.2.2 with brew:

tig warning: /usr/local/etc/tigrc:90: status-untracked-dirs has been renamed to status-show-untracked-dirs
tig warning: Errors while loading /usr/local/etc/tigrc.
$ brew info tig
tig: stable 2.2.2 (bottled), HEAD
Text interface for Git repositories
http://jonas.nitro.dk/tig/
/usr/local/Cellar/tig/2.2.2 (12 files, 461.2KB) *
  Poured from bottle on 2017-07-02 at 20:43:21
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tig.rb
==> Dependencies
Recommended: readline ✔
==> Options
--with-docs
        Build man pages using asciidoc and xmlto
--without-readline
        Build without readline support
--HEAD
        Install HEAD version
==> Caveats
A sample of the default configuration has been installed to:
  /usr/local/opt/tig/share/tig/examples/tigrc
to override the system-wide default configuration, copy the sample to:
  /usr/local/etc/tigrc

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to:
  /usr/local/share/zsh/site-functions

@diwo
Copy link

diwo commented Jul 6, 2017

After running brew uninstall tig, the system-wide tigrc file still exists

$ tig
tig warning: /usr/local/etc/tigrc:90: status-untracked-dirs has been renamed to status-show-untracked-dirs
tig warning: Errors while loading /usr/local/etc/tigrc.

$ brew uninstall tig
Uninstalling /usr/local/Cellar/tig/2.2.2... (12 files, 461.2KB)

$ ls -lt /usr/local/etc/tigrc
-rw-r--r-- 1 dickson admin 14986 Aug 28  2014 /usr/local/etc/tigrc

I suspect it has to do with this commit:
Homebrew/homebrew-core@5600463

@jonas jonas removed the status:more-info-needed More info needed label Jul 6, 2017
@jonas
Copy link
Owner

jonas commented Jul 6, 2017

Yes, there is nothing I can do about this other than maybe documenting it. It is an upstream distribution/packaging problem. The way to fix (assuming no local edits) is rm -f /usr/local/etc/tigrc.

@jonas jonas added the component:installation Installation and packaging label Jul 6, 2017
@jonas jonas closed this as completed in f239498 Jul 6, 2017
@jonas
Copy link
Owner

jonas commented Jul 6, 2017

Added notes on how to fix this issue to http://jonas.github.io/tig/INSTALL.html

@jonas jonas modified the milestone: tig-2.3 Jul 10, 2017
@Asday
Copy link

Asday commented Jul 4, 2019

Upgraded git and had this problem, due to the newest version of tig in the ubuntu repositories being real old. Removing that and installing the latest version as per the installation instructions fixed it with no other changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:installation Installation and packaging
Projects
None yet
Development

No branches or pull requests

5 participants