git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-submodule.sh: Add Long Usage instead of simple usage

From
Imran M Yousuf <imyousuf@gmail.com>
Date
May 5, 2008, 09:07 UTC
Message-ID
<7bfdc29a0805050207l3ef55648u9a8cbd6e57711e0c@mail.gmail.com>
In-Reply-To
<1209977051-25896-1-git-send-email-imyousuf@gmail.com>

Sorry for the inconvenience, but please ignore this patch as it was not generated with -n and version number :(.

- best regards,
Imran
On Mon, May 5, 2008 at 2:44 PM,  <imyousuf@gmail.com> wrote:
Show 41 quoted lines
> From: Imran M Yousuf <imyousuf@smartitengineering.com>
>
>  With the already available commands the synopsis is quite hard to
>  read; thus converted it to Long usage instead. In process also
>  updated the file comment.
>
>  Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
>  ---
>   git-submodule.sh |   13 +++++++++----
>   1 files changed, 9 insertions(+), 4 deletions(-)
>
>  diff --git a/git-submodule.sh b/git-submodule.sh
>  index ce0f00c..a5ee2e5 100755
>  --- a/git-submodule.sh
>  +++ b/git-submodule.sh
>  @@ -1,12 +1,17 @@
>   #!/bin/sh
>   #
>  -# git-submodules.sh: add, init, update or list git submodules
>  +# git-submodules.sh: add, init, update, summary or status git submodules
>   #
>   # Copyright (c) 2007 Lars Hjemli
>
>  -USAGE="[--quiet] [--cached] \
>  -[add <repo> [-b branch]|status|init|update|summary [-n|--summary-limit <n>] [<commit>]] \
>  -[--] [<path>...]"
>  +USAGE="<command> <options>
>  +Use $0 -h for more details"
>  +# Did not use '\' at the end of the lines to ensure that each synopsis
>  +# are in a separate line
>  +LONG_USAGE="$0 add [-q|--quiet] [-b|--branch branch] <repository> [<path>]
>  +$0 [status] [-q|--quiet] [-c|--cached] [--] [<path>...]
>  +$0 init|update [-q|--quiet] [--] [<path>...]
>  +$0 summary [--cached] [-n|--summary-limit <n>] [<commit>]"
>   OPTIONS_SPEC=
>   . git-sh-setup
>   require_work_tree
>  --
>  1.5.4.2
>
>
Previous: Imran M Yousuf
Message 10 of 10 in “git-submodule.sh: Add Long Usage instead of simple usage”
  1. git-submodule.sh: Add Long Usage instead of simple usageimyousuf@gmail.com, May 5, 2008
  2. git-submodule.sh: Add recurse subcommand with basic optionsimyousuf@gmail.com, May 5, 2008
  3. git-submodule.sh: Add Custom argument input support to git submodule recurse subcommandimyousuf@gmail.com, May 5, 2008
  4. git-submodule.sh: Add pre command argument to git submodule recurse subcommandimyousuf@gmail.com, May 5, 2008
  5. Documentation/git-submodule.txt: Add documentation for the recurse subcommandimyousuf@gmail.com, May 5, 2008
  6. Imran M YousufMay 5, 2008
  7. Imran M YousufMay 5, 2008
  8. Imran M YousufMay 5, 2008
  9. Imran M YousufMay 5, 2008
  10. Imran M YousufMay 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.