git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Improve git-log documentation wrt file filters

From
MKmartin f. krafft <madduck@madduck.net>
Date
Sep 30, 2008, 14:36 UTC
Message-ID
<1222785372-32336-1-git-send-email-madduck@madduck.net>

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.
Signed-off-by: martin f. krafft <madduck@madduck.net>
---
 Documentation/git-log.txt |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 0446bad..b7409f8 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,10 @@ 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 should be
+        prefixed with "-- " to separate them from options or refnames.
 
 
 include::rev-list-options.txt[]
-- 
1.5.6.5
Next: Shawn O. Pearce
Message 1 of 3 in “Improve git-log documentation wrt file filters”
  1. Improve git-log documentation wrt file filtersmartin f. krafft, Sep 30, 2008
  2. Shawn O. PearceSep 30, 2008
  3. Improve git-log documentation wrt file filtersmartin f. krafft, Sep 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.