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

Re: [PATCH 4/8] Fix Synopsis

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 1, 2013, 21:40 UTC
Message-ID
<7vwqvw8tur.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1357012655-24974-5-git-send-email-greened@obbligato.org>
"David A. Greene" <greened@obbligato.org> writes:
Show 25 quoted lines
> From: "David A. Greene" <greened@obbligato.org>
>
> Fix the documentation of add to show that a repository can be
> specified along with a commit.
>
> Change "commit" to "refspec" in the synopsis for add.
>
> Suggested by Yann Dirson <dirson@bertin.fr>.
>
> Signed-off-by: David A. Greene <greened@obbligato.org>
> ---
>  contrib/subtree/git-subtree.sh  |    3 ++-
>  contrib/subtree/git-subtree.txt |    3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
> index b8a807a..ad62dfb 100755
> --- a/contrib/subtree/git-subtree.sh
> +++ b/contrib/subtree/git-subtree.sh
> @@ -8,7 +8,8 @@ if [ $# -eq 0 ]; then
>      set -- -h
>  fi
>  OPTS_SPEC="\
> -git subtree add   --prefix=<prefix> <commit>
> +git subtree add   --prefix=<prefix> <refspec>
Again, this is not <refspec> but <commit>.
> +git subtree add   --prefix=<prefix> <repository> <refspec>

This is given to "fetch" and it seems to acccept any <refspec>, so it is probably a good change (I didn't fully follow the codepath, though).

Show 17 quoted lines
>  git subtree merge --prefix=<prefix> <commit>
>  git subtree pull  --prefix=<prefix> <repository> <refspec...>
>  git subtree push  --prefix=<prefix> <repository> <refspec...>
> diff --git a/contrib/subtree/git-subtree.txt b/contrib/subtree/git-subtree.txt
> index ae420aa..89c2d6e 100644
> --- a/contrib/subtree/git-subtree.txt
> +++ b/contrib/subtree/git-subtree.txt
> @@ -9,7 +9,8 @@ git-subtree - Merge subtrees together and split repository into subtrees
>  SYNOPSIS
>  --------
>  [verse]
> -'git subtree' add   -P <prefix> <commit>
> +'git subtree' add   -P <prefix> <refspec>
> +'git subtree' add   -P <prefix> <repository> <refspec>
>  'git subtree' pull  -P <prefix> <repository> <refspec...>
>  'git subtree' push  -P <prefix> <repository> <refspec...>
>  'git subtree' merge -P <prefix> <commit>
Previous: David A. GreeneNext: greened@obbligato.org
Message 27 of 38 in “git-subtree Patches to Apply”
  1. David A. GreeneJan 1, 2013
  2. 1/8 Use %B for Split Subject/BodyDavid A. Greene, Jan 1, 2013
  3. greened@obbligato.orgJan 1, 2013
  4. Junio C HamanoJan 1, 2013
  5. greened@obbligato.orgJan 1, 2013
  6. Junio C HamanoJan 1, 2013
  7. greened@obbligato.orgJan 1, 2013
  8. 郑文辉 (Techlive Zheng)Jan 7, 2013
  9. Junio C HamanoJan 7, 2013
  10. Junio C HamanoJan 1, 2013
  11. greened@obbligato.orgJan 1, 2013
  12. Junio C HamanoJan 2, 2013
  13. greened@obbligato.orgJan 8, 2013
  14. 2/8 Add --unannotateDavid A. Greene, Jan 1, 2013
  15. Junio C HamanoJan 1, 2013
  16. greened@obbligato.orgJan 1, 2013
  17. Junio C HamanoJan 2, 2013
  18. greened@obbligato.orgJan 8, 2013
  19. James NylenJan 17, 2013
  20. greened@obbligato.orgJan 22, 2013
  21. Junio C HamanoJan 22, 2013
  22. 3/8 Better Error Handling for addDavid A. Greene, Jan 1, 2013
  23. Junio C HamanoJan 1, 2013
  24. greened@obbligato.orgJan 1, 2013
  25. Junio C HamanoJan 2, 2013
  26. 4/8 Fix SynopsisDavid A. Greene, Jan 1, 2013
  27. Junio C HamanoJan 1, 2013
  28. greened@obbligato.orgJan 1, 2013
  29. 5/8 Honor DESTDIRDavid A. Greene, Jan 1, 2013
  30. Junio C HamanoJan 1, 2013
  31. greened@obbligato.orgJan 1, 2013
  32. 6/8 Make the Manual Directory if NeededDavid A. Greene, Jan 1, 2013
  33. Junio C HamanoJan 1, 2013
  34. greened@obbligato.orgJan 1, 2013
  35. 7/8 Ignore git-subtreeDavid A. Greene, Jan 1, 2013
  36. Junio C HamanoJan 1, 2013
  37. 8/8 Fix Documentation TypoDavid A. Greene, Jan 1, 2013
  38. 郑文辉 (Techlive Zheng)Jan 7, 2013

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.