-
-
Notifications
You must be signed in to change notification settings - Fork 934
How to use git command 'git log -p' with GitPython #157
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
Comments
someone can help me ? |
git-python usually calls the git command and parses its output for easy consumption by a python program. However, the respective functionality is implemented only for a small subset of commands. In your case, you should be able to read all the output with something like this r = git.Repo('.')
r.git.log(p=True) Now it's up to you to make sense of the returned string. |
Think you for your help!
Traceback (most recent call last): |
Did you install git-python ? If so, please make sure it is in your PATH. |
yes. if not install ,the program will print error no module for git |
I checked it now ,i has been install this module. |
Think you very much ,Byron! find in line 55:Provide the full path to the git executable. Otherwise it assumes git is in the path
I think may be this module use cmd open git do command , but couldn't find the Git program.so raise error. |
add the |
I need use GitPython to do one command, the look like git command " git log -p".
I read the tutorial but I still don't know how to do it .
I use the command master.log() ,but couldn't return what the program changed.
The text was updated successfully, but these errors were encountered: