Re: [RFC/PATCH] git-add: Don't exclude explicitly-specified tracked files
- From
Greg Brockman <gdb@mit.edu>
- Date
- Aug 18, 2010, 09:07 UTC
- Message-ID
- <AANLkTiky+azVAnXEBFWR1q9_8NH8TX2TfuonXCpA_-ms@mail.gmail.com>
- In-Reply-To
- <AANLkTikV-fye7qc5kQNC5dSCTHB6nYoVfCg_PeFuk0KT@mail.gmail.com>
> I think "git add ignore-dir/file" above should act exactly like "git > add file", and not force me to add a "-f" to "git add".
I agree. That seems very much like the correct behavior. FWIW, prior to sending the patch I hadn't noticed that 'git add file' already works without a '-f', which is why my commit message doesn't mention it.
Anyway, I'm not sure if there's consensus on this being the right behavior. Thus I will take Matthieu's advice and propose a test-case for the desired behavior. I'll send that under separate cover in a few moments.
Thanks everyone for contributing your thoughts thus far.
Greg