sakrejda / protostan

Thin protobuf interface wrapper for Stan
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Remove protobuf source from repository (or whatever is making cloning slow) #39

Closed ariddell closed 8 years ago

ariddell commented 8 years ago

Protostan should be very fast to clone (without submodules). Not sure how best to fix this. It should be fixed though.

sakrejda commented 8 years ago

The git call for removing everything matching PATTERN is something like:

git filter-branch --force --index-filter \
    'git rm --cached --ignore-unmatch PATTERN' \
      --prune-empty --tag-name-filter cat -- --all

There's another snippet that you can call to get a sorted list of big objects/etc.... so it takes a little while to figure out what's responsible. I can look into it in a few days if you don't get to it...

sakrejda commented 8 years ago

It'll screw up branches but I think the changes can be done on develop and merged back into branches. It's not like we have a lot of people using this at the moment.

ariddell commented 8 years ago

I think it'll speed up testing a lot. I wouldn't mind if you just reset history after you merge your branches.

sakrejda commented 8 years ago

I did this locally and I think I got it right... it's surprisingly hard to flush out all the packed files.

ariddell commented 8 years ago

ok! Feel free to force push.

sakrejda commented 8 years ago

I'm going to finish the writers branch before I do this. Working on it now...

sakrejda commented 8 years ago

Done.