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

Re: [PATCH] subtree: fix argument validation in add/pull/push

From
Thomas Rast <tr@thomasrast.ch>
Date
Nov 27, 2013, 19:19 UTC
Message-ID
<87siuhfy9q.fsf@thomasrast.ch>
In-Reply-To
<1385577249-29269-1-git-send-email-Anthony.Baire@irisa.fr>
Anthony Baire <Anthony.Baire@irisa.fr> writes:
> When working with a remote repository add/pull/push do not accept a
> <refspec> as parameter but just a <ref>. They should accept any
> well-formatted ref name.
[...]
>  - update the doc to use <ref> instead of <refspec>
[...]
Show 10 quoted lines
>  OPTS_SPEC="\
>  git subtree add   --prefix=<prefix> <commit>
> -git subtree add   --prefix=<prefix> <repository> <commit>
> +git subtree add   --prefix=<prefix> <repository> <ref>
>  git subtree merge --prefix=<prefix> <commit>
> -git subtree pull  --prefix=<prefix> <repository> <refspec...>
> -git subtree push  --prefix=<prefix> <repository> <refspec...>
> +git subtree pull  --prefix=<prefix> <repository> <ref>
> +git subtree push  --prefix=<prefix> <repository> <ref>
>  git subtree split --prefix=<prefix> <commit...>
[...]
Show 6 quoted lines
> @@ -68,7 +68,7 @@ COMMANDS
>  --------
>  add::
>  	Create the <prefix> subtree by importing its contents
> -	from the given <refspec> or <repository> and remote <refspec>.
> +	from the given <commit> or <repository> and remote <ref>.

AFAICS you are changing refspec->commit in the manpage, but commit->ref in the usage message for 'subtree add'? How does this line up?

-- 
Thomas Rast
tr@thomasrast.ch
Previous: Anthony BaireNext: Anthony Baire
Message 2 of 3 in “subtree: fix argument validation in add/pull/push”
  1. subtree: fix argument validation in add/pull/pushAnthony Baire, Nov 27, 2013
  2. Thomas RastNov 27, 2013
  3. Anthony BaireNov 27, 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.