Re: ghost refs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Thursday, April 8, 2010 - 1:42 pm

Jeff King <peff@peff.net> writes:


That certainly is an improvement, but I've been wondering if it makes
sense to also have a section in each commands the configuration variables
that affects the behaviour of the command.  core.logallrefupdates surely
is not the only variable that affects how "git branch" behaves.

We might want to have a general concensus on what we want to have in the
documentation.  As you noted, some have too sparse SYNOPSIS, while others
have full list of options.  Some mention configuration variables, while
others don't.  Some have extensive examples, while others lack any.
Once we know the general direction in which we are going, we can hand off
the actual documentation updates to the crowd ;-)

I'll list my preference off the top of my head as a firestarter.

NAME::

The name followed by what it is used for

SYNOPSIS::

I prefer to have (almost) complete set of options in SYNOPSIS, rather than
"command [<options>] <args>..." which is next to useless.  This is
especially true for commands whose one set of options is incompatible with
other set of options and arguments (e.g. there is no place for "-b" to
"checkout" that checks out paths out of the index or a tree-ish).

I also prefer not to list "purely for backward compatibility" options in
SYNOPSIS section.

DESCRIPTION::

The description section should first state what the command is used for,
iow, in which situation the user might want to use that command.

OPTIONS::

List of full options.  Some existing pages list them alphabetically, while
others list them in functional groups.  I prefer the latter which tends to
make the page more concise, and is more suited for people who got used to
the system (and remember, nobody stays to be a newbie forever, and people
who stay to be newbies forever are not our primary audience).

Detailed discussion of concepts::

Some manual pages need to have discussion of basic concepts that would not
be a good fit for the DESCRIPTION section (e.g. "Detached HEAD" section in
"checkout" manual).  I am not sure if this kind of material is better
given in OPTIONS section close to the functional group (e.g. "History
Siimplification" heading in "log" manual).


EXAMPLES::

I prefer to make it mandatory for Porcelain command manual pages to have a
list of often used patterns that a reasonably intelligent person can guess
how to tweak to match the particular situation s/he is in.


AUTHOR/DOCUMENTAITON::

These sections in most pages are not kept up to date, and I prefer to
remove them altogether.  They do not help end users who never clone
git.git, and those who clone git.git will have shortlog to give them more
accurate information.



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ghost refs, John Dlugosz, (Wed Apr 7, 9:38 am)
Re: ghost refs, Avery Pennarun, (Wed Apr 7, 9:58 am)
Re: ghost refs, Jeff King, (Wed Apr 7, 2:00 pm)
RE: ghost refs, John Dlugosz, (Wed Apr 7, 3:00 pm)
Re: ghost refs, Avery Pennarun, (Wed Apr 7, 3:03 pm)
RE: ghost refs, John Dlugosz, (Wed Apr 7, 3:10 pm)
Re: ghost refs, Avery Pennarun, (Wed Apr 7, 3:11 pm)
Re: ghost refs, Jeff King, (Wed Apr 7, 9:30 pm)
RE: ghost refs, John Dlugosz, (Thu Apr 8, 9:07 am)
Re: ghost refs, Junio C Hamano, (Thu Apr 8, 9:55 am)
Re: ghost refs, Jeff King, (Thu Apr 8, 12:49 pm)
Re: ghost refs, Junio C Hamano, (Thu Apr 8, 1:42 pm)
Re: ghost refs, Avery Pennarun, (Thu Apr 8, 3:14 pm)
Re: ghost refs, Nicolas Sebrecht, (Thu Apr 8, 4:04 pm)
Re: ghost refs, Jeff King, (Sat Apr 17, 4:51 am)
Re: ghost refs, Junio C Hamano, (Sat Apr 17, 9:32 am)
Re: Git documentation writing guidelines, Junio C Hamano, (Sat Apr 17, 5:28 pm)
RE: ghost refs, John Dlugosz, (Mon Apr 19, 8:33 am)
Re: ghost refs, Yann Dirson, (Tue Apr 20, 12:02 am)
Re: ghost refs, Jeff King, (Tue Apr 20, 4:51 am)
Re: ghost refs, Zefram, (Tue Apr 20, 5:02 am)
Re: ghost refs, Yann Dirson, (Tue Apr 20, 6:00 am)
Re: ghost refs, Zefram, (Tue Apr 20, 6:14 am)
Re: ghost refs, Jay Soffian, (Tue Apr 20, 6:33 am)
Re: ghost refs, Jeff King, (Tue Apr 20, 7:24 am)
Re: ghost refs, Yann Dirson, (Tue Apr 20, 7:42 am)
Re: ghost refs, Jay Soffian, (Tue Apr 20, 7:52 am)
Re: ghost refs, Alex Riesen, (Tue Apr 20, 8:03 am)
Re: ghost refs, Jeff King, (Tue Apr 20, 8:10 am)