Skip to content

Commit e51c3b5

Browse files
author
Junio C Hamano
committed
git-log <diff-options> <paths> documentation
Signed-off-by: Junio C Hamano <[email protected]>
1 parent e3a125a commit e51c3b5

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Documentation/git-log.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ SYNOPSIS
1212

1313
DESCRIPTION
1414
-----------
15-
Shows the commit logs. This command internally invokes
16-
'git-rev-list', and the command line options are passed to that
17-
command.
15+
Shows the commit logs.
16+
17+
The command takes options applicable to the gitlink::git-rev-list[1]
18+
command to control what is shown and how, and options applicable to
19+
the gitlink::git-diff-tree[1] commands to control how the change
20+
each commit introduces are shown.
21+
22+
This manual page describes only the most frequently used
23+
options.
1824

19-
This manual page describes only the most frequently used options.
2025

2126
OPTIONS
2227
-------
@@ -29,6 +34,12 @@ OPTIONS
2934
<since>..<until>::
3035
Show only commits between the named two commits.
3136

37+
-p::
38+
Show the change the commit introduces in a patch form.
39+
40+
<paths>...::
41+
Show only commits that affect the specified paths.
42+
3243

3344
Examples
3445
--------
@@ -47,6 +58,11 @@ git log --since="2 weeks ago" -- gitk::
4758
The "--" is necessary to avoid confusion with the *branch* named
4859
'gitk'
4960

61+
git log -r --name-status release..test::
62+
63+
Show the commits that are in the "test" branch but not yet
64+
in the "release" branch, along with the list of paths
65+
each commit modifies.
5066

5167
Author
5268
------

0 commit comments

Comments
 (0)