Untracked files are not showing for one of my repositories

230 views
Skip to first unread message

Hallvard Nygård

unread,
Jul 6, 2015, 5:36:50 AM7/6/15
to git-...@googlegroups.com
I'm using Git-cola a lot. Now one of my repositories are not showing untracked files in Git cola. Git status is working file. "gui.displayuntracked" (or through the menues) are set correctly globally and locally. Other repos are displaying untracked files in Git cola.

Tried to run the latest version from source (as described on Github).

How can I debug this thing?

David Aguilar

unread,
Jul 11, 2015, 4:59:09 AM7/11/15
to Hallvard Nygård, git-...@googlegroups.com
You can run cola like this to enable debug mode:

$ GIT_COLA_TRACE=1 git cola

I don't think we have to go there, though.
It sounds like you may have stuff ignored via .gitconfig.

Compare the output of these two commands:

$ git ls-files --others
# --- vs ---
$ git ls-files --others --exclude-standard

The 1st command lists all untracked files.

The 2nd command is filtered using .gitignore, and is what cola
uses to find untracked files.

I would suggest checking your .gitignore and .git/info/exclude
files. Untracked files that match the ignored patterns will not
be displayed in the UI.
--
David

Hallvard Nygård

unread,
Jul 11, 2015, 6:27:29 PM7/11/15
to David Aguilar, git-...@googlegroups.com
Thanks!

The git ls-files --others gave an error. Turned out that a sub git tree with some bogus config interfered (.git file with a gitdir definition that did not exist). Deleted a file (.git file) and fixed the git ls-files command and Git-cola :-)

Hallvard
Reply all
Reply to author
Forward
0 new messages