On Wed, 11 Apr 2007, Junio C Hamano wrote:Well, not entirely "silly you". If you do a "git reset" in the superproject, that will obviously have to rewrite the heads in the subproject. I do suspect that we should always enable reflogs for the subprojects, so that pruning is safe even for these kinds of situations, but that doesn't resolve all issues. For example: to manage *cloning* of the extra stuff, you might actually want to have externally visible refs, and while I suspect the main solution will always be to just do good maintenance (ie "don't do 'git bisect' and _never_ rewrite history in the main superproject!!"), I don't think it's out of the question to add other safety nets too.. So for example, while I'm not sure it's necessary, I don't think it would be *wrong* if we might eventually end up having *other* safety features like adding a totally separate "refs/superprojects/xyzzy" ref structure. Or something like that.. Just to make the refs more visible both externally and internally, and to make it much harder to make stupid mistakes without realizing it. I suspect a lot of this will depend on just how many mistakes people make. I don't think we've so far had a single problem with alternates files, re-basing, and people then pruning away objects used by other repositories by mistake, so maybe people really don't make those kinds of mistakes. So maybe we don't need any extra safety nets at all. But who knows.. 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
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Christoph Lameter | Re: Major regression on hackbench with SLUB (more numbers) |
| Mike Travis | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Hugh Dickins | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
