dalehenrich / filetree

Monticello repository for directory-based Monticello packages enabling the use of git, svn, etc. for managing Smalltalk source code.
https://github.com/CampSmalltalk/Cypress
MIT License
133 stars 26 forks source link

gitfiletree should allow package renaming #207

Open peteruhnak opened 8 years ago

peteruhnak commented 8 years ago

It is my understanding that allowing package renames (with preserved history) is complex task for regular filetree.

However gitfiletree (metadata-less) takes everything from git, which does understand renames and likewise can show log for the previously named version (git log --follow). Is this doable?

ThierryGoubier commented 8 years ago

Yes and no. Yes, gitfiletree sees renamings when those are tracked by git (exemple, method rename via the method versions API in the repository -- only used by AltBrowser so far), but, once you try to retrieve a version anterior to the renaming, then recovering the method / file name isn't obvious at all. The issue is the same when renaming a package... you know it has been renamed, but you don't know how to fetch a version older than the renaming point because the name has changed.