Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid taking a lock for readingindex-no-read-lock | Sebastian Thiel | 2022-01-07 | 2 | -15/+2 |
| | | | | | | | This isn't needed as git will replace this file atomicially, hence we always see a fully written file when reading. Only when writing we need to obtain a lock. | ||||
* | Extend IterableList[PushInfo] instead of IterableList | Sjoerd Langkemper | 2021-11-13 | 1 | -17/+16 |
| | |||||
* | Specify type for PushInfoList.error | Sjoerd Langkemper | 2021-11-13 | 1 | -1/+1 |
| | |||||
* | Fix type handing on PushInfoList | Sjoerd Langkemper | 2021-11-13 | 1 | -3/+4 |
| | |||||
* | Rename exception to error, raise_on_error to raise_if_error | Sjoerd Langkemper | 2021-11-13 | 1 | -5/+5 |
| | |||||
* | Let remote.push return a PushInfoList | Sjoerd Langkemper | 2021-11-13 | 1 | -3/+20 |
| | | | | | | | List-like, so that it's backward compatible. But it has a new method raise_on_error, that throws an exception if anything failed to push. Related to #621 | ||||
* | Revert "Replace wildcard imports with concrete imports" | Trym Bremnes | 2021-10-03 | 5 | -27/+28 |
| | | | | | | | | | | | This reverts commit 53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5. The reason for the revert is that the commit in question introduced a regression where certain modules, functions and classes that were exposed before were no longer exposed. See https://github.com/gitpython-developers/GitPython/pull/1352#issuecomment-932757204 for additional information. | ||||
* | Replace wildcard imports with concrete imports | Trym Bremnes | 2021-10-01 | 5 | -28/+27 |
| | | | | | | | All `from <module> import *` has now been replaced by `from <module> import X, Y, ...`. Contributes to #1349 | ||||
* | Fix typing issues with delete_head and Remote.add | Russ Allbery | 2021-09-20 | 4 | -4/+11 |
| | | | | | | | | | | | | | | delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. This unfortunately requires suppressing type warnings in the signature of RemoteReference.delete, since it inherits from Head but does not accept str (since it needs access to the richer data of RemoteReference). Using assignment to make add an alias for create unfortunately confuses mypy, since it loses track of the fact that it's a classmethod and starts treating it like a staticmethod. Replace with a stub wrapper instead. | ||||
* | Add a way to force status codes inside AutoInterrupt._terminate, and let ↵ | sroet | 2021-09-18 | 1 | -7/+12 |
| | | | | tests use it | ||||
* | fix typo's | sroet | 2021-09-18 | 1 | -1/+1 |
| | |||||
* | make flake8 and mypy happy | sroet | 2021-09-18 | 1 | -10/+16 |
| | |||||
* | update tests and add a comment about different behaviour of 'push' vs 'fetch' | sroet | 2021-09-18 | 1 | -0/+2 |
| | |||||
* | reuse kill_after_timeout kwarg | sroet | 2021-09-18 | 2 | -31/+71 |
| | |||||
* | update docstring | sroet | 2021-09-18 | 1 | -1/+1 |
| | |||||
* | reset default timeout to None | sroet | 2021-09-18 | 2 | -6/+6 |
| | |||||
* | allow for timeout propagation | sroet | 2021-09-18 | 1 | -9/+15 |
| | |||||
* | change default fetch timeout to 60 s | sroet | 2021-09-18 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1318 from Yobmod/main | Dominic | 2021-09-09 | 5 | -29/+43 |
|\ | | | | | General fixes for next release | ||||
| * | Update changelog and version | Yobmod | 2021-08-09 | 1 | -0/+2 |
| | | |||||
| * | upgrade sphinx for 3.10 compat | Yobmod | 2021-08-09 | 1 | -4/+5 |
| | | |||||
| * | try fix for Protocol buy in 3.10 3 | Yobmod | 2021-08-09 | 1 | -2/+2 |
| | | |||||
| * | try fix for Protocol buy in 3.10 2 | Yobmod | 2021-08-09 | 1 | -1/+1 |
| | | |||||
| * | try fix for Protocol buy in 3.10 | Yobmod | 2021-08-09 | 1 | -2/+8 |
| | | |||||
| * | type fixo | Yobmod | 2021-08-08 | 1 | -0/+0 |
| | | |||||
| * | type fix | Yobmod | 2021-08-08 | 1 | -0/+944 |
| | | |||||
| * | add type check to conf_encoding (in thoery could be bool or int) | Yobmod | 2021-08-08 | 4 | -959/+6 |
| | | |||||
| * | Merge branch 'master' of https://github.com/Yobmod/GitPython into main | yobmod | 2021-08-08 | 1 | -14/+28 |
| |\ | |||||
| | * | fix setup.py classifiers, improvefnmatchprocess handler types | yobmod | 2021-08-08 | 1 | -14/+28 |
| | | | |||||
* | | | Assure CWD is readable after acquiring it | Sebastian Thiel | 2021-09-05 | 1 | -0/+2 |
| | | | | | | | | | | | | Fixes #1334 | ||||
* | | | Add encoding to utf-8 for fetch_info_lines; | f100024 | 2021-08-24 | 1 | -2/+2 |
| | | | | | | | | | | | | Add encoding to utf-8 for fetch_head_info; | ||||
* | | | Use the Git class type definition within Repo classmethods | Michael Mulich | 2021-08-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the GitCommandWrapperType definition to be used within the Repo classmethods. This change follows the intended purpose as stated in the code, "Subclasses may easily bring in their own custom types by placing a constructor or type here." The usecase that prompted this change has to do with `GIT_SSH_COMMAND`. The goal is to setup a custom `Git` class with knowledge of the value, something like as follows ```python from git import Git as BaseGit, Repo as BaseRepo class Git(BaseGit): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # For example, assign the SSH command using the current flask # app's configured setting. self.update_environment(GIT_SSH_COMMAND=current_app.config['GIT_SSH_COMMAND']) class Repo(BaseRepo): GitCommandWrapperType = _Git ``` With this change, the above example will allow the developer to use `Repo.clone_from(...)` with the indended outcome. Otherwise the developer will have two differing result when using `Repo(...)` vs `Repo.clone_from(...)`. | ||||
* | | | Don't fail on import if the working dir isn't valid (#1319) | Sebastian Thiel | 2021-08-12 | 1 | -1/+4 |
|/ / | |||||
* | | Merge branch 'gitpython-developers:main' into patch-1 | Eric Wieser | 2021-08-03 | 1 | -2/+2 |
|\ \ | |||||
| * | | Fix trailing whitespace and incorrect overload | Eric Wieser | 2021-08-03 | 1 | -2/+2 |
| | | | |||||
* | | | Use get instead of get_value | Eric Wieser | 2021-08-03 | 1 | -1/+1 |
| | | | | | | | | | This won't try and do something silly like convert `username=1` to a number. | ||||
* | | | Merge branch 'main' into patch-1 | Eric Wieser | 2021-08-03 | 17 | -168/+193 |
|\ \ \ | |/ / | |||||
| * | | Add overload to get_value() | Dominic | 2021-08-03 | 1 | -6/+5 |
| |/ | |||||
| * | Improve type of repo.currently_rebasing_on() | Yobmod | 2021-08-02 | 1 | -2/+2 |
| | | |||||
| * | Improve type of repo.blame_incremental() | Yobmod | 2021-08-02 | 1 | -9/+9 |
| | | |||||
| * | Choose TypedDict! | Yobmod | 2021-08-02 | 1 | -37/+32 |
| | | |||||
| * | Test Dataclass in repo.base.blame() 6 | Yobmod | 2021-08-02 | 1 | -6/+5 |
| | | |||||
| * | Test Dataclass in repo.base.blame() 5 | Yobmod | 2021-08-02 | 1 | -30/+37 |
| | | |||||
| * | Test Dataclass in repo.base.blame() 4 | Yobmod | 2021-08-02 | 1 | -11/+10 |
| | | |||||
| * | Test TypedDict in repo.base.blame() 1 | Yobmod | 2021-08-02 | 1 | -13/+14 |
| | | |||||
| * | Test TypedDict in repo.base.blame() 2 | Yobmod | 2021-08-02 | 1 | -44/+36 |
| | | |||||
| * | Test Dataclass in repo.base.blame() 3 | Yobmod | 2021-08-02 | 1 | -13/+14 |
| | | |||||
| * | Test Dataclass in repo.base.blame() 2 | Yobmod | 2021-08-02 | 1 | -2/+2 |
| | | |||||
| * | Test Dataclass in repo.base.blame() | Yobmod | 2021-08-02 | 2 | -38/+67 |
| | | |||||
| * | Test trailing comma in args (>py3.6?) | Yobmod | 2021-08-02 | 1 | -3/+5 |
| | |