summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-13 08:34:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-13 22:59:34 (GMT)
commitc0cb4a067972700f0682fbab13768bcc7dc7a3c3 (patch)
treecd372148a53a828f4beeff6f395dc3c87fab3698 /Documentation
parentcd676a513672eeb9663c6d4de276a1c860a4b879 (diff)
downloadgit-c0cb4a067972700f0682fbab13768bcc7dc7a3c3.zip
git-c0cb4a067972700f0682fbab13768bcc7dc7a3c3.tar.gz
git-c0cb4a067972700f0682fbab13768bcc7dc7a3c3.tar.bz2
diff --relative: help working in a bare repository
This allows the --relative option to say which subdirectory to pretend to be in, so that in a bare repository, you can say: $ git log --relative=drivers/ v2.6.20..v2.6.22 -- drivers/scsi/ Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/diff-options.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 286c30c..8dc5b00 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -170,10 +170,13 @@ endif::git-format-patch[]
Swap two inputs; that is, show differences from index or
on-disk file to tree contents.
---relative::
+--relative[=<path>]::
When run from a subdirectory of the project, it can be
told to exclude changes outside the directory and show
- pathnames relative to it with this option.
+ pathnames relative to it with this option. When you are
+ not in a subdirectory (e.g. in a bare repository), you
+ can name which subdirectory to make the output relative
+ to by giving a <path> as an argument.
--text::
Treat all files as text.