Re: [PATCH] Add subcommand "help" to the list of most commonly used subcommands

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Thursday, June 5, 2008 - 11:13 am

Teemu Likonen <tlikonen@iki.fi> writes:


While I do agree that a word 'help' should appear in the above output
somewhere, it is a horrible idea to place it in "list of common commands"
for two reasons.

 (1) nobody keeps typing "git help".  The reason we may want to mention
     'help' in this output is not because it is common;

 (2) 'help' _is_ different from other commands.  It is something one may
     want to know the presense of when one is still lost after seeing the
     above quoted output, especially when one is starting to learn.  It
     makes it more difficult to spot it if you bury it as one of the
     commands in a list.

It is reasonable to mention 'help' somewhere in the output, but if we are
going to do this, we should make it stand out.  Perhaps like this.

-- >8 --
$ git
usage: git [--version] ...

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find the change that introduced a bug by binary search
   branch     List, create, or delete branches
   ...
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

See 'man git' and 'git help' for more information.
-- 8< --
--
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:
[TOY PATCH] git wrapper: show similar command names for an ..., Johannes Schindelin, (Wed Jun 4, 11:48 pm)
Re: [PATCH] Add subcommand "help" to the list of most comm ..., Junio C Hamano, (Thu Jun 5, 11:13 am)
Re: [TOY PATCH] git wrapper: show similar command names fo ..., Johannes Schindelin, (Thu Jun 5, 4:00 pm)
Re: [TOY PATCH] git wrapper: show similar command names fo ..., Johannes Schindelin, (Sat Jun 7, 8:04 am)
Re: [TOY PATCH] git wrapper: show similar command names fo ..., Johannes Schindelin, (Sun Jun 8, 8:07 am)
Re: [TOY PATCH] git wrapper: show similar command names fo ..., Johannes Schindelin, (Sun Jun 8, 4:26 pm)