From: Junio C Hamano Date: Tue, 23 Aug 2005 05:15:47 GMT Subject: Re: git-ls-new-files & make patch, pull, etc. Message-ID: <7v1x4lz118.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <430A84D1.2050206@linuxmachines.com> Jeff Carr writes: > Something simple like the perl script at the bottom would be useful for > showing files that haven't been added via git-update-cache --add already. If I am not mistaken, you just reinvented: $ git ls-files --others in a very expensive way. Notice your `find . -type f` that does not prune .git directory upfront. Also you may want to take a look at: $ git ls-files --others --exclude-from=.git/info/exclude