X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fgit-log.txt;h=e995d1b74bdbcedf3cc656ee06e939ec39a87795;hb=562051809589574576971c53c23aad93f8c395d9;hp=13a3998302a2817bb36d7555f171311ce19a3d0c;hpb=f865a2ad981f72423aa1c19412ce57c543801957;p=git.git diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt index 13a39983..e995d1b7 100644 --- a/Documentation/git-log.txt +++ b/Documentation/git-log.txt @@ -20,7 +20,7 @@ This manual page describes only the most frequently used options. OPTIONS ------- ---pretty=: +--pretty=:: Controls the way the commit log is formatted. --max-count=:: @@ -30,6 +30,24 @@ OPTIONS Show only commits between the named two commits. +Examples +-------- +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' + + Author ------ Written by Linus Torvalds