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

Re: [PATCH v2] contrib/subtree bugfix: Can't `add` annotated tag

From
James Denholm <nod.helm@gmail.com>
Date
May 13, 2014, 23:02 UTC
Message-ID
<20140513230201.GA32562@debian>
In-Reply-To
<xmqqa9alo4lm.fsf@gitster.dls.corp.google.com>
On Tue, May 13, 2014 at 12:34:13PM -0700, Junio C Hamano wrote:
Show 6 quoted lines
> James Denholm <nod.helm@gmail.com> writes:
> > I felt that defining revp would be a little more self-documenting than
> > using $rev^0.
> 
> That is a good decision, but as long as we are attempting to peel,
> don't we want to stop the damage when it does not peel to a commit?

I'm not sure that can actually happen - peel_committish is essentially implemented as `rev-parse $arg^0` (though with a bit of bling, of course), and to my understanding FETCH_HEAD will always parse to a committish - I could have missed something, of course.

subtree Will need error-catching at some point, of course, triggering resets or at least suggesting instructions to the user, but I think that's a touch out of the scope of a bugfix at this point (and, to be honest, I personally can't allocate the time to that for about a month due to the dark shadow of academic exams). Indeed, what to do in those cases is probably worth (re-)discussing the overall design and aims of subtree for, and so I'm not confident that I currently know the best way to do that.

> I'll tentatively queue this.  Thanks.
Awesome, thanks again for this and the feedback.

--- Regards, James Denholm.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “contrib/subtree bugfix: Can't `add` annotated tag”
  1. contrib/subtree bugfix: Can't `add` annotated tagJames Denholm, May 13, 2014
  2. Junio C HamanoMay 13, 2014
  3. James DenholmMay 13, 2014
  4. Junio C HamanoMay 13, 2014
  5. James DenholmMay 14, 2014
  6. Junio C HamanoMay 14, 2014
  7. James DenholmMay 14, 2014

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.