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

Re: [PATCH] Change 'Deltifying objects' to 'Delta compressing objects'

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 19, 2007, 04:21 UTC
Message-ID
<alpine.LFD.0.999.0710182111030.26902@woody.linux-foundation.org>
In-Reply-To
<20071019035647.GA18717@coredump.intra.peff.net>
On Thu, 18 Oct 2007, Jeff King wrote:
> 
> As for a shortcut notation, what about allowing '..' notation inside a
> reflog. I.e., <ref>@{a..b} is the same as <ref>@{a}..<ref>@{b}? So you
> could perhaps do origin/master@{1..}?

I'd love it, but the way our current SHA1 parser works, I don't think it can really do it.

Basically, we currently assume that a SHA1 expression always expands to a *single* SHA1.

And then, on top of that SHA1 expression parser, we then have a totally separate logic (which is *not* part of the SHA1 expression parser itself) that handles the "a..b" and "a...b" cases.

In other words, all the magic "head@{xyz}" logic is all in sha1_name.c, but that never handles any ranges at all.

And then the range handling is a separate thing in revision.c and builtin-rev-parse.c.

So I think your syntax is wonderful, but it would require moving the complex range handling into sha1_name.c, and would also require that file to get a more complex interface (right now all the sha1_name.c routines just take the "fill in this one SHA1 hash" approach, but ".." and "..." means that you have multiple objects *and* you can mark one of them as being "negated" etc..)

> I'm not sure if there are syntactic issues with parsing out the '..' (or
> '...') operator.

See above: I don't think we have syntax problems per se: it's just that right now the "complex" parser (the one that knows about ^, ~, and @{x} etc) simply cannot do anything but a single SHA1 due to internal interface issues.

		Linus
Previous: Jeff KingNext: Jeff King
Message 19 of 38 in “Change 'Deltifying objects' to 'Delta compressing objects'”
  1. Change 'Deltifying objects' to 'Delta compressing objects'Shawn O. Pearce, Oct 19, 2007
  2. Jeff KingOct 19, 2007
  3. Sam VilainOct 19, 2007
  4. David SymondsOct 19, 2007
  5. Shawn O. PearceOct 19, 2007
  6. Nicolas PitreOct 19, 2007
  7. Jeff KingOct 19, 2007
  8. Sam VilainOct 19, 2007
  9. Jeff KingOct 19, 2007
  10. Shawn O. PearceOct 19, 2007
  11. Jeff KingOct 19, 2007
  12. Shawn O. PearceOct 19, 2007
  13. Nicolas PitreOct 19, 2007
  14. Jeff KingOct 19, 2007
  15. Nicolas PitreOct 19, 2007
  16. Jeff KingOct 19, 2007
  17. Nicolas PitreOct 19, 2007
  18. Jeff KingOct 19, 2007
  19. Linus TorvaldsOct 19, 2007
  20. Jeff KingOct 19, 2007
  21. Nicolas PitreOct 19, 2007
  22. Linus TorvaldsOct 19, 2007
  23. Linus TorvaldsOct 19, 2007
  24. Shawn O. PearceOct 19, 2007
  25. Shawn O. PearceOct 19, 2007
  26. Stop displaying "Pack pack-$ID created." during git-gcShawn O. Pearce, Oct 19, 2007
  27. Nicolas PitreOct 19, 2007
  28. Shawn O. PearceOct 19, 2007
  29. Nicolas PitreOct 19, 2007
  30. Jeff KingOct 19, 2007
  31. Shawn O. PearceOct 19, 2007
  32. Nicolas PitreOct 19, 2007
  33. Wincent ColaiutaOct 19, 2007
  34. Nicolas PitreOct 19, 2007
  35. Jeff KingOct 19, 2007
  36. Nicolas PitreOct 19, 2007
  37. Jeff KingOct 19, 2007
  38. Nicolas PitreOct 19, 2007

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.