diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-05 22:09:58 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-05 22:27:01 +0200 |
commit | f1a2a4c611bc1f27bd1b63c26847ea74e18caddc (patch) | |
tree | d8ea4c9c347a029fd1318ef2599c29c9e227a0a8 /doc/source | |
parent | 6507e4e14337a929d4f3986a90efd8674d963a3f (diff) | |
download | gitpython-f1a2a4c611bc1f27bd1b63c26847ea74e18caddc.tar.gz |
Implemented GIT_PYTHON_GIT_EXECUTABLE including test and docs
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/changes.rst | 3 | ||||
-rw-r--r-- | doc/source/tutorial.rst | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 5564cfd7..ad0f2530 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -27,6 +27,9 @@ NEXT * ### Git Cmd ### * Added ``version_info`` property to git command, returning a tuple of version numbers. + * Added GIT_PYTHON_GIT_EXECUTABLE environment variable, which can be used to set the desired git executable to be used. despite of what would be found in the path. + * GIT_PYTHON_TRACE is now set on class level of the Git type, previously it was a module level global variable. + * GIT_PYTHON_GIT_EXECUTABLE is a class level variable as well. * ### Exceptions ### diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index 5530cedd..4dcfad4a 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -412,6 +412,20 @@ The special notion ``git.command(flag=True)`` will create a flag without value l If ``None`` is found in the arguments, it will be dropped silently. Lists and tuples passed as arguments will be unpacked recursively to individual arguments. Objects are converted to strings using the str(...) function. +Git Command Debugging and Customization +*************************************** + +Using environment variables, you can further adjust the behaviour of the git command. + +* **GIT_PYTHON_TRACE** + + * If set to non-0, all executed git commands will be printed to stdout. + * if set to *full*, the executed git command will be printed along with its output. + +* **GIT_PYTHON_GIT_EXECUTABLE** + + * If set, it should contain the full path to the git executable, e.g. *c:\\Program Files (x86)\\Git\\bin\\git.exe* on windows or */usr/bin/git* on linux. + And even more ... ***************** |