All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sunshine <sunshine@sunshineco.com>
To: git@vger.kernel.org
Cc: Eric Sunshine <sunshine@sunshineco.com>,
	Thomas Rast <trast@student.ethz.ch>,
	Bo Yang <struggleyb.nku@gmail.com>
Subject: [PATCH 6/6] blame-options.txt: explain that -L <start> and <end> are optional
Date: Wed, 17 Jul 2013 17:25:32 -0400	[thread overview]
Message-ID: <1374096332-7891-7-git-send-email-sunshine@sunshineco.com> (raw)
In-Reply-To: <1374096332-7891-1-git-send-email-sunshine@sunshineco.com>

The ability to omit either end of the -L range is a handy but
undocumented shortcut, and is thus not easily discovered. Fix this
shortcoming.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
---
 Documentation/blame-options.txt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/blame-options.txt b/Documentation/blame-options.txt
index 624b353..4e55b15 100644
--- a/Documentation/blame-options.txt
+++ b/Documentation/blame-options.txt
@@ -11,8 +11,11 @@
 
 -L <start>,<end>::
 -L :<regex>::
-	Annotate only the given line range.  <start> and <end> can take
-	one of these forms:
+	Annotate only the given line range.  <start> and <end> are optional.
+	``-L <start>'' or ``-L <start>,'' spans from <start> to end of file.
+	``-L ,<end>'' spans from start of file to <end>.
++
+<start> and <end> can take one of these forms:
 
 include::line-range-format.txt[]
 
-- 
1.8.3.3.1016.g4f0baba

  parent reply	other threads:[~2013-07-17 21:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17 21:25 [PATCH 0/6] fix blame -L regression; add tests Eric Sunshine
2013-07-17 21:25 ` [PATCH 1/6] line-range: fix "blame -L X,-N" regression Eric Sunshine
2013-07-17 21:25 ` [PATCH 2/6] t8001/t8002 (blame): modernize style Eric Sunshine
2013-07-17 21:25 ` [PATCH 3/6] t8001/t8002 (blame): add blame -L tests Eric Sunshine
2013-07-17 21:25 ` [PATCH 4/6] t8001/t8002 (blame): add blame -L :funcname tests Eric Sunshine
2013-07-17 21:25 ` [PATCH 5/6] blame-options.txt: place each -L option variation on its own line Eric Sunshine
2013-07-18 11:56   ` Thomas Rast
2013-07-18 17:51     ` Junio C Hamano
2013-07-22 10:38       ` Thomas Rast
2013-07-22 17:25         ` Junio C Hamano
2013-07-17 21:25 ` Eric Sunshine [this message]
2013-07-18 12:04 ` [PATCH 0/6] fix blame -L regression; add tests Thomas Rast

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1374096332-7891-7-git-send-email-sunshine@sunshineco.com \
    --to=sunshine@sunshineco.com \
    --cc=git@vger.kernel.org \
    --cc=struggleyb.nku@gmail.com \
    --cc=trast@student.ethz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.