Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Assure CWD is readable after acquiring itFix-#1334 | 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 |
| | | |||||
| * | Test new union syntax (Pep604) | Yobmod | 2021-08-02 | 1 | -1/+1 |
| | | |||||
| * | Minor type fixes | Yobmod | 2021-08-02 | 2 | -5/+6 |
| | | |||||
| * | Add __future__.annotations to repo/base.py | Yobmod | 2021-08-02 | 5 | -13/+16 |
| | | |||||
| * | Fix parse_date typing 7 | Yobmod | 2021-08-02 | 2 | -567/+3 |
| | | |||||
| * | Fix parse_date typing 6 | Yobmod | 2021-08-02 | 2 | -1/+567 |
| | | |||||
| * | Fix parse_date typing 5 | Yobmod | 2021-08-02 | 1 | -2/+7 |
| | | |||||
| * | Fix parse_date typing 4 | Yobmod | 2021-08-02 | 1 | -12/+7 |
| | | |||||
| * | Fix parse_date typing 3 | Yobmod | 2021-08-02 | 1 | -6/+4 |
| | | |||||
| * | Fix parse_date typing 2 | Yobmod | 2021-08-02 | 1 | -1/+3 |
| | | |||||
| * | Fix parse_date typing | Yobmod | 2021-08-02 | 1 | -3/+5 |
| | | |||||
| * | Add __future__.annotations to cmd.py2 | Yobmod | 2021-08-02 | 1 | -3/+3 |
| | | |||||
| * | Add __future__.annotations to cmd.py | Yobmod | 2021-08-02 | 1 | -7/+7 |
| | | |||||
| * | rmv 3.6 README | Yobmod | 2021-08-02 | 1 | -6/+5 |
| | | |||||
| * | rmv 3.6 from setup.py | Yobmod | 2021-08-02 | 2 | -3/+4 |
| | | |||||
| * | rmv 3.6 from CI matrix | Yobmod | 2021-08-02 | 2 | -4/+3 |
| | | |||||
| * | increase mypy strictness (warn unused ignored and warn unreachable) | Yobmod | 2021-08-02 | 9 | -22/+28 |
| | | |||||
| * | increase mypy strictness (warn unused ignored) | Yobmod | 2021-08-02 | 4 | -12/+12 |
| | | |||||
| * | replace more TBDs wiht runtime types | Yobmod | 2021-07-31 | 4 | -20/+22 |
| | | |||||
| * | replace some TBDs wiht runtime types | Yobmod | 2021-07-31 | 8 | -33/+19 |
| | | |||||
* | | Update config.py | Eric Wieser | 2021-08-03 | 1 | -2/+2 |
| | | |||||
* | | Fix mypy | Eric Wieser | 2021-08-03 | 1 | -2/+2 |
| | | |||||
* | | Do not call get_user_id if it is not needed | Eric Wieser | 2021-08-03 | 1 | -1/+5 |
|/ | | | On systems without any environment variables and no pwd module, gitpython crashes as it tries to read the environment variable before looking at its config. | ||||
* | Add final final types to symbolic.py | Yobmod | 2021-07-31 | 1 | -6/+8 |
| | |||||
* | Add final types to symbolic.py | Yobmod | 2021-07-31 | 1 | -5/+5 |
| | |||||
* | Add final types to index/fun.py | Yobmod | 2021-07-31 | 1 | -1/+1 |
| | |||||
* | Add final types to cmd.py | Yobmod | 2021-07-31 | 1 | -19/+34 |
| | |||||
* | Add final types to submodule.py | Yobmod | 2021-07-31 | 2 | -12/+13 |
| | |||||
* | Add final types to tree.py | Yobmod | 2021-07-31 | 1 | -2/+2 |
| | |||||
* | Add final types to commit.py | Yobmod | 2021-07-31 | 1 | -3/+3 |
| |