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

Re: breakage in revision traversal with pathspec

From
Jeff King <peff@peff.net>
Date
Sep 25, 2013, 09:12 UTC
Message-ID
<20130925091259.GA5844@sigill.intra.peff.net>
In-Reply-To
<xmqqeh8jqt38.fsf@gitster.dls.corp.google.com>
On Fri, Sep 20, 2013 at 10:51:55AM -0700, Junio C Hamano wrote:
Show 15 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > My original question was going to be: why bother peeling at all if we
> > are just going to push the outer objects, anyway?
> >
> > And after staring at it, I somehow convinced myself that the answer was
> > that you were pushing both. But that is not the case. Sorry for the
> > noise.
> 
> But that is still a valid point, and the patch to avoid peeling for
> non symmetric diff does not look too bad, either.
> 
>  revision.c               | 59 ++++++++++++++++++++++++++++++------------------
>  t/t6000-rev-list-misc.sh |  8 +++++++
>  2 files changed, 45 insertions(+), 22 deletions(-)

FWIW, the flow of this version makes more sense to me. It also allows things like:

  git rev-list --objects $blob..$tree

which I cannot see anybody actually wanting, but it somehow seems simpler to me to say "A..B" is syntactic sugar for "^B A", without qualifying "except that A and B must be commit-ishes".

-Peff
Previous: Junio C Hamano
Message 14 of 14 in “breakage in revision traversal with pathspec”
  1. Junio C HamanoSep 10, 2013
  2. Kevin BraceySep 10, 2013
  3. Junio C HamanoSep 10, 2013
  4. Kevin BraceySep 11, 2013
  5. Jonathan NiederSep 11, 2013
  6. Junio C HamanoSep 11, 2013
  7. Kevin BraceySep 11, 2013
  8. Junio C HamanoSep 11, 2013
  9. Junio C HamanoSep 19, 2013
  10. Jeff KingSep 20, 2013
  11. Junio C HamanoSep 20, 2013
  12. Jeff KingSep 20, 2013
  13. Junio C HamanoSep 20, 2013
  14. Jeff KingSep 25, 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.