How is git diff --relative supposed to work?
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jan 6, 2026, 08:15 UTC
- Message-ID
- <f1cd3ca7-9b31-45b0-b990-05f4d1f6b4f2@kdbg.org>
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