summaryrefslogtreecommitdiff
path: root/git/index
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* UnMake subodule a forward ref in Index.base2Yobmod2021-07-061-1/+1
|
* UnMake subodule a forward ref in Index.baseYobmod2021-07-061-1/+1
|
* Make subodule a forward ref in Index.base3Yobmod2021-07-061-2/+2
|
* Make subodule a forward ref in Index.base2Yobmod2021-07-061-1/+1
|
* Make subodule a forward ref in Index.baseYobmod2021-07-061-4/+4
|
* Improve types of @unbare_repo and @git_working_dir decoratorsYobmod2021-07-062-6/+6
|
* Add missed types to Commit, uncomment to_native_path_linux()Yobmod2021-07-011-2/+3
|
* Type Traversable.traverse() better, start types of submoduleYobmod2021-06-301-2/+3
|
* replace cast()s with asserts in fun.pyYobmod2021-06-251-3/+9
|
* Add types to tree.TreeYobmod2021-06-242-2/+2
|
* Update typing-extensions version in requirements.txtYobmod2021-06-231-1/+1
|
* improve index mode for files with executable bitTodd Zullinger2021-05-251-1/+2
| | | | | | | | | | | | | | | | | The fix for #430 in bebc4f56 (Use correct mode for executable files, 2016-05-19) is incomplete. It fails (in most cases) when files have modes which are not exactly 0644 or 0755. Git only cares whether the executable bit is set (or not). Ensure the mode we set for the index is either 100644 or 100755 based on whether the executable bit is set for the file owner. Do this similarly to how upstream git does it in cache.h¹. Add a test covering various file modes to help catch regressions. Fixes #1253 ¹ https://github.com/git/git/blob/v2.31.1/cache.h#L247
* Tidy up some commentsYobmod2021-05-171-1/+0
|
* index.base unmerged_blobs() doc stringYobmod2021-05-171-2/+2
|
* forward reference for IndexFileYobmod2021-05-171-6/+7
|
* forward reference for IndexFileYobmod2021-05-171-1/+1
|