Re: [RFC] origin link for cherry-pick and revert
- From
Stephen R. van den Berg <srb@cuci.nl>
- Date
- Sep 11, 2008, 19:44 UTC
- Message-ID
- <20080911194447.GD1451@cuci.nl>
- In-Reply-To
- <alpine.LFD.1.10.0809111527030.23787@xanadu.home>
Nicolas Pitre wrote:
Show 6 quoted lines
>On Thu, 11 Sep 2008, Stephen R. van den Berg wrote: >> Not quite. Obviously all parents of p and p^ will continue to exist. >> I.e. deleting branch B will cause all commits from p till the tip of B >> (except p itself) to vanish. Keeping p implies that the whole chain of >> parents below p will continue to exist and be reachable. That's the way >> a git repository works.
Show 5 quoted lines
>And that's what I called stupid in my earlier reply to you. Either you >have proper branches or tags keeping P around, or deleting B brings >everything not reachable through other branches or tags (or reflog) >away too. Otherwise there is no point making a dangling origin link >valid.
Well, the principle of least surprise dictates that they should be kept by gc as described above, however... I can envision an option to gc say "--drop-weak-links" which does exactly what you describe.
--
Sincerely,
Stephen R. van den Berg.
"There are three types of people in the world;
those who can count, and those who can't."