git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-show documentation
@ 2008-06-04  0:50 Lea Wiemann
  2008-06-04  1:18 ` Miklos Vajna
  2008-06-04  6:42 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Lea Wiemann @ 2008-06-04  0:50 UTC (permalink / raw)
  To: Git Mailing List

Just in case someone wants to fix it, man git-log lists a --header 
option (by including rev-list-options.txt), but it doesn't actually 
support this option.  Perhaps rev-list-options.txt should be 
copy-and-pasted instead of included so local changes can be made to 
git-log.txt.

-- Lea

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git-show documentation
  2008-06-04  0:50 git-show documentation Lea Wiemann
@ 2008-06-04  1:18 ` Miklos Vajna
  2008-06-04  6:42 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Miklos Vajna @ 2008-06-04  1:18 UTC (permalink / raw)
  To: Lea Wiemann; +Cc: Git Mailing List

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

On Wed, Jun 04, 2008 at 02:50:13AM +0200, Lea Wiemann <lewiemann@gmail.com> wrote:
> Just in case someone wants to fix it, man git-log lists a --header option 
> (by including rev-list-options.txt), but it doesn't actually support this 
> option.  Perhaps rev-list-options.txt should be copy-and-pasted instead of 
> included so local changes can be made to git-log.txt.

Perhaps asciidoc defines would be better than copy&pasting?

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git-show documentation
  2008-06-04  0:50 git-show documentation Lea Wiemann
  2008-06-04  1:18 ` Miklos Vajna
@ 2008-06-04  6:42 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2008-06-04  6:42 UTC (permalink / raw)
  To: Lea Wiemann; +Cc: Git Mailing List

Lea Wiemann <lewiemann@gmail.com> writes:

> Just in case someone wants to fix it, man git-log lists a --header
> option (by including rev-list-options.txt), but it doesn't actually
> support this option.  Perhaps rev-list-options.txt should be
> copy-and-pasted instead of included so local changes can be made to
> git-log.txt.

We already do conditional partial inclusion of that file, so reusing that
mechanism would be the cleanest.

I've looked at the generated files before and after this patch and the
differences looked reasonable.

-- >8 --
Documentation: git-log cannot use rev-list specific options

The log family and git-rev-list share the same set of options that come
from revision walking machinery, but they both have options unique to
them.  Notably, --header, --timestamp, --stdin and --quiet apply only to
rev-list.  Exclude them from the git-log documentation.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---

 Documentation/rev-list-options.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index dfcef79..05d5abe 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -34,17 +34,21 @@ format, often found in E-mail messages.
 `--date=default` shows timestamps in the original timezone
 (either committer's or author's).
 
+ifdef::git-rev-list[]
 --header::
 
 	Print the contents of the commit in raw-format; each record is
 	separated with a NUL character.
+endif::git-rev-list[]
 
 --parents::
 
 	Print the parents of the commit.
 
+ifdef::git-rev-list[]
 --timestamp::
 	Print the raw commit timestamp.
+endif::git-rev-list[]
 
 --left-right::
 
@@ -206,6 +210,7 @@ endif::git-rev-list[]
 	Pretend as if all the refs in `$GIT_DIR/refs/` are listed on the
 	command line as '<commit>'.
 
+ifdef::git-rev-list[]
 --stdin::
 
 	In addition to the '<commit>' listed on the command
@@ -218,6 +223,7 @@ endif::git-rev-list[]
 	test the exit status to see if a range of objects is fully
 	connected (or not).  It is faster than redirecting stdout
 	to /dev/null as the output does not have to be formatted.
+endif::git-rev-list[]
 
 --cherry-pick::
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-04  6:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04  0:50 git-show documentation Lea Wiemann
2008-06-04  1:18 ` Miklos Vajna
2008-06-04  6:42 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).