Re: How do I clear the directory cache
- From
Petr Baudis <pasky@suse.cz>
- Date
- Oct 21, 2005, 21:43 UTC
- Message-ID
- <20051021214326.GJ30889@pasky.or.cz>
- In-Reply-To
- <2b05065b0510211340y9551767i53fe53c0dc14460a@mail.gmail.com>
Dear diary, on Fri, Oct 21, 2005 at 10:40:07PM CEST, I got a letter where eschvoca <eschvoca@gmail.com> told me that...
Show 15 quoted lines
> On 10/21/05, Petr Baudis <pasky@suse.cz> wrote: > > Dear diary, on Fri, Oct 21, 2005 at 05:23:28AM CEST, I got a letter > > where eschvoca <eschvoca@gmail.com> told me that... > > > cg-status -<status_flag> # list files with given status flag (without > > > status flag in column 1) > > > git-ls-files [--others|--deleted|etc] --exclude-per-directory=/.gitignore > > > > All right, this might be useful. Implemented as cg-status -s '?' and such, > > thanks for the idea. > > This is great but it would be easier to work with if there was another > switch to turn off printing > out the status flag. Otherwise you have to 'sed' or 'awk' out the > status flag which is a pain, especially when files have spaces in > them.
Not such a huge pain, but if we already have -s... I added -n which does what you want.
> Also, the "cg-add -r" exits when a file is bad. It would have saved > me a few hours if it would keep not exit on a failure (and add the bad > files to .gitignore ... but that is probably asking for too much).
I don't like the idea of adding the files automagically to .gitignore, but it won't abort the whole operation because of them anymore.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.