{"thread":{"id":"13791","subject":"list all the untrack files in a git respo","startedAt":"2008-06-04T14:05:48Z","lastAt":"2008-06-04T15:55:03Z","messageCount":5,"participants":["Gerb Stralko","Jakub Narebski","Johan Herland","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"78622","messageId":"75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com","threadId":"13791","inReplyTo":null,"subject":"list all the untrack files in a git respo","fromName":"Gerb Stralko","fromEmail":"gerb.stralko@gmail.com","sentAt":"2008-06-04T14:05:48Z","receivedAt":"2008-06-04T14:05:48Z","isPatch":false,"sender":{"key":"gerb.stralko@gmail.com","avatar":null},"body":"Is there a way to list only the untracked files in git? git status\nworks, but i need to do some parsing in order to get a list of\nuntracked files.  Something like git status --show-only-untracked?\n\nthanks\n\nJerry\n"},{"id":"78623","messageId":"m3abi1z3if.fsf@localhost.localdomain","threadId":"13791","inReplyTo":"75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com","subject":"Re: list all the untrack files in a git respo","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-06-04T14:19:48Z","receivedAt":"2008-06-04T14:19:48Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Gerb Stralko\" <gerb.stralko@gmail.com> writes:\n\n> Is there a way to list only the untracked files in git? git status\n> works, but i need to do some parsing in order to get a list of\n> untracked files.  Something like git status --show-only-untracked?\n\ngit-status is porcelain, meant for human consumption.  For list\nof untracked files use\n\n  $ git ls-files --other --exclude-standard\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"78624","messageId":"200806041620.54890.johan@herland.net","threadId":"13791","inReplyTo":"75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com","subject":"Re: list all the untrack files in a git respo","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2008-06-04T14:20:54Z","receivedAt":"2008-06-04T14:20:54Z","isPatch":false,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"On Wednesday 04 June 2008, Gerb Stralko wrote:\n> Is there a way to list only the untracked files in git? git status\n> works, but i need to do some parsing in order to get a list of\n> untracked files.  Something like git status --show-only-untracked?\n\nIs\n\tgit ls-files -o\nwhat you want?\n\n(Depending on your use case, you might also find the --exclude-standard \nand --directory options useful as well. See the git-ls-files manual \npage for details)\n\n\n...Johan\n\n-- \nJohan Herland, <johan@herland.net>\nwww.herland.net\n"},{"id":"78626","messageId":"75b57c110806040741x17cabe91j9863a471ef1670c@mail.gmail.com","threadId":"13791","inReplyTo":"200806041620.54890.johan@herland.net","subject":"Re: list all the untrack files in a git respo","fromName":"Gerb Stralko","fromEmail":"gerb.stralko@gmail.com","sentAt":"2008-06-04T14:41:08Z","receivedAt":"2008-06-04T14:41:08Z","isPatch":false,"sender":{"key":"gerb.stralko@gmail.com","avatar":null},"body":">        git ls-files -o\n>\n> ...Johan\n\nThis is exactly what i want.  Thanks Johan.\n\nJerry\n"},{"id":"78633","messageId":"g26dsq$dqr$1@ger.gmane.org","threadId":"13791","inReplyTo":"75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com","subject":"Re: list all the untrack files in a git respo","fromName":"Michael J Gruber","fromEmail":"michaeljgruber+gmane@fastmail.fm","sentAt":"2008-06-04T15:55:03Z","receivedAt":"2008-06-04T15:55:03Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Gerb Stralko venit, vidit, dixit 04.06.2008 16:05:\n> Is there a way to list only the untracked files in git? git status\n> works, but i need to do some parsing in order to get a list of\n> untracked files.  Something like git status --show-only-untracked?\n> \n> thanks\n> \n> Jerry\n\ngit-ls-files --others --exclude-standard\n\nmay be what you are looking for.\n\nMichael\n"}]}