LibTerm icon indicating copy to clipboard operation
LibTerm copied to clipboard

Not sure if git command is possible to integrated?

Open xycui opened this issue 6 years ago • 19 comments

I think your app is really powerful enough now. Just wondering do u have any plan. Or if it is possible to integrate git command in your sand box environment. :)

xycui avatar Mar 15 '19 20:03 xycui

The sandbox shouldn't disallow running git, but that would be very hard to compile for iOS (I tried some time ago). There is a cross platform library for doing Git: libgit2, but as I understand, this is a rewrite of Git, and so there is no command line program. We can leave this issue open until I integrate Git, but I don't think I will manage to do it ;(

ColdGrub1384 avatar Mar 15 '19 22:03 ColdGrub1384

Hi,but how I can clone repo from github?

ohhayley avatar Mar 22 '19 07:03 ohhayley

Maybe you could take a look at dulwich for a pure-python implementation for git. It is not a full solution though, as a frontend still needs to be written.

ongyx avatar Aug 13 '19 14:08 ongyx

Could the new Clang feature of LibTerm help for this?

Or we could manually implement the command line interface for dulwich or libgit2

dullbananas avatar Nov 01 '19 02:11 dullbananas

Libterm’s clang can’t compile C/C++ source into binary executables, as shown with the help compiling command:

Code cannot be compiled as an executable binary but has to be compiled into LLVM Intermediate Representation (LLVM IR).

However, I am not sure if LLVM IR supports all features of C/C++ code. My point is even if libgit2 can compile successfully, it may not run as expected without patches specifically for Libterm. Then again, it would be easier to use dulwich as Python is generally more portable across platforms.

ongyx avatar Nov 01 '19 03:11 ongyx

Is anyone working on implementing Git? If not, I'll work on a Python implementation of a Git command line interface

dullbananas avatar Nov 04 '19 01:11 dullbananas

I have already started working on it

dullbananas avatar Nov 04 '19 22:11 dullbananas

It will be called "gut"

dullbananas avatar Nov 05 '19 00:11 dullbananas

It will be called "gut"

It would not be very hard to map Dulwich’s various functions to a command-line interface (i.e using the click package).

ongyx avatar Nov 05 '19 11:11 ongyx

Actually I'll just call it git

dullbananas avatar Nov 07 '19 00:11 dullbananas

How do I install dulwich in LibTerm?

dullbananas avatar Nov 07 '19 02:11 dullbananas

Actually, I have a pythonanywhere.com account, so I could install it there with --global-option="--pure" and download the package folder to LibTerm

dullbananas avatar Nov 07 '19 02:11 dullbananas

So basically, the zip file will contain both git.py and the dulwich package.

dullbananas avatar Nov 07 '19 22:11 dullbananas

I now have it running in LibTerm:

EB6C3F38-4058-4BD3-A6B7-C36BA9E098DC

dullbananas avatar Nov 08 '19 02:11 dullbananas

So far I have added these commands:

add
clone
commit
status

I am now working on the push command, and I am having this problem.

dullbananas avatar Nov 09 '19 18:11 dullbananas

Is it possible to run phoneinfoga on libterm? Because cant install pip3? Thanks newbie here

rhyxoduzz avatar Nov 19 '19 16:11 rhyxoduzz

I have no longer been working on my Git implementation. The repo is now public at https://github.com/dullbananas/libterm-git. There might be changes that I have not pushed yet.

dullbananas avatar Dec 27 '19 04:12 dullbananas

Is it possible to run phoneinfoga on libterm? Because cant install pip3? Thanks newbie here

Make a separate issue for that.

dullbananas avatar Dec 27 '19 04:12 dullbananas

Actually, dulwich has a very barebones dulwich command which approximates Git, mainly used for testing.

ongyx avatar Jun 17 '20 08:06 ongyx