Re: An alternate model for preparing partial commits
- From
Stephen R. van den Berg <srb@cuci.nl>
- Date
- Jun 28, 2008, 09:30 UTC
- Message-ID
- <20080628093028.GA26745@cuci.nl>
David Jeske wrote:
>- I could supercede 2-commits with 1, effectively making the bad-commit >disappear in the linear history. Users who already have the history, however, >would be unaffected, because the start/end endpoints are the same.
Superseding does not work in git trees and is a disruptive operation to *all* commits following the point being superseded. Also, superseding preserves the startpoint, but *always* alters the endpoint.
I suggest you take a look at how a git-repository is stored and learn about how the SHA1-hashes interact with the stored repository.
--
Sincerely,
Stephen R. van den Berg.
Heisenberg might have been here.