From: Jeff King Date: Tue, 29 Nov 2016 18:37:58 GMT Subject: Re: What's cooking in git.git (Nov 2016, #06; Mon, 28) Message-ID: <20161129183758.wicmteo5vdvygu2q@sigill.intra.peff.net> In-Reply-To: On Tue, Nov 29, 2016 at 10:31:51AM -0800, Junio C Hamano wrote: > Jeff King 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