Re: how to move with history?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oliver Kullmann
Date: Tuesday, June 19, 2007 - 12:28 pm

Thanks for all the replies!

Now I see pretty clear; a quick summary
(in case somebody else wants to learn from this):

1.

"git mv file new_file" seems to be (exactly?) equivalent to

mv file new_file
git rm file
git add new_file

(Perhaps this information could be added to the git-mv-documentation?
I would have found it useful (since I had a different expectation).)

2. To do something with the history, for example to rename "file"
to "new_file" also in the whole history, a new repository (or
a new branch) has to be created. Three possibilities:
 
 (a) Using the basic git-functionality, re-creating a repository
     by re-creating all commits (with appropriate changes) by "hand"
     or "script".
 (b) More convenient, the upcoming "git-filter-branch" apparently
     makes filtering out easier.
 (c) Or, apparently more powerful, with "cg-admin-rewritehis"
     (part of the cogito-tool) we have quite a powerful tool
     for creating a branch with a (re-created and modified)
     history (the documentation explicitely mentions how to
     remove a file from history --- that is, in the new branch).

Hope that's correct.

Thanks a lot to all!

Oliver


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
how to move with history?, Oliver Kullmann, (Mon Jun 18, 12:16 pm)
Re: how to move with history?, Alex Riesen, (Mon Jun 18, 12:49 pm)
Re: how to move with history?, Oliver Kullmann, (Mon Jun 18, 1:29 pm)
Re: how to move with history?, J. Bruce Fields, (Mon Jun 18, 1:31 pm)
Re: how to move with history?, Frank Lichtenheld, (Mon Jun 18, 1:36 pm)
Re: how to move with history?, Robin Rosenberg, (Mon Jun 18, 1:43 pm)
Re: how to move with history?, Alex Riesen, (Mon Jun 18, 2:07 pm)
Re: how to move with history?, Oliver Kullmann, (Tue Jun 19, 12:28 pm)