Subject: How is git diff --relative supposed to work?

From: Johannes Sixt <[email-masked]>
Date: Tue, 6 Jan 2026 09:15:03 +0100

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?

-- Hannes