Re: [PATCH] technical doc: add a design doc for the evolve command
- From
- Phillip Wood <phillip.wood@talktalk.net>
- Date
- Nov 20, 2018, 13:03 UTC
- Message-ID
- <d77c4aa6-be5e-a6fe-1d43-6cfa28161ae1@talktalk.net>
- In-Reply-To
- <20181115005546.212538-1-sxenos@google.com>
On 15/11/2018 00:55, sxenos@google.com wrote:
Show 14 quoted lines
> From: Stefan Xenos <sxenos@google.com> > > +Obsolescence across cherry-picks > +-------------------------------- > +By default the evolve command will treat cherry-picks and squash merges as being > +completely separate from the original. Further amendments to the original commit > +will have no effect on the cherry-picked copy. However, this behavior may not be > +desirable in all circumstances. > + > +The evolve command may at some point support an option to look for cases where > +the source of a cherry-pick or squash merge has itself been amended, and > +automatically apply that same change to the cherry-picked copy. In such cases, > +it would traverse origin edges rather than ignoring them, and would treat a > +commit with origin edges as being obsolete if any of its origins were obsolete.
If a merge has been cherry-picked we cannot update it as we don't record which parent was used for the pick, however it is probably not a problem in practice - I think it is unusual to amend merges.
Best Wishes
Phillip