Re: Operations on unborn branch
On Tue, Nov 27, 2012 at 11:12 PM, Junio C Hamano wrote: > > You have to special case the edges whichever way you go. [...] If I understand you correctly, you're saying that revision walking would need a different special case. This is the most obvious difference, it seems. "git show" would also need different special-casing. But rebase wouldn't need --root, diff-tree wouldn't need --root, any operations on an unborn branch would just work (incl reset, cherry-pick). Again, this is hypothetical, so I'll stop the complaining now :-) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Operations on unborn branch
Martin von Zweigbergk writes: > On Tue, Nov 27, 2012 at 12:25 PM, Junio C Hamano wrote: >> Martin von Zweigbergk writes: >> >>> simplify a lot of things (maybe I'm biased because of the things I >>> have happened to work on?) >> >> Yes. Do not waste time on it. > > Yes, no way I would waste time on that; I was mostly just curious. You have to special case the edges whichever way you go. You can always add such a fixed parent commit whenever you create a new root commit, but then the codepath that currently relies on the real root commit not having any parent start needing to notice if the parent is the fixed fake commit and exclude it from thee history. Or you can create a new root commit as parent-less like we currently do, and any history examination do not have to special case "ah, I thought there is a parent commit, but that turns out to be the fake one, so I need to ignore it." Creation of a root commit is a one-time operation in any sane history; if we have to have special cases somewhere anyway, it is better to have them in these one-time operation codepaths. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Operations on unborn branch
On Tue, Nov 27, 2012 at 12:25 PM, Junio C Hamano wrote: > Martin von Zweigbergk writes: > >> simplify a lot of things (maybe I'm biased because of the things I >> have happened to work on?) > > Yes. Do not waste time on it. Yes, no way I would waste time on that; I was mostly just curious. What I might spend time on is to fix cherry-pick. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Operations on unborn branch
Martin von Zweigbergk writes: > simplify a lot of things (maybe I'm biased because of the things I > have happened to work on?) Yes. Do not waste time on it. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html