git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* list all the untrack files in a git respo
@ 2008-06-04 14:05 Gerb Stralko
  2008-06-04 14:19 ` Jakub Narebski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gerb Stralko @ 2008-06-04 14:05 UTC (permalink / raw
  To: git

Is there a way to list only the untracked files in git? git status
works, but i need to do some parsing in order to get a list of
untracked files.  Something like git status --show-only-untracked?

thanks

Jerry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: list all the untrack files in a git respo
  2008-06-04 14:05 list all the untrack files in a git respo Gerb Stralko
@ 2008-06-04 14:19 ` Jakub Narebski
  2008-06-04 14:20 ` Johan Herland
  2008-06-04 15:55 ` Michael J Gruber
  2 siblings, 0 replies; 5+ messages in thread
From: Jakub Narebski @ 2008-06-04 14:19 UTC (permalink / raw
  To: Gerb Stralko; +Cc: git

"Gerb Stralko" <gerb.stralko@gmail.com> writes:

> Is there a way to list only the untracked files in git? git status
> works, but i need to do some parsing in order to get a list of
> untracked files.  Something like git status --show-only-untracked?

git-status is porcelain, meant for human consumption.  For list
of untracked files use

  $ git ls-files --other --exclude-standard

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: list all the untrack files in a git respo
  2008-06-04 14:05 list all the untrack files in a git respo Gerb Stralko
  2008-06-04 14:19 ` Jakub Narebski
@ 2008-06-04 14:20 ` Johan Herland
  2008-06-04 14:41   ` Gerb Stralko
  2008-06-04 15:55 ` Michael J Gruber
  2 siblings, 1 reply; 5+ messages in thread
From: Johan Herland @ 2008-06-04 14:20 UTC (permalink / raw
  To: Gerb Stralko; +Cc: git

On Wednesday 04 June 2008, Gerb Stralko wrote:
> Is there a way to list only the untracked files in git? git status
> works, but i need to do some parsing in order to get a list of
> untracked files.  Something like git status --show-only-untracked?

Is
	git ls-files -o
what you want?

(Depending on your use case, you might also find the --exclude-standard 
and --directory options useful as well. See the git-ls-files manual 
page for details)


...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: list all the untrack files in a git respo
  2008-06-04 14:20 ` Johan Herland
@ 2008-06-04 14:41   ` Gerb Stralko
  0 siblings, 0 replies; 5+ messages in thread
From: Gerb Stralko @ 2008-06-04 14:41 UTC (permalink / raw
  To: Johan Herland; +Cc: git

>        git ls-files -o
>
> ...Johan

This is exactly what i want.  Thanks Johan.

Jerry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: list all the untrack files in a git respo
  2008-06-04 14:05 list all the untrack files in a git respo Gerb Stralko
  2008-06-04 14:19 ` Jakub Narebski
  2008-06-04 14:20 ` Johan Herland
@ 2008-06-04 15:55 ` Michael J Gruber
  2 siblings, 0 replies; 5+ messages in thread
From: Michael J Gruber @ 2008-06-04 15:55 UTC (permalink / raw
  To: git

Gerb Stralko venit, vidit, dixit 04.06.2008 16:05:
> Is there a way to list only the untracked files in git? git status
> works, but i need to do some parsing in order to get a list of
> untracked files.  Something like git status --show-only-untracked?
> 
> thanks
> 
> Jerry

git-ls-files --others --exclude-standard

may be what you are looking for.

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-04 15:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 14:05 list all the untrack files in a git respo Gerb Stralko
2008-06-04 14:19 ` Jakub Narebski
2008-06-04 14:20 ` Johan Herland
2008-06-04 14:41   ` Gerb Stralko
2008-06-04 15:55 ` Michael J Gruber

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).