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:09:58 +0200 |
commit | 7dcb07947cd71f47b5e2e5f101d289e263506ca9 (patch) | |
tree | 0919e03e08db0edd1e1698a0249c3e15241f6e7a /doc | |
parent | 1ddf05a78475a194ed1aa082d26b3d27ecc77475 (diff) | |
download | gitpython-7dcb07947cd71f47b5e2e5f101d289e263506ca9.tar.gz |
Implemented GIT_PYTHON_GIT_EXECUTABLE including test and docs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/changes.rst | 8 | ||||
-rw-r--r-- | doc/source/tutorial.rst | 14 |
2 files changed, 20 insertions, 2 deletions
diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 587e7c0d..c5a7319b 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -7,7 +7,9 @@ Changelog * **git** command wrapper * Added ``version_info`` property which returns a tuple of integers representing the installed git version. - + + * 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. + * **Blob** Type * Added mode constants to ease the manual creation of blobs @@ -21,7 +23,9 @@ Changelog * Configuration file parsing is more robust. It should now be able to handle everything that the git command can parse as well. * The progress parsing was updated to support git 1.7.0.3 and newer. Previously progress was not enabled for the git command or only worked with ssh in case of older git versions. * Parsing of tags was improved. Previously some parts of the name could not be parsed properly. - * The rev-parse pure python implementation now handles branches correctly if they look like hexadecimal sha's. + * The rev-parse pure python implementation now handles branches correctly if they look like hexadecimal sha's. + * 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. 0.3.1 Beta 2 diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index a9a3f81d..c176ed0c 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -427,6 +427,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 ... ***************** |