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

[PATCH v2 13/13] some document update

From
Bo Yang <struggleyb.nku@gmail.com>
Date
Jun 30, 2010, 15:25 UTC
Message-ID
<1277911526-12105-13-git-send-email-struggleyb.nku@gmail.com>
In-Reply-To
<1277911526-12105-1-git-send-email-struggleyb.nku@gmail.com>
Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
---
 Documentation/git-log.txt |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 0e6ff31..14a9703 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -9,6 +9,7 @@ git-log - Show commit logs
 SYNOPSIS
 --------
 'git log' [<options>] [<since>..<until>] [[\--] <path>...]
+'git log' [<options>] -L n,m <path>
 
 DESCRIPTION
 -----------
@@ -19,6 +20,9 @@ command to control what is shown and how, and options applicable to
 the 'git diff-*' commands to control how the changes
 each commit introduces are shown.
 
+With '-L' option, the command will help to trace the history of user specified
+line ranges. It can trace multiple ranges coming from multiple files.
+
 
 OPTIONS
 -------
@@ -72,6 +76,32 @@ include::diff-options.txt[]
 	to be prefixed with "\-- " to separate them from options or
 	refnames.
 
+-L <start>,<end>::
+	The line range.  <start> and <end> can take one of these forms:
+
+- number
++
+If <start> or <end> is a number, it specifies an
+absolute line number (lines count from 1).
++
+
+- /regex/
++
+This form will use the first line matching the given
+POSIX regex.  If <end> is a regex, it will search
+starting at the line given by <start>.
++
+
+- +offset or -offset
++
+This is only valid for <end> and will specify a number
+of lines before or after the line given by <start>.
++
+
+--always-print::
+	Always print the interesting range even if the current commit
+	does not change any line of the range.
+
 
 include::rev-list-options.txt[]
 
-- 
1.7.0.2.273.gc2413.dirty
Previous: Bo YangNext: Junio C Hamano
Message 15 of 16 in “parse-options: stop when encounter a non-option”
  1. 01/13 parse-options: stop when encounter a non-optionBo Yang, Jun 30, 2010
  2. 02/13 parse-options: add two helper functionsBo Yang, Jun 30, 2010
  3. 03/13 add the basic data structure for line level historyBo Yang, Jun 30, 2010
  4. Junio C HamanoJul 6, 2010
  5. Bo YangJul 6, 2010
  6. 04/13 refactor parse_locBo Yang, Jun 30, 2010
  7. 05/13 parse the -L optionsBo Yang, Jun 30, 2010
  8. 06/13 export three functions from diff.cBo Yang, Jun 30, 2010
  9. 07/13 add range clone functionsBo Yang, Jun 30, 2010
  10. 08/13 map/take range to parentBo Yang, Jun 30, 2010
  11. 09/13 print the line logBo Yang, Jun 30, 2010
  12. 10/13 map/print ranges along traversing the history topologicallyBo Yang, Jun 30, 2010
  13. 11/13 add --always-print optionBo Yang, Jun 30, 2010
  14. 12/13 add two test casesBo Yang, Jun 30, 2010
  15. 13/13 some document updateBo Yang, Jun 30, 2010
  16. Junio C HamanoJul 6, 2010

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.