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

add status.showUntrackedFiles=all to system config #72

Open
shiftkey opened this issue Jan 8, 2018 · 4 comments
Open

add status.showUntrackedFiles=all to system config #72

shiftkey opened this issue Jan 8, 2018 · 4 comments
Labels

Comments

@shiftkey
Copy link
Member

shiftkey commented Jan 8, 2018

Desktop received a report about our use of git status interfering with a user's preferred config: desktop/desktop#3734

I looked at the behaviour of git status and it doesn't seem to support a way for Desktop to receive all untracked file paths (the current behaviour) or hide untracked files (if status.showUntrackedFiles=no is set). The defaults favour the normal mode which is great for the CLI experience, but not great for apps.

We already have the ability to ship system configuration changes like this and I think, from an application perspective, setting status.showUntrackedFiles=all is a reasonable default behaviour - applications don't really get much use out of the "normal" view if they want to look at untracked files.

@joshaber
Copy link
Contributor

joshaber commented Jan 8, 2018

We already have the ability to ship system configuration changes like this

It looks like that's just for Windows? Can we do it across all platforms?

@shiftkey
Copy link
Member Author

shiftkey commented Jan 8, 2018

The same trick should work for the other platforms, we just haven't had to do that yet...

@mpietras
Copy link

mpietras commented Apr 1, 2021

still not in system config is appears - just tried status.showUntrackedFiles=no with 2.7.1...

@guy-rouillier
Copy link

I found this via search. I'm not sure I'm doing this right, but in my repository .git directory, I specified:

git config --local status.showUntrackedFiles no

which added the following to the .git/config file:

[status]
        showUntrackedFiles = no

If that's the correct thing to do, then this isn't working in Linux build 3.2.7. I can, however, manually exclude file patterns in the .gitignore file. I mostly want to ignore build-generated binary files.

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

No branches or pull requests

4 participants