On Thu, 18 Oct 2007, Jeff King wrote: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..) 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 - 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
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Con Kolivas | Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler |
| David Miller | [GIT]: Networking |
| Alan Stern | Re: [linux-pm] Re: Hibernation considerations |
git: | |
| Junio C Hamano | Re: git-diff on touched files: bug or feature? |
| Johannes Schindelin | Re: MinGW port - initial work uploaded |
| Kay Sievers | Re: Rss produced by git is not valid xml? |
| Marek Zawirski | [EGIT PATCH 00/31] Push GUI, GUI improvements, various jgit stuff |
| frantisek holop | nptd regression in 4.2 |
| Thilo Pfennig | OpenBSD project goals |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Richard Stallman | Real men don't attack straw men |
| Julius Volz | [PATCHv3 00/24] Add first IPv6 support to IPVS |
| Paul Moore | [RFC PATCH v4 01/14] netlabel: Remove unneeded in-kernel API functions |
| David Miller | Re: [PATCH net-2.6.25 1/10][NETNS][FRAGS]: Move ctl tables around. |
| Wenji Wu | Re: RE: A Linux TCP SACK Question |
