Re: [DOCBUG] git subtree synopsis needs updating
- From
Techlive Zheng <techlivezheng@gmail.com>
- Date
- Jan 19, 2013, 05:48 UTC
- Message-ID
- <20130119054801.GA1218@gmail.com>
- In-Reply-To
- <5082FE13.2000003@initfour.nl>
On 12-10-20, Herman van Rink wrote:
Show 24 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.
You should really submit these patches here for reviewing, David is actively maintaining this tool here.
Show 17 quoted lines
> > I've collected a bunch of patches in > https://github.com/helmo/git/tree/subtree-updates > > The documentation issue is also fixed in there. > > -- > > Met vriendelijke groet / Regards, > > Herman van Rink > Initfour websolutions > > -- > 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