Nicolas Pitre wrote:Well, the important properties of the name/field would be: - It should be as specific as possible, in order to minimise the potential for abuse in the future. I distill the desirability of this requirement out of the various earlier discussions about commitheaders in the past on this mailinglist held by others. - It should convey a sense of direction (it's a directed graph). Any generic may-be-related-to field is therefore probably a non-starter. The origin field as currently proposed tightens the requirements that it either is dangling and ignored or points to a commit. rev-list --topo-order should use the origin links to order the output. gc/prune won't delete commits referenced *by* an origin link. The only two other arguments one might give to actually keep the field in the header of the commit as opposed to the trailer is that the physical field can be kept machine readable, and the actual display can be beautified like: Origin: 2abcdef..1234567 The output of the field could be suppressed (if so desired) if the target commit isn't reachable. All this is of course possible for a trailer field in the free-form area as well, but it seems a bit silly to have two places for "headers". True. Then again, I don't want to be bothered by stupid free-form origin links made to local branches by a developer. If the developer creates them using cherry-pick -o which creates an origin link, I'll never have to see his silly commit hashes where he is referring to commits in his local branch (and never waste time wondering where those commits are). The free-form equivalent looks like: Origin: df85f7855da44c730f942b330ada181209d09d7a ff1e8bfcd69e5e0ee1a3167e80ef75b611f72123 You need a pair of hashes, which is, a bit bulky, for my taste. What special graft file would I need to visualise? Isn't having the origin link information enough? You lost me here somewhere. Could you give a concrete example with one commit, one origin link (your style) and a special graftfile entry? Erm. Quite the opposite, actually. The practical use for the origin link in case the target is unreachable is zero to none, so it can gleefully be ignored in that case. But maybe the semantics of your "related" link and my origin link are sufficiently distinct. For the arguments why it should be in the header of a commit, see above. Agreed. But this is in reference to your "related" link proposal. -- Sincerely, Stephen R. van den Berg. "There are three types of people in the world; those who can count, and those who can't." -- 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
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Adrian Bunk | Re: LSM conversion to static interface |
git: | |
| Gerrit Renker | [PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set... |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
| Linus Torvalds | Re: [GIT]: Networking |
