Search code examples
gitvisual-studio-2015tfstfvc

TFVC replicate into local git


I am actually facing a small issue at work. We are using TFVC with a Dev and Prod branches. We only commit changes to the Dev branch once the new feature is finished and fully tested (there's not possibility to have a separate branch per feature, nor to migrate this project to Git).

I need to be able to compare the work i did today with the one from yesterday. There's the shelveset option (via the compare shelveset plugin, but it doesn't work quite well with VS2015).

So the other option I can see is to copy the files flagged as "modifed by" from my workspace into another local git repo, so i can do a daily commit for example.

Any other ideas?

Thanks !


Solution

  • I ended up creating a small script that:

    1. copies the modified files since xx date from my local TFS repo to a local git repo.
    2. Use libgit2sharp to commit the changes
    3. Use GitK to review the history