Re: Suggestion: git status --untracked

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rafael Garcia-Suarez <rgarciasuarez@...>
Cc: Git Mailing List <git@...>
Date: Monday, February 11, 2008 - 6:13 am

"Rafael Garcia-Suarez" <rgarciasuarez@gmail.com> writes:


Actually, it's already available (since a few weeks in master IIRC,
not sure whether it's in the latest release), as

  git ls-files --exclude-standard -o

The --exclude-standard tells git ls-files to read .gitignore and
friends as most commands do, and -o means "show 'other' files".

Older gits didn't have the --exclude-standard, so you had to say
--exclude-from=.git/info/exclude --exclude-per-directory=.gitignore
(or stg like that) instead.

-- 
Matthieu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Suggestion: git status --untracked, Rafael Garcia-Suarez, (Mon Feb 11, 5:46 am)
Re: Suggestion: git status --untracked, Jakub Narebski, (Mon Feb 11, 6:56 am)
Re: Suggestion: git status --untracked, Jeff King, (Mon Feb 11, 6:23 am)
Re: Suggestion: git status --untracked, Matthieu Moy, (Mon Feb 11, 6:13 am)
Re: Suggestion: git status --untracked, Rafael Garcia-Suarez, (Mon Feb 11, 6:54 am)