Re: git-ls-new-files & make patch, pull, etc.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 23, 2005, 05:15 UTC
- Message-ID
- <7v1x4lz118.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <430A84D1.2050206@linuxmachines.com>
Jeff Carr <jcarr@linuxmachines.com> 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