From: Jakub Narebski Date: Sun, 11 Jul 2010 08:27:04 GMT Subject: Re: [PATCH v3 13/13] some document update Message-ID: In-Reply-To: <1278829141-11900-13-git-send-email-struggleyb.nku@gmail.com> Bo Yang writes: > Documentation/git-log.txt | 30 ++++++++++++++++++++++++++++++ > 1 files changed, 30 insertions(+), 0 deletions(-) [...] > +-L ,:: > + The line range. and can take one of these forms: > + > +- number > ++ > +If or 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 is a regex, it will search > +starting at the line given by . > ++ > + > +- +offset or -offset > ++ > +This is only valid for and will specify a number > +of lines before or after the line given by . > ++ If the parsing code for -L , is the same for git-blame and for git-log, and therefore documentation is the same or nearly the same for this option, wouldn't it be better to separate this documentation into separate file, e.g. line-range-option.txt, and include it both in git-blame and git-log manpages? If there are minor differences, they can be covered by ifdefs. -- Jakub Narebski Poland ShadeHawk on #git