path: root/Documentation/git-log.txt
diff options
authorLinus Torvalds <>2005-10-31 04:05:32 (GMT)
committerJunio C Hamano <>2005-10-31 06:54:39 (GMT)
commitbd66361195c5503261a2d1eef6aa685deb058ffb (patch)
treee39c96179f2cc5064a0255057b8e8a8863594536 /Documentation/git-log.txt
parent80e0c0ab91e1cf6a6315d0431bf6873ebbf8bef0 (diff)
Add examples for git-log documentation and others.
I don't think people really follow the links or think very abstractly at all in the first place. So I was thinking more of some explicit examples. I actually think every command should have an example in the man-page, and hey, here's a patch to start things off. Of course, I'm not exactly "Mr Documentation", and I don't know that this is the prettiest way to do this, but I checked that the resulting html and man-page seems at least reasonable. And hey, if the examples look like each other, that's just because I'm also not "Mr Imagination". Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-log.txt')
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 13a3998..9cac088 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -30,6 +30,24 @@ OPTIONS
Show only commits between the named two commits.
+git log --no-merges::
+ Show the whole commit history, but skip any merges
+git log v2.6.12.. include/scsi drivers/scsi::
+ Show all commits since version 'v2.6.12' that changed any file
+ in the include/scsi or drivers/scsi subdirectories
+git log --since="2 weeks ago" -- gitk::
+ Show the changes during the last two weeks to the file 'gitk'.
+ The "--" is necessary to avoid confusion with the *branch* named
+ 'gitk'
Written by Linus Torvalds <>