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:56 am

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


Probably because git-status is porcelain, and is meant to be used by
end user, not in scripts.
 

To list all untracked files you can use plumbing command, namely
"git ls-files --others" (Show other files in the output), or perhaps
"git ls-files -o --directory --no-empty-directory --exclude-standard"

If you want to use git command in script, it is better to find
appropriate plumbing command to do what you want, for example
git-ls-files instead of git-status to list untracked files,
git-symbolic-ref instead of git-branch to get current branch name,
etc.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
-
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)