[TYPO3-core] Git Experts: Fix amnesia?
Aske Ertmann
aske at moc.net
Wed Oct 17 10:44:27 CEST 2012
Hello
Before you start doing all this I would like to point out that there's an option called --follow for git log, which "Continue listing the history of a file beyond renames (works only for a single file).". Meaning that if you need the whole history of a file simply use git log -p --follow filepath..
It's a shame this isn't default behavior for Git IMO, but at least it's possible without all the hassle.
Aske
On 17/10/2012, at 10.22, Helmut Hummel wrote:
> Hi,
>
> what I learned from using Git is that nearly anything is possible.
> Now I have a challenging problem I'd like to discuss.
>
> When moving to namespaces, we moved and at the same time changed files in our master branch.
>
> With doing both we lost our complete history of the newly renamed files.
>
> That is really a pity and if possible I want to fix that.
>
> I have two ideas how we can manage to do that.
>
> 1. Rewrite the history of the *remote* repo
> 2. a) Change the content of the original files with their current
> content
> b) Remove the new files
> c) Move the "old" files to their new location
> d) Add the dummy files in the old location.
>
> The first one would have the downside, that we would void all cloned repos out there, but we would have a clean repo again.
>
> The second one should work, but is of course a lot of work. We should only do that if we can do it with a script.
>
> So the questions are:
>
> Is it worth fixing this history loss?
> Can someone put effort on this task?
>
> Kind regards,
> Helmut
>
> --
> Helmut Hummel
> Release Manager TYPO3 6.0
> TYPO3 Core Developer, TYPO3 Security Team Member
>
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core
More information about the TYPO3-team-core
mailing list