summaryrefslogtreecommitdiff
path: root/git
Commit message (Collapse)AuthorAgeFilesLines
* Assure CWD is readable after acquiring itFix-#1334Sebastian Thiel2021-09-051-0/+2
| | | | Fixes #1334
* Add encoding to utf-8 for fetch_info_lines;f1000242021-08-241-2/+2
| | | | Add encoding to utf-8 for fetch_head_info;
* Use the Git class type definition within Repo classmethodsMichael Mulich2021-08-181-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 Thiel2021-08-121-1/+4
|
* Merge branch 'gitpython-developers:main' into patch-1Eric Wieser2021-08-031-2/+2
|\
| * Fix trailing whitespace and incorrect overloadEric Wieser2021-08-031-2/+2
| |
* | Use get instead of get_valueEric Wieser2021-08-031-1/+1
| | | | | | This won't try and do something silly like convert `username=1` to a number.
* | Merge branch 'main' into patch-1Eric Wieser2021-08-0317-168/+193
|\ \ | |/
| * Add overload to get_value()Dominic2021-08-031-6/+5
| |
| * Improve type of repo.currently_rebasing_on()Yobmod2021-08-021-2/+2
| |
| * Improve type of repo.blame_incremental()Yobmod2021-08-021-9/+9
| |
| * Choose TypedDict!Yobmod2021-08-021-37/+32
| |
| * Test Dataclass in repo.base.blame() 6Yobmod2021-08-021-6/+5
| |
| * Test Dataclass in repo.base.blame() 5Yobmod2021-08-021-30/+37
| |
| * Test Dataclass in repo.base.blame() 4Yobmod2021-08-021-11/+10
| |
| * Test TypedDict in repo.base.blame() 1Yobmod2021-08-021-13/+14
| |
| * Test TypedDict in repo.base.blame() 2Yobmod2021-08-021-44/+36
| |
| * Test Dataclass in repo.base.blame() 3Yobmod2021-08-021-13/+14
| |
| * Test Dataclass in repo.base.blame() 2Yobmod2021-08-021-2/+2
| |
| * Test Dataclass in repo.base.blame()Yobmod2021-08-022-38/+67
| |
| * Test trailing comma in args (>py3.6?)Yobmod2021-08-021-3/+5
| |
| * Test new union syntax (Pep604)Yobmod2021-08-021-1/+1
| |
| * Minor type fixesYobmod2021-08-022-5/+6
| |
| * Add __future__.annotations to repo/base.pyYobmod2021-08-025-13/+16
| |
| * Fix parse_date typing 7Yobmod2021-08-022-567/+3
| |
| * Fix parse_date typing 6Yobmod2021-08-022-1/+567
| |
| * Fix parse_date typing 5Yobmod2021-08-021-2/+7
| |
| * Fix parse_date typing 4Yobmod2021-08-021-12/+7
| |
| * Fix parse_date typing 3Yobmod2021-08-021-6/+4
| |
| * Fix parse_date typing 2Yobmod2021-08-021-1/+3
| |
| * Fix parse_date typingYobmod2021-08-021-3/+5
| |
| * Add __future__.annotations to cmd.py2Yobmod2021-08-021-3/+3
| |
| * Add __future__.annotations to cmd.pyYobmod2021-08-021-7/+7
| |
| * rmv 3.6 READMEYobmod2021-08-021-6/+5
| |
| * rmv 3.6 from setup.pyYobmod2021-08-022-3/+4
| |
| * rmv 3.6 from CI matrixYobmod2021-08-022-4/+3
| |
| * increase mypy strictness (warn unused ignored and warn unreachable)Yobmod2021-08-029-22/+28
| |
| * increase mypy strictness (warn unused ignored)Yobmod2021-08-024-12/+12
| |
| * replace more TBDs wiht runtime typesYobmod2021-07-314-20/+22
| |
| * replace some TBDs wiht runtime typesYobmod2021-07-318-33/+19
| |
* | Update config.pyEric Wieser2021-08-031-2/+2
| |
* | Fix mypyEric Wieser2021-08-031-2/+2
| |
* | Do not call get_user_id if it is not neededEric Wieser2021-08-031-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.pyYobmod2021-07-311-6/+8
|
* Add final types to symbolic.pyYobmod2021-07-311-5/+5
|
* Add final types to index/fun.pyYobmod2021-07-311-1/+1
|
* Add final types to cmd.pyYobmod2021-07-311-19/+34
|
* Add final types to submodule.pyYobmod2021-07-312-12/+13
|
* Add final types to tree.pyYobmod2021-07-311-2/+2
|
* Add final types to commit.pyYobmod2021-07-311-3/+3
|