On Tue, Nov 29, 2016 at 10:31:51AM -0800, Junio C Hamano wrote: > Jeff King <peff@xxxxxxxx> writes: > > > I'm actually considering scrapping the approach you've queued above, and > > just teaching verify_path() to reject any index entry starting with > > ".git" that is a symlink. > > Hmph, that's a thought. I was resistant to it at first because we'll have to deal with all of the headaches of matching case-folding, but if we just match ".git*" and not ".gitmodules", ".gitattributes", etc, it actually gets easier. I think we can basically build off of the existing is_hfs_dotgit() and is_ntfs_dotgit() functions. I haven't written the code yet, though, so there may be complications. -Peff