Re: git is live
Steinar Bang <[email protected]>
| Newsgroups | gmane.comp.gdb.devel,gmane.comp.gnu.binutils |
|---|---|
| Message-ID | <[email protected]> |
>>>>> Andreas Schwab <[email protected]>: > Pedro Alves <[email protected]> writes: >> Yeah. Oh well, not a show stopper. Maybe I'll find a way to tell >> git to treat a range of commits as a single commit for blame/log >> purposes, so that "git blame" punches through that hole. > You can do that with grafts or replace objects (which can change your > view of the commit graph by pretending that a commit has a different > parent). A blog article on git replace here (by the "Pro git" author): http://git-scm.com/blog/2010/03/17/replace.html In short: in a "git rewrite", there will be a file created, that has the sha1 of the original commit as its name, and the sha1 of a new commit that should be used instead, as its content.