From: Junio C Hamano Date: Mon, 29 Jul 2019 16:07:44 GMT Subject: Re: [PATCH v2] reset: unstage empty deleted ita files Message-ID: In-Reply-To: Varun Naik writes: > To guard against changes to the test cases in the future, would it be > better if I write something like the following instead? > git diff --cached --exit-code HEAD nonempty empty Hmph, that is probably a good idea, as it matches the kind of "reset" we just did, which is what we are testing.