Git integration using git-remote-helper#15
Conversation
…king on cloning, bugged
…g .gitignore when pushing file to overleaf.
…rojectInfo, required for deleting files
|
Thanks Valentin — this is a much better direction than the real-time daemon idea I closed in #6. Two things before I review properly:
Some smaller things I'll flag in a real review pass once we're on the same base:
Don't take any of that as blockers, just thinking ahead. Happy to discuss the design in this thread, on a draft issue, or via email — whichever works for you. Either way, please keep going. This is a real contribution and exactly the kind of integration olcli should support. |
|
Hello,
I don't know what method of communications are common are usually used. It is my first time contributing to a project. |
Changed architecture to use a class rather than functions, clearer code
…s with pull, push, merging, more features to come
Added browser pop up for login with auto cookie retrieval + auto detect outdated cookies. Added new static method in client for client creation using the new baseUrl, cookie architecture. getClient is still in use in cli and has been moved back to cli.ts.
removal of verifySession, as it is not working as intended
|
Hi again, I added all the features I thought of as of now. They include :
A feature that I would like to add is simultaneaous upload to a git repo, e.g. github, gitlab, etc. If you think of any other features don't hesitate. Concerning the e2e tests. I don't think they are that usefull, most problems occurs with synchronisation problem when editing both locally and on the browser. I can't think of any practical way to automize that. Best regards, |
Hello,
This pull contains the first drafts of work to delete files when running
olcli psuh.The git integration mitigates most synchronization issues. Its still in Beta but should be good to go in most situations.
The commits made for version 0.1.8 were messing up the getProjectInfo, it works only with the websockets request, which seem to have been removed in 0.1.8....
It supports cloning using the url ( currently only https://overleaf.com is supported ), pulling and pushing.
When cloning use
git clone overleaf::<url>.I plan to add other features in the future like pushing to a git repo in parallel.
Feel free to contact me by email at valentin@barbaza.org if you have any questions.
The getClient function was moved to the client.ts.
Built with the help of Gemini (free).