From: Junio C Hamano Date: Tue, 06 Jan 2026 10:22:19 GMT Subject: Re: How is git diff --relative supposed to work? Message-ID: In-Reply-To: Johannes Sixt writes: > Try this in your favorite repository: > > $ echo foo >> Makefile > $ git -P diff --name-only --relative=Ma > kefile > > This doesn't look right. Shouldn't the path specified with --relative be > interpreted as a directory instead of an arbitrary textual prefix? Sounds like an utter nonsense to me, too. If we assume Ma were a directory, would the result be "../Makefile" relative to the Ma directory?