From: Linus Torvalds Date: Wed, 17 Aug 2005 01:06:34 +0000 (-0700) Subject: [PATCH] Make "git diff" work inside relative subdirectories X-Git-Tag: v0.99.5~17^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d288a70030eaa5c205a72b4548635e17f8e523c0?hp=d288a70030eaa5c205a72b4548635e17f8e523c0 [PATCH] Make "git diff" work inside relative subdirectories We always show the diff as an absolute path, but pathnames to diff are taken relative to the current working directory (and if no pathnames are given, the default ends up being all of the current working directory). Note that "../xyz" also works, so you can do cd linux/drivers/char git diff ../block and it will generate a diff of the linux/drivers/block changes. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano ---