On Fri, 30 Jun 2006, Junio C Hamano wrote:I actually don't think that expression makes any sense. $(merge-base A B)..B as an expression only makes sense if there is a single point of forking, and no contact apart from that. In that case, what you suggest makes sense, because doing git diff A...B is exactly what you want. HOWEVER. If there has been any other merges in between (but they aren't merge-bases because either branch _also_ did other things), your A...B expression is meaningless, I think. To do a diff in that case, you really need to do my "merge+diff" thing, and no amount of "A...B" expressions on a commit relationship level can be meaningful. Now, the expression A...B == B...A == A B --not $(git-merge-base --all A B) is meaningful (and the one I want for merges), but it's largely useless for anything else. It just means "the set of all commits that aren't trivially in both" (it's not strictly a valid set operation, but it approaches being an "xor" instead of a union or an intersection or a difference). But the above isn't useful for "git diff" and friends any more, it's mainly just for merging. 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
| Glauber de Oliveira Costa | [PATCH 5/25] [PATCH] native versions for system.h functions |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Robert Hancock | Re: Disk spin down issue on shut down/suspend to disk |
git: | |
| David Kastrup | Empty directories... |
| Sean | Re: git and time |
| Martin Langhoff | Re: [PATCH 4/5] Overhaul of changeset application |
| Michael Witten | Re: Proposed git mv behavioral change |
| Bertram Scharpf | First install: Grub doesn't find partitions |
| Richard Stallman | Real men don't attack straw men |
| Tony Abernethy | Re: Important OpenBSD errata |
| Nuno Magalhães | Does CUPS depend on X?! [oB newbie] |
| hooanon05 | [PATCH 62/67] aufs magic sysrq handler |
| Avi Kivity | Re: [RFC] VM: I have a dream... |
| Alasdair G Kergon | Re: [dm-devel] Re: [PATCH 3/3] Add timeout feature |
| Miklos Szeredi | [PATCH] update ctime and mtime for mmaped write |
