diff options
author | martin f. krafft <madduck@madduck.net> | 2008-09-30 21:57:50 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-01 08:21:22 -0700 |
commit | b1524ee0f3a34d76639090c988523550026cc98b (patch) | |
tree | ba2c59d940cd61ea3ba0e73b14b294a76f32d69b /Documentation | |
parent | 5d6b3a9ef80a8bcd77b57ea14d4284b022b95a1f (diff) | |
download | git-b1524ee0f3a34d76639090c988523550026cc98b.tar.gz git-b1524ee0f3a34d76639090c988523550026cc98b.tar.xz |
Improve git-log documentation wrt file filters
The need for "--" in the git-log synopsis was previously unclear and
confusing. This patch makes it a little clearer.
Thanks to hyy <yiyihu@gmail.com> for his help.
[sp: Changed -- to \-- per prior commit e1ccf53.]
Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-log.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt index 0446bad7e..93a2a227c 100644 --- a/Documentation/git-log.txt +++ b/Documentation/git-log.txt @@ -8,7 +8,7 @@ git-log - Show commit logs SYNOPSIS -------- -'git log' <option>... +'git log' [<options>] [<since>..<until>] [[\--] <path>...] DESCRIPTION ----------- @@ -57,8 +57,11 @@ include::diff-options.txt[] Note that only message is considered, if also a diff is shown its size is not included. -<path>...:: - Show only commits that affect any of the specified paths. +[\--] <path>...:: + Show only commits that affect any of the specified paths. To + prevent confusion with options and branch names, paths may need + to be prefixed with "\-- " to separate them from options or + refnames. include::rev-list-options.txt[] |