Johannes Schindelin wrote:No, doesn't help either. We are talking about a case where there is more than one positive ref. We need not consider the -- sub/ case - it makes things just even more complicated. There are two different rev ranges to be considered: # (1) candidate range to be rewritten $ git rev-list "$@" # (2) test if positive ref is in candidate range $ git rev-list $ref $negatives Usually (without -n) (2) is a subset of (1) because (1) has all positive refs and (2) has only one. And the subset is empty iff the positive ref is not in the rewritten range. However, if "$@" (and, hence, $negatives) contains the -n limiter, this is no longer true. Example: (1) is: "rev-list -n 1 A B ^C": we get either A or B, but not both; lets say A. (2A) is: "rev-list -n 1 A ^C": we get A -- good (2B) is: "rev-list -n 1 B ^C": we get B -- ouch! For each positive ref, A, B, we conduct test (2). For A, the test result is correct. But for B it is not. We expect it to tell us that B is not rewritten; but in fact it tells the opposite by returning something instead of nothing. -- Hannes - 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
| Bron Gondwana | BUG: mmapfile/writev spurious zero bytes (x86_64/not i386, bisected, reproducable) |
| Greg Kroah-Hartman | [PATCH 012/196] nozomi driver |
| J.C. Pizarro | Re: linux+glibc memory allocator, poor performance |
| Pavel Roskin | ndiswrapper and GPL-only symbols redux |
git: | |
| Andy Parkins | svn:externals using git submodules |
| Linus Torvalds | Re: fatal: Out of memory, malloc failed |
| Peter Karlsson | RCS keyword expansion |
| Dennis Schridde | Odd number of elements in anonymous hash |
| Jarek Poplawski | [PATCH 00/14]: Killing qdisc->ops->requeue(). |
| jamal | [PATCH 2/3][NET_BATCH] net core use batching |
| Patrick McHardy | pkt_sched: add DRR scheduler |
| Marcel Holtmann | Bluetooth fixes for 2.6.27 |
| Charlie Clark | openbsd fail2ban |
| Hari | DHCP question |
| Richard Stallman | Real men don't attack straw men |
| Nick Guenther | Re: When will OpenBSD support UTF8? |
