gitpoint / git-point

GitHub in your pocket :iphone:
https://gitpoint.co/
MIT License
4.73k stars 791 forks source link

Allow for editing code #14

Open housseindjirdeh opened 7 years ago

housseindjirdeh commented 7 years ago

Something I've been thinking about adding for some time: editing and updating files in a repo. Still not 100% sure how exactly we would do this but opening this issue for discussion/tracking.

0xjjpa commented 7 years ago

There are a few ways to go with this, one of them would be to create an adapter of libgit2, allow gitpoint to clone a repo and perform git operations directly to the code base from the device.

An easier approach would be to use the Contents API from Github.

Both solutions would need to then identify the contents of the file, and through some sort of editor (maybe a code-editing modification of draft.js), load the contents and create a new patch with any changes.

Rexogamer commented 5 years ago

I support this idea. Most apps either don’t let you edit or block pushing to Github behind a paywall