From: René Scharfe Date: Thu, 21 May 2020 09:51:33 GMT Subject: Re: invalid tree and commit object Message-ID: <8cdbcd9b-b18d-d1d0-eec7-16f4139dbaf9@web.de> In-Reply-To: Am 11.05.20 um 18:25 schrieb Junio C Hamano: > René Scharfe writes: >> + >> + /* >> + * There can be non-consecutive duplicates due to the implicitly >> + * add slash, e.g.: > > s/add slash/added slash/, or even "added slash at the end of the > name of a tree object". Thanks for spotting the typo. I think the short one suffices as the sentence below (and earlier comments) already cover it. >> + * >> + * foo >> + * foo.bar >> + * foo.bar.baz >> + * foo.bar/ >> + * foo/ >> + * >> + * Record non-directory candidates (like "foo" and "foo.bar" in >> + * the example) on a stack and check directory candidates (like >> + * foo/" and "foo.bar/") against that stack. >> + */ > Side note. this is nice but is subtle. I'd need to retrace > the thoughts on this part again later to convince myself > that we are not missing anything. Yes, it's tricky, and we do miss something, as I mentioned in the test coverage thread. I'll reply with patches. René