-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add a git client #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a git client #408
Conversation
Cant wait... I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it, I want it,, I want it, I JUST WANT IT |
Yes, this is by far my number 1 request for puter. |
4ac9fe1
to
686eacd
Compare
The in-progress git client also needs to use this. puter-js-common uses commonjs modules, so it had to be adjusted for that.
Specifically, this makes the Puter->PosixError conversion available to the in-progress git client.
This matches the behaviour of Node.JS's errors, and some libraries expect it.
It does nothing but output a message to the console.
90426ed
to
28f72cd
Compare
Each subcommand is its own file, modeled after Phoenix's coreutils.
This is quite barebones for now. Commit formatting is done in a separate file, as this is used by other git commands, such as `show`.
This is also basic: git config key # To read a value git config key value # To set a value git config --unset key # To delete a value As noted, --list is not possible to implement currently.
I think this is in a decent enough state to be worth reviewing. A couple of things that have come up:
There's some further work in #418 but CORS is not my friend so that has not gone anywhere yet. |
Builds on #413.
A git app, that can be run inside Puter's terminal.
This is limited to the following commands, which are all implemented to some extent:
git help
git version
git init
git status
git add
git commit
git log
git config
git show
It still lacks: