summaryrefslogtreecommitdiff
path: root/git/index/fun.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Win, #519: FIX WinHangs: Popen() CREATE_NEW_PROCESS_GROUP to allow killKostis Anagnostopoulos2016-09-261-3/+2
| | | | | + FIXED most hangs BUT no more `git-daemon` un-killable! + Use logger for utils to replace stray print().
* test, #519: Popen() universal_newlin.es NoWindow in WinfoesKostis Anagnostopoulos2016-09-261-1/+5
| | | | | | + More win-fixes: + Do not check unicode files in < py3. + util, #519: x4 timeout of lock-file blocking, failing in Appveyor.
* Use correct mode for executable filesSebastian Thiel2016-05-191-1/+1
| | | | Fixes #430
* fix(index):allow adding non-unicode paths to indexSebastian Thiel2015-07-291-2/+3
| | | | | | | | | This issue only surfaced in python 2, in case paths containing unicode characters were not actual unicode objects. In python 3, this was never the issue. Closes #331
* fix(encoding): in untracked_files() and indexSebastian Thiel2015-07-201-1/+2
| | | | | | | | | | | | * untracked_files could, if there were spaces in the path returned, re-rencode the previously decoded unicode string thanks to a `decode("string_escape")` call. Now re-encode into utf-8 afterwards - added test to assure this works indeed * IndexFile.add() didn't handle unicode correctly and would write broken index files. The solution was to compute the path length after encoding it into utf-8 bytes, not before ... . Closes #320
* Merge branch 'bf/run_hooks_from_working_dir' of ↵Sebastian Thiel2015-02-091-0/+1
|\ | | | | | | https://github.com/yarikoptic/GitPython into yarikoptic-bf/run_hooks_from_working_dir