]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff: add config option relative
authorLaurent Arnoud <laurent@spkdev.net>
Fri, 22 May 2020 10:46:18 +0000 (12:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 May 2020 23:23:59 +0000 (16:23 -0700)
commitc28ded83fc95be8157c851c8be179733a7d4b137
tree5c406996a33b4b729fd17b88ee342547838e902d
parentefcab5b7a3d2ce2ae4bf808b335938098b18d960
diff: add config option relative

The `diff.relative` boolean option set to `true` shows only changes in
the current directory/value specified by the `path` argument of the
`relative` option and shows pathnames relative to the aforementioned
directory.

Teach `--no-relative` to override earlier `--relative`

Add for git-format-patch(1) options documentation `--relative` and
`--no-relative`

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Acked-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/diff.txt
Documentation/diff-options.txt
diff.c
t/t4014-format-patch.sh
t/t4045-diff-relative.sh