summaryrefslogtreecommitdiff
path: root/git/index/fun.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix Sphinx rendering errorsStephan Creutz2022-12-291-4/+7
| | | | | | | | 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.
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-181-39/+14
|
* Run everything through 'black'Sebastian Thiel2022-05-181-71/+114
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Fix various typosluz paz2022-05-071-1/+1
| | | Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`
* 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
* Add final types to index/fun.pyYobmod2021-07-311-1/+1
|
* Use BaseIndexEntry named access in index/fun.pyYobmod2021-07-241-8/+9
|
* Replace all Typeguard with cast, revert update to typing-extensions==3.10.0Yobmod2021-07-241-5/+6
|
* Change remaining type comments to py3.6+ typesYobmod2021-07-191-5/+5
|
* 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-091-4/+3
|
* 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-081-27/+35
|
* replace cast()s with asserts in fun.pyYobmod2021-06-251-3/+9
|
* Add types to tree.TreeYobmod2021-06-241-1/+1
|
* 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
|
* forward reference for IndexFileYobmod2021-05-171-6/+7
|
* forward reference for IndexFileYobmod2021-05-171-1/+1
|
* add types to index.fun.pyYobmod2021-05-171-31/+46
|
* Add remaining types to IndexFile ._preprocess_add_items() to .diff()Yobmod2021-05-161-2/+2
|
* Add initial types to IndexFile .init() to _to_relative_path()Yobmod2021-05-151-4/+6
|
* Add initial types to IndexFile .init() to _to_relative_path()Yobmod2021-05-151-4/+4
|
* Add initial types to IndexFile .init() to _to_relative_path()Yobmod2021-05-151-4/+7
|
* Fix exception causes all over the codebaseRam Rachum2020-06-141-1/+1
|
* Remove no longer used compat importsHarmon2020-02-081-1/+0
|
* Remove checks for Python 2 and/or 3Harmon2020-02-081-2/+1
|
* removed Unnecessary “else” after “return”Pratik Anurag2019-10-151-2/+1
|
* removed trailing whitespacesPratik Anurag2019-10-151-1/+1
|
* updated fun.py, removed unused variablesPratik Anurag2019-10-151-1/+1
|
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-181-3/+3
|
* IndexFile.commit() now runs pre-commit and post-commit and commit-msg hooks.satahippy2017-10-301-3/+4
|
* Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel2016-10-221-17/+17
|\ | | | | | | ankostis-cygwin
| * src: import os.path as ospKostis Anagnostopoulos2016-10-161-17/+17
| |
* | Fix some typosSantiago Castro2016-10-201-1/+1
|/
* src: No PyDev warningsKostis Anagnostopoulos2016-10-041-1/+1
| | | | | | | | + Mark all unused vars and other non-pep8 (PyDev) warnings + test_utils: + enable & fix forgotten IterableList looped path. + unittestize all assertions. + remote: minor fix progress dispatching unknown err-lines
* FIX hook TC on PY3+Win & indeterministic lock timing.Kostis Anagnostopoulos2016-09-291-1/+4
| | | | | | | | | + Cannot `index.path` into ENV, it is bytes! + The hook TC never runs on linux! + Unblock removal of odbfile in perf-large streams TC. + Attempt to unblock removal of submodule file by intensive cleaning. more unblock files
* Win, hook, #519: Consume Hook Popen-proc out of GILKostis Anagnostopoulos2016-09-281-17/+22
| | | | | | | | + HookException thrown on Popen, and were missed on Windows. + No SHELL on Popen?? + Minor fixes: + Try harder to delete trees - no remorses. + Simplify exception reprs. + Unittest-ize test_index assertions.
* Win, #519: Ensure fixtures & bashscript checked-out eol=lfKostis Anagnostopoulos2016-09-281-1/+1
| | | | + FIX all Diff TCs.
* src: constify is_<platform>() callsKostis Anagnostopoulos2016-09-281-1/+1
| | | + TCs: unittest-asserts for git-tests.
* test, #519: Try appveyor advice for never-ending buildsKostis Anagnostopoulos2016-09-281-1/+0
| | | | | | | | | | | + see http://help.appveyor.com/discussions/problems/5334-nosetests-finsih-bu-build-stuck-and-next-job-dealys-to-start + Use `io.DEFAULT_BUFFER_SIZE`. + test_commit: replace asserts with unittest-asserts. - TRY Popen() NO universal_newlines: NO, reverted in next commits. + [travisci skip]
* src, #519: collect all is_<platform>() callsKostis Anagnostopoulos2016-09-271-2/+3
|