Suggestion: git status --untracked

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael Garcia-Suarez
Date: Monday, February 11, 2008 - 2:46 am

I find myself wanting sometimes to filter out the output of
git-status, to feed it to another command (for example, git-add, or
rm, or cat >> .gitignore). However it's not currently very easy to
parse in a one-liner.

I'm suggesting to add options to control this behaviour. My suggestion
would be (for a start) to add an option --untracked that will list all
untracked files on stdout, without a leading "#\t", and without
listing the added / modified / removed files.

I'm willing to implement it, but I'd like to have some discussion
about the interface first. Is that a good idea at all, and how could
it be improved interface-wise?
-
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, 2:46 am)
Re: Suggestion: git status --untracked, Matthieu Moy, (Mon Feb 11, 3:13 am)
Re: Suggestion: git status --untracked, Jeff King, (Mon Feb 11, 3:23 am)
Re: Suggestion: git status --untracked, Rafael Garcia-Suarez, (Mon Feb 11, 3:54 am)
Re: Suggestion: git status --untracked, Jakub Narebski, (Mon Feb 11, 3:56 am)