[MPlayer-dev-eng] git-svn

Clément Bœsch ubitux at gmail.com
Sat Jan 22 21:56:41 CET 2011


On Sat, Jan 22, 2011 at 09:47:14PM +0100, Nicolas George wrote:
> Le tridi 3 pluviôse, an CCXIX, Clément Bœsch a écrit :
> > And use git rebase -i master to move the commit just after [X], and
> > transform it in a "fixup" commit.
> 
> > If you want to make a single big commit, you just squash/fixup them
> > after/before the rebase with git rebase -i.
> 
> The problem with that solution, unless I am mistaken, is that the
> intermediate version of the file completely disappear from the history.

Sure, that's what you wanted. But you can still keep track of the changes
by keeping the dev branch. Also, git reflog is here to help you when you
trash your changes :)

> If it's a typo fix, that's obviously not a problem. But if it is a
> bigger change that may need to be reverted later (say: rewrite a
> function to make it less generic but simpler, and later you realize that
> you needed the more generic version), this means losing the benefit of
> version tracking.
> 

Then in that case you may want to do a merge… But well, I'm not sure I get
what you want :)

-- 
Clément B.


More information about the MPlayer-dev-eng mailing list