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: README.md
+32-14
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,28 @@
1
1
## GitPython
2
2
3
-
GitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing.
3
+
GitPython is a python library used to interact with git repositories, high-level like git-porcelain,
4
+
or low-level like git-plumbing.
4
5
5
-
It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using either a pure python implementation, or the faster, but more resource intensive git command implementation.
6
+
It provides abstractions of git objects for easy access of repository data, and additionally
7
+
allows you to access the git repository more directly using either a pure python implementation,
8
+
or the faster, but more resource intensive *git command* implementation.
6
9
7
-
The object database implementation is optimized for handling large quantities of objects and large datasets, which is achieved by using low-level structures and data streaming.
10
+
The object database implementation is optimized for handling large quantities of objects and large datasets,
11
+
which is achieved by using low-level structures and data streaming.
8
12
9
13
10
14
### REQUIREMENTS
11
15
12
-
GitPython needs the `git` executable to be installed on the system and available in your `PATH` for most operations. If it is not in your `PATH`, you can help GitPython find it by setting the `GIT_PYTHON_GIT_EXECUTABLE=<path/to/git>` environment variable.
16
+
GitPython needs the `git` executable to be installed on the system and available
17
+
in your `PATH` for most operations.
18
+
If it is not in your `PATH`, you can help GitPython find it by setting
19
+
the `GIT_PYTHON_GIT_EXECUTABLE=<path/to/git>` environment variable.
13
20
14
21
* Git (1.7.x or newer)
15
22
* Python 2.7 to 3.5, while python 2.6 is supported on a *best-effort basis*.
16
23
17
-
The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`. The installer takes care of installing them for you.
24
+
The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`.
25
+
The installer takes care of installing them for you.
18
26
19
27
### INSTALL
20
28
@@ -31,7 +39,7 @@ Both commands will install the required package dependencies.
31
39
A distribution package can be obtained for manual installation at:
32
40
33
41
http://pypi.python.org/pypi/GitPython
34
-
42
+
35
43
If you like to clone from source, you can do it like so:
GitPython is not suited for long-running processes (like daemons) as it tends to
48
-
leak system resources. It was written in a time where destructors (as implemented
56
+
leak system resources. It was written in a time where destructors (as implemented
49
57
in the `__del__` method) still ran deterministically.
50
58
51
59
In case you still want to use it in such a context, you will want to search the
@@ -61,17 +69,25 @@ as they are kept alive solely by their users, or not.
61
69
62
70
### RUNNING TESTS
63
71
64
-
*Important*: Right after cloning this repository, please be sure to have executed the `init-tests-after-clone.sh` script in the repository root. Otherwise you will encounter test failures.
72
+
*Important*: Right after cloning this repository, please be sure to have executed
73
+
the `./init-tests-after-clone.sh` script in the repository root. Otherwise
74
+
you will encounter test failures.
75
+
76
+
On *Windows*, make sure you have `git-daemon` in your PATH. For MINGW-git, the `git-daemon.exe`
77
+
exists in `Git\mingw64\libexec\git-core\`; CYGWIN has no daemon, but should get along fine
78
+
with MINGW's.
65
79
66
-
The easiest way to run test is by using [tox](https://pypi.python.org/pypi/tox) a wrapper around virtualenv. It will take care of setting up environnements with the proper dependencies installed and execute test commands. To install it simply:
80
+
The easiest way to run tests is by using [tox](https://pypi.python.org/pypi/tox)
81
+
a wrapper around virtualenv. It will take care of setting up environnements with the proper
82
+
dependencies installed and execute test commands. To install it simply:
67
83
68
84
pip install tox
69
85
70
86
Then run:
71
87
72
88
tox
73
-
74
-
89
+
90
+
75
91
For more fine-grained control, you can use `nose`.
76
92
77
93
### Contributions
@@ -84,7 +100,8 @@ Please have a look at the [contributions file][contributing].
84
100
*[Questions and Answers](http://stackexchange.com/filters/167317/gitpython)
85
101
* Please post on stackoverflow and use the `gitpython` tag
* Post reproducible bugs and feature requests as a new issue. Please be sure to provide the following information if posting bugs:
103
+
* Post reproducible bugs and feature requests as a new issue.
104
+
Please be sure to provide the following information if posting bugs:
88
105
* GitPython version (e.g. `import git; git.__version__`)
89
106
* Python version (e.g. `python --version`)
90
107
* The encountered stack-trace, if applicable
@@ -100,7 +117,7 @@ Please have a look at the [contributions file][contributing].
100
117
* Finally, set the upcoming version in the `VERSION` file, usually be
101
118
incrementing the patch level, and possibly by appending `-dev`. Probably you
102
119
want to `git push` once more.
103
-
120
+
104
121
### LICENSE
105
122
106
123
New BSD License. See the LICENSE file.
@@ -113,7 +130,8 @@ New BSD License. See the LICENSE file.
113
130
[](https://waffle.io/gitpython-developers/GitPython)
0 commit comments