summaryrefslogtreecommitdiff
path: root/git/index
Commit message (Collapse)AuthorAgeFilesLines
* Fix Sphinx rendering errorsStephan Creutz2022-12-292-6/+9
| | | | | | | | These errors are mostly fixed by either adding blank lines or single spaces for Sphinx documentation key words. The commit solely includes documentation changes, no functional changes.
* Add datetime.datetime type to commit_date and author_dateSergeantMenacingGarlic2022-10-131-2/+3
|
* Fix blob filter path shorter than filter pathAustin Scola2022-06-281-2/+6
|
* Use generator instead of mapAustin Scola2022-06-261-1/+1
|
* Remove usage of `PosixPath.is_relative_to`Austin Scola2022-06-261-1/+2
| | | | | Remove usage of `PosixPath.is_relative_to` because it was added in Python 3.9 and earlier versions of Python are supported by `GitPython`.
* Fix pathlike type annotation typoAustin Scola2022-06-261-1/+1
|
* Change to not stringify pathsAustin Scola2022-06-261-4/+6
|
* Move stage type defAustin Scola2022-06-212-3/+4
|
* Add stage type to allAustin Scola2022-06-211-1/+1
|
* Fix blob filter typesAustin Scola2022-06-211-3/+4
| | | | Fix the types and type annotations of some of the blob filter code.
* fix: Allow adding PathLike object to indexRuben DI BATTISTA2022-05-181-2/+2
| | | | Close #1382
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-184-126/+46
|
* Revert "Remove flake8 linting in favor of `black` formatting"Sebastian Thiel2022-05-181-0/+1
| | | | This reverts commit a7c5d887e943aa51f2270e517954c024a8c01500.
* Remove flake8 linting in favor of `black` formattingSebastian Thiel2022-05-181-1/+0
| | | | `flake8` seems to dislike the formatting of black.
* Run everything through 'black'Sebastian Thiel2022-05-184-276/+490
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Fix various typosluz paz2022-05-072-5/+5
| | | Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`
* Let index.commit refer to correct method for parameter information (#1407)Sebastian Thiel2022-02-031-1/+1
|
* Use bash to open extensionless hooks on windowsDavid Briscoe2022-01-141-1/+14
| | | | | | | | | | | | | | | Fix #971. Partly resolve #703. If the hook doesn't have a file extension, then Windows won't know how to run it and you'll get "[WinError 193] %1 is not a valid Win32 application". It's very likely that it's a shell script of some kind, so use bash.exe (commonly installed via Windows Subsystem for Linux). We don't want to run all hooks with bash because they could be .bat files. Update tests to get several hook ones working. More work necessary to get commit-msg hook working. The hook writes to the wrong file because it's not using forward slashes in the path: C:\Users\idbrii\AppData\Local\Temp\bare_test_commit_msg_hook_successy5fo00du\CUsersidbriiAppDataLocalTempbare_test_commit_msg_hook_successy5fo00duCOMMIT_EDITMSG
* Assure index file descriptor is closed after reader (#1394) (#1395)Sebastian Thiel2022-01-101-1/+4
| | | | A regression that was introduced with d79d20d.
* Avoid taking a lock for readingSebastian Thiel2022-01-071-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.
* Revert "Replace wildcard imports with concrete imports"Trym Bremnes2021-10-031-2/+2
| | | | | | | | | | | 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 importsTrym Bremnes2021-10-011-2/+2
| | | | | | | All `from <module> import *` has now been replaced by `from <module> import X, Y, ...`. Contributes to #1349
* increase mypy strictness (warn unused ignored and warn unreachable)Yobmod2021-08-021-1/+0
|
* replace some TBDs wiht runtime typesYobmod2021-07-311-5/+6
|
* Add final types to index/fun.pyYobmod2021-07-311-1/+1
|
* Rmv with_metaclass shim, make section constraint generic wrt its ↵Yobmod2021-07-241-1/+2
| | | | configparser type
* Use BaseIndexEntry named access in index/fun.pyYobmod2021-07-242-60/+38
|
* Replace all Typeguard with cast, revert update to typing-extensions==3.10.0Yobmod2021-07-241-5/+6
|
* Rmv old py2.7 __future__ importsYobmod2021-07-191-2/+0
|
* Change remaining type comments to py3.6+ typesYobmod2021-07-192-17/+17
|
* update types in types.pyYobmod2021-07-191-3/+4
|
* Make TreeCacheTup forward refYobmod2021-07-091-4/+4
|
* Use TreeCacheTup type alias throughoutYobmod2021-07-091-3/+4
|
* Fix typing of index.fun.write_tree_from_cache()Yobmod2021-07-092-5/+4
|
* Improve IndexFile_process_diff_args() to get checks to rerunYobmod2021-07-091-5/+5
|
* Make IndexFile and Diffable .diff() types agreeYobmod2021-07-091-1/+2
|
* Remove defsult_index decorator from diff() and do check within function. ↵Yobmod2021-07-091-2/+7
| | | | Breaks typechecking for some reason
* Improve Diffable method typingYobmod2021-07-091-3/+3
|
* Try to distinguation git.diff module from diff.Diff.diff and ↵Yobmod2021-07-091-7/+8
| | | | diff.Daffable.diff()
* tests TraversableIterableObj typeguardYobmod2021-07-091-1/+0
|
* Change List to MutableSequence in fun.py _find_by_name()Yobmod2021-07-081-2/+3
|
* fix base,ours,theirs typingYobmod2021-07-081-4/+4
|
* Fix traverse_trees_recursive()Yobmod2021-07-081-79/+69
|
* MmmmmmYobmod2021-07-081-67/+71
|
* MmmmmYobmod2021-07-081-5/+4
|
* Mak EntryTup a froward refYobmod2021-07-081-6/+5
|
* Finish initial typing of index folderYobmod2021-07-083-44/+62
|
* Increase mypy strictness (no_implicit_optional & warn_redundant_casts) and ↵Yobmod2021-07-081-4/+6
| | | | fix errors
* Make diff.DiffIndex generic List['Diff']Yobmod2021-07-061-4/+4
|
* Type index _items_to_rela_paths()Yobmod2021-07-061-9/+10
|