You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/changes.rst
+6-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ Changelog
7
7
* **git** command wrapper
8
8
9
9
* Added ``version_info`` property which returns a tuple of integers representing the installed git version.
10
-
10
+
11
+
* 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.
12
+
11
13
* **Blob** Type
12
14
13
15
* Added mode constants to ease the manual creation of blobs
@@ -21,7 +23,9 @@ Changelog
21
23
* Configuration file parsing is more robust. It should now be able to handle everything that the git command can parse as well.
22
24
* 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.
23
25
* Parsing of tags was improved. Previously some parts of the name could not be parsed properly.
24
-
* The rev-parse pure python implementation now handles branches correctly if they look like hexadecimal sha's.
26
+
* The rev-parse pure python implementation now handles branches correctly if they look like hexadecimal sha's.
27
+
* GIT_PYTHON_TRACE is now set on class level of the Git type, previously it was a module level global variable.
28
+
* GIT_PYTHON_GIT_EXECUTABLE is a class level variable as well.
Copy file name to clipboardExpand all lines: doc/source/tutorial.rst
+14
Original file line number
Diff line number
Diff line change
@@ -427,6 +427,20 @@ The special notion ``git.command(flag=True)`` will create a flag without value l
427
427
428
428
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.
429
429
430
+
Git Command Debugging and Customization
431
+
***************************************
432
+
433
+
Using environment variables, you can further adjust the behaviour of the git command.
434
+
435
+
* **GIT_PYTHON_TRACE**
436
+
437
+
* If set to non-0, all executed git commands will be printed to stdout.
438
+
* if set to *full*, the executed git command will be printed along with its output.
439
+
440
+
* **GIT_PYTHON_GIT_EXECUTABLE**
441
+
442
+
* 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.
0 commit comments