"Stephen R. van den Berg" <srb@cuci.nl> writes:Unfortunately I think it is more complicated than that. If I understand correctly (please correct me if I am wrong) you meant 'cousin' / 'origin' link to refer only to single commit, and not to the whole history ending with given commit, as it is in the case of 'parent' link. One thing to consider is the fact that git is _snapshot_ based, while cherry-picking is _changeset_ based. When you cherry pick commit B to apply on top of commit A, what you do in fact is to pick (A^..A) or in other syntax (A-A^) change, and apply it on top of A. So cherry picked B, let's denote it by B', is in fact C'=(A-A^). For example having only commit A is not enough to replay cherry-picking. Second, unless such header would be for informational purposes only (there was even proposal to add generic 'note <sth>' informational only header, but it was shot down; see the archives), you would have to do quite a bit of surgery to revision walking code. For example you would have to think about how commits pointed by 'origin' header would be protected against pruning; if you allow to prune parents of grandparents of cherry-picked commits, you would break I think a lot of assumptions in the code, and assumption in git design that if we have commit, then all that it references should be available (well, there are grafts, and there is shallow clone, but those modify reachability...). -- Jakub Narebski Poland ShadeHawk on #git -- 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
| David Miller | Re: Slow DOWN, please!!! |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jan Engelhardt | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
