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

Re: [DOCBUG] git subtree synopsis needs updating

From
YDYann Dirson <dirson@bertin.fr>
Date
Oct 24, 2012, 14:29 UTC
Message-ID
<20121024162947.2c1edc50@chalon.bertin.fr>
In-Reply-To
<5082FE13.2000003@initfour.nl>

On Sat, 20 Oct 2012 21:40:03 +0200 Herman van Rink <rink@initfour.nl> wrote:

Show 27 quoted lines
> On 10/19/2012 03:21 PM, Yann Dirson wrote:
> > As the examples in git-subtree.txt show, the synopsis in the same file should
> > surely get a patch along the lines of:
> >
> > -'git subtree' add   -P <prefix> <commit>
> > +'git subtree' add   -P <prefix> <repository> <commit>
> >
> > Failure to specify the repository (by just specifying a local commit) fails with
> > the cryptic:
> >
> >  warning: read-tree: emptying the index with no arguments is deprecated; use --empty
> >  fatal: just how do you expect me to merge 0 trees?
> >
> >
> > Furthermore, the doc paragraph for add, aside from mentionning <repository>, also
> > mentions a <refspec> which the synopsis does not show either.
> >
> >
> > As a sidenote it someone wants to do some maintainance, using "." as repository when
> > the branch to subtree-add is already locally available does not work well either
> > (fails with "could not find ref myremote/myhead").
> >
> 
> The version of subtree in contrib is rather out-dated unfortunately.
> 
> I've collected a bunch of patches in
> https://github.com/helmo/git/tree/subtree-updates
Ah, it's nice to see subtree updates.  Any plans to get them merged anytime soon ?

I guess you may want to rebase the patches from https://github.com/helmo/git-subtree, the subtree-updates patch looks like a "subtree merge --squash" result, and is not really suitable for reviewing on the list.

> The documentation issue is also fixed in there.
> 
-- 
Yann Dirson - Bertin Technologies
Previous: Herman van RinkNext: greened@obbligato.org
Message 3 of 7 in “[DOCBUG] git subtree synopsis needs updating”
  1. Yann DirsonOct 19, 2012
  2. Herman van RinkOct 20, 2012
  3. Yann DirsonOct 24, 2012
  4. greened@obbligato.orgJan 1, 2013
  5. Techlive ZhengJan 19, 2013
  6. greened@obbligato.orgJan 1, 2013
  7. Yann DirsonJan 18, 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.