Re: [PATCH 1/2] Add "--only-untracked" flag to status commands.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 24, 2007, 07:46 UTC
- Message-ID
- <7v8x81s7d1.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <6D8BA2E0-50CD-4B7B-84D3-3D9A61421131@pp.inet.fi>
Väinö Järvelä <v@pp.inet.fi> writes:
> The way I see the flag used is: A user runs "git status", sees that > there is too much untracked files and not enough scrollback, so he > runs "git status --only-tracked" to filter the results.
Why?
Just set up .gitignore once then (1) you do not have to worry about them ever again, and (2) you _will_ still be able to notice if you accidentally added more cruft, or more importantly, if you forgot to tell an important file to git.
I think the latter is more important point. If you train a naive user to use --only-tracked to ignore "Untracked" list, you are doing him or her a great disservice. Mistake to forget "git add" a new file before commiting will bound to happen.