Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | improve index mode for files with executable bit | Todd Zullinger | 2021-05-25 | 1 | -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 comments | Yobmod | 2021-05-17 | 1 | -1/+0 | |
| | ||||||
* | index.base unmerged_blobs() doc string | Yobmod | 2021-05-17 | 1 | -2/+2 | |
| | ||||||
* | forward reference for IndexFile | Yobmod | 2021-05-17 | 1 | -6/+7 | |
| | ||||||
* | forward reference for IndexFile | Yobmod | 2021-05-17 | 1 | -1/+1 | |
| | ||||||
* | add types to index.fun.py | Yobmod | 2021-05-17 | 2 | -33/+49 | |
| | ||||||
* | flake8 and mypy fixes | Yobmod | 2021-05-16 | 2 | -5/+2 | |
| | ||||||
* | Add types to index.util.py | Yobmod | 2021-05-16 | 1 | -9/+21 | |
| | ||||||
* | Add types to index.typ.py | Yobmod | 2021-05-16 | 2 | -23/+35 | |
| | ||||||
* | Add remaining types to IndexFile ._store_items() ._entries_for_paths() | Yobmod | 2021-05-16 | 1 | -8/+12 | |
| | ||||||
* | Add remaining types to IndexFile ._preprocess_add_items() to .diff() | Yobmod | 2021-05-16 | 1 | -1/+2 | |
| | ||||||
* | Add remaining types to IndexFile ._preprocess_add_items() to .diff() | Yobmod | 2021-05-16 | 3 | -40/+61 | |
| | ||||||
* | Add initial types to IndexFile .init() to _to_relative_path() | Yobmod | 2021-05-15 | 1 | -4/+6 | |
| | ||||||
* | Add initial types to IndexFile .init() to _to_relative_path() | Yobmod | 2021-05-15 | 2 | -6/+6 | |
| | ||||||
* | Add initial types to IndexFile .init() to _to_relative_path() | Yobmod | 2021-05-15 | 2 | -54/+79 | |
| | ||||||
* | fix flake | Sebastian Thiel | 2021-01-08 | 1 | -0/+1 | |
| | ||||||
* | First attempt to fix failing test of #1103fix-1103 | Sebastian Thiel | 2021-01-07 | 1 | -4/+10 | |
| | | | | | | | | | | | | However, the test asserts on the provided context to be correct, which is hard to do in this branch while it's easy to doubt the value of this. Lastly, there seems to be no way to ignore errors in `git` without muting all output, which is in fact parsed. Maybe it's possible to ignore errors while parsing the new kind of error message. | |||||
* | Fixed all warnings in documentation and updated Makefile to treat warnings ↵ | Kian Cross | 2020-07-13 | 1 | -4/+4 | |
| | | | | as errors. | |||||
* | Fix exception causes all over the codebase | Ram Rachum | 2020-06-14 | 2 | -4/+4 | |
| | ||||||
* | Fix flake8 errors | Sebastian Thiel | 2020-05-28 | 1 | -2/+2 | |
| | ||||||
* | Only resolve globs if path does not exist on disk | Sebastian Thiel | 2020-03-08 | 1 | -2/+2 | |
| | | | | Fixes #994 | |||||
* | Remove no longer used compat imports | Harmon | 2020-02-08 | 1 | -1/+0 | |
| | ||||||
* | Remove and replace compat.string_types | Harmon | 2020-02-08 | 1 | -5/+4 | |
| | ||||||
* | Remove and replace compat.izip | Harmon | 2020-02-08 | 1 | -3/+2 | |
| | ||||||
* | Remove checks for Python 2 and/or 3 | Harmon | 2020-02-08 | 1 | -2/+1 | |
| | ||||||
* | Remove and replace compat.xrange | Harmon | 2020-02-08 | 1 | -2/+1 | |
| | ||||||
* | Remove and replace compat.mviter | Harmon | 2020-02-08 | 1 | -5/+4 | |
| | ||||||
* | removed Unnecessary “else” after “return” | Pratik Anurag | 2019-10-15 | 1 | -2/+1 | |
| | ||||||
* | removed trailing whitespaces | Pratik Anurag | 2019-10-15 | 1 | -1/+1 | |
| | ||||||
* | removed trailing whitespaces | Pratik Anurag | 2019-10-15 | 1 | -1/+1 | |
| | ||||||
* | removed trailing whitespaces | Pratik Anurag | 2019-10-15 | 1 | -1/+1 | |
| | ||||||
* | renamed unused variables | Pratik Anurag | 2019-10-15 | 1 | -2/+2 | |
| | ||||||
* | updated fun.py, removed unused variables | Pratik Anurag | 2019-10-15 | 1 | -1/+1 | |
| | ||||||
* | As string is iterable, changed to isinstance check | Marcel | 2019-10-15 | 1 | -8/+4 | |
| | | | | test now works | |||||
* | fixed code repetition | Marcel | 2019-10-15 | 1 | -30/+29 | |
| | ||||||
* | allow calling index.add, index.move and index.remove with single items | Marcel | 2019-10-15 | 1 | -17/+29 | |
| | | | | | added testing for it closes #813 | |||||
* | git: index: base: use os.path.relpath | Ruslan Kuprieiev | 2018-04-04 | 1 | -3/+2 | |
| | | | | | | Fixes #743 Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> | |||||
* | Merge pull request #737 from hugovk/rm-2.6 | Sebastian Thiel | 2018-03-24 | 2 | -19/+19 | |
|\ | | | | | Drop support for EOL Python 2.6 and 3.3 | |||||
| * | Rewrite unnecessary dict/list/tuple calls as literals | Hugo | 2018-03-18 | 2 | -19/+19 | |
| | | ||||||
* | | Allow mmap not just for py2.6/2.7/3.6+ but also 3.0+ | Hugo | 2018-03-18 | 1 | -9/+1 | |
|/ | ||||||
* | IndexFile.commit() now runs pre-commit and post-commit and commit-msg hooks. | satahippy | 2017-10-30 | 2 | -3/+23 | |
| | ||||||
* | Spelling fixes | Ville Skyttä | 2017-03-09 | 2 | -3/+3 | |
| | ||||||
* | Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵ | Sebastian Thiel | 2016-10-22 | 3 | -62/+60 | |
|\ | | | | | | | ankostis-cygwin | |||||
| * | src: reduce needless deps to `gitdb.util` | Kostis Anagnostopoulos | 2016-10-16 | 1 | -2/+2 | |
| | | ||||||
| * | src: import os.path as osp | Kostis Anagnostopoulos | 2016-10-16 | 3 | -61/+59 | |
| | | ||||||
* | | Fix some typos | Santiago Castro | 2016-10-20 | 3 | -8/+8 | |
|/ | ||||||
* | src: No PyDev warnings | Kostis Anagnostopoulos | 2016-10-04 | 2 | -8/+7 | |
| | | | | | | | | + 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 | |||||
* | RF: use @functools.wraps within decorators instead of manual __name__ ↵ | Yaroslav Halchenko | 2016-10-02 | 1 | -4/+7 | |
| | | | | | | reassignment @wraps does more and does it right ;) | |||||
* | Win, #519: FIX repo TCs. | Kostis Anagnostopoulos | 2016-10-01 | 1 | -8/+7 | |
| | | | | | | | | | | | | | | | + FIX TestRepo.test_submodule_update(): + submod: del `.git` file prior overwrite; Windows denied otherwise! + FIX TestRepo.test_untracked_files(): + In the `git add <file>` case, it failed with unicode args on PY2. Had to encode them with `locale.getpreferredencoding()` AND use SHELL. + cmd: add `shell` into `execute()` kwds, for overriding USE_SHELL per command. + repo: replace blocky `communicate()` in `_clone()` with thread-pumps. + test_repo.py: unittestize (almost all) assertions. + Replace open --> with open for index (base and TC). + test_index.py: Enabled a dormant assertion. | |||||
* | FIX hook TC on PY3+Win & indeterministic lock timing. | Kostis Anagnostopoulos | 2016-09-29 | 1 | -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 |