acoomans / ACCodeSnippetRepositoryPlugin

A plugin for Xcode to synchronize code snippets with repositories
MIT License
330 stars 54 forks source link

Add a "Read-Only" option for remote url #5

Open Buju77 opened 10 years ago

Buju77 commented 10 years ago

Hi,

could you please add a "read-only" option when forking/fetching snippets from a git url.

So basically a read-only plugin xcode will only do a git pull and download/sync the snippets from remote url, but never push local snippet changes to remote. This is to reduce possible errors in a working environment with multiple developers by eg. accidentally deleting a snippet.

Idea is, that only 1 person (who has write access) can push changes to the snippet repo and multiple users can only read/fetch snippets from it.

Thanks a lot

acoomans commented 10 years ago

The plugin was originally supposed to include a "read-only" feature (as well as other cool features like multiple data stores by the way). Unfortunately, synchronising in general is more complex than it seems. That's why some features were implemented but didn't make it in master (there's a branch _experimental-multiplestores if you are interested to have a look -- but beware it's buggy).