Skip to content
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 Git as a command #56

Open
msdrigg opened this issue May 12, 2020 · 6 comments
Open

Add Git as a command #56

msdrigg opened this issue May 12, 2020 · 6 comments

Comments

@msdrigg
Copy link

msdrigg commented May 12, 2020

Is it possible to add a git command. This may have been addressed in a previous issue, but git commands would greatly improve functionality

@suliveevil
Copy link

+1

@dmitshur
Copy link

dmitshur commented Jun 7, 2020

This seems to be a duplicate of issues #10 and #24.

There is also some useful information about why git hasn't already been added in https://github.com/holzschu/ios_system#adding-more-commands.

@personalizedrefrigerator
Copy link
Contributor

personalizedrefrigerator commented Aug 5, 2020

You could try using Dulwich, a pure-python implementation of Git (see comment by @goerz in one of the linked issues).

Per its README, it can be installed through pip install dulwich --global-option="--pure" for pure-python implementation. Unfortunately, however, attempts to run dulwich directly from the command-line seem to fail.

As such, you may want to put a file with contents similar to this in your Documents/bin directory:

#!python 
from dulwich.cli import main
import sys

if __name__ == "__main__":
    main(sys.argv[1:]) 

Also, it seems Dulwich is licensed under the Apache license. Is this compatible with the App Store? I would love to see a git-equivalent command command added to a-Shell.

Note, however, for my repositories, the commit command fails, explaining that it cannot find the pre-commit hook. Cloning, however, seems to work.

@samermurad
Copy link

I don't know if the maintainers are interested but we could technically "build" the git support using this lib:
https://github.com/libgit2/objective-git

@holzschu
Copy link
Owner

holzschu commented Sep 5, 2020

Okay, now that is interesting. I'll have a look.

@samermurad
Copy link

@holzschu let me know if you you need any help:) I'll need to study the materials first, but I'd be happy to help if I can, I'd really benefit from a-Shell having git.
I'm not willing to use WorkingCopy 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants