diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-06-02 16:46:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-02 16:46:52 -0700 |
commit | 7e590a1afe350393356fbecdd44a43a42ddfad34 (patch) | |
tree | 0ff3bfac8994607bda7188f1c19895c965fb96ce /git-log.txt | |
parent | c710296399a86586e3a5e24ea8519ea2442ab7cf (diff) | |
download | git-htmldocs-7e590a1afe350393356fbecdd44a43a42ddfad34.tar.gz |
Autogenerated HTML docs for v1.8.3-182-gb2edae
Diffstat (limited to 'git-log.txt')
-rw-r--r-- | git-log.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/git-log.txt b/git-log.txt index a976534ab..4687fe819 100644 --- a/git-log.txt +++ b/git-log.txt @@ -62,6 +62,19 @@ produced by --stat etc. Note that only message is considered, if also a diff is shown its size is not included. +-L <start>,<end>:<file>, -L :<regex>:<file>:: + + Trace the evolution of the line range given by "<start>,<end>" + (or the funcname regex <regex>) within the <file>. You may + not give any pathspec limiters. This is currently limited to + a walk starting from a single revision, i.e., you may only + give zero or one positive revision arguments. + You can specify this option more than once. ++ +<start> and <end> can take one of these forms: + +include::line-range-format.txt[] + <revision range>:: Show only commits in the specified revision range. When no <revision range> is specified, it defaults to `HEAD` (i.e. the @@ -140,6 +153,11 @@ Examples This makes sense only when following a strict policy of merging all topic branches when staying on a single integration branch. +git log -L '/int main/',/^}/:main.c:: + + Shows how the function `main()` in the file 'main.c' evolved + over time. + `git log -3`:: Limits the number of commits to show to 3. |