aboutsummaryrefslogtreecommitdiff
path: root/git/index
AgeCommit message (Collapse)Author
2020-07-13Fixed all warnings in documentation and updated Makefile to treat warnings ↵Kian Cross
as errors.
2020-06-14Fix exception causes all over the codebaseRam Rachum
2020-05-28Fix flake8 errorsSebastian Thiel
2020-03-08Only resolve globs if path does not exist on diskSebastian Thiel
Fixes #994
2020-02-08Remove no longer used compat importsHarmon
2020-02-08Remove and replace compat.string_typesHarmon
2020-02-08Remove and replace compat.izipHarmon
2020-02-08Remove checks for Python 2 and/or 3Harmon
2020-02-08Remove and replace compat.xrangeHarmon
2020-02-08Remove and replace compat.mviterHarmon
2019-10-15removed Unnecessary “else” after “return”Pratik Anurag
2019-10-15removed trailing whitespacesPratik Anurag
2019-10-15removed trailing whitespacesPratik Anurag
2019-10-15removed trailing whitespacesPratik Anurag
2019-10-15renamed unused variablesPratik Anurag
2019-10-15updated fun.py, removed unused variablesPratik Anurag
2019-10-15As string is iterable, changed to isinstance checkMarcel
test now works
2019-10-15fixed code repetitionMarcel
2019-10-15allow calling index.add, index.move and index.remove with single itemsMarcel
added testing for it closes #813
2018-04-04git: index: base: use os.path.relpathRuslan Kuprieiev
Fixes #743 Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
2018-03-24Merge pull request #737 from hugovk/rm-2.6Sebastian Thiel
Drop support for EOL Python 2.6 and 3.3
2018-03-18Rewrite unnecessary dict/list/tuple calls as literalsHugo
2018-03-18Allow mmap not just for py2.6/2.7/3.6+ but also 3.0+Hugo
2017-10-30IndexFile.commit() now runs pre-commit and post-commit and commit-msg hooks.satahippy
2017-03-09Spelling fixesVille Skyttä
2016-10-22Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel
ankostis-cygwin
2016-10-20Fix some typosSantiago Castro
2016-10-16src: reduce needless deps to `gitdb.util`Kostis Anagnostopoulos
2016-10-16src: import os.path as ospKostis Anagnostopoulos
2016-10-04src: No PyDev warningsKostis Anagnostopoulos
+ 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
2016-10-02RF: use @functools.wraps within decorators instead of manual __name__ ↵Yaroslav Halchenko
reassignment @wraps does more and does it right ;)
2016-10-01Win, #519: FIX repo TCs.Kostis Anagnostopoulos
+ 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.
2016-09-29FIX hook TC on PY3+Win & indeterministic lock timing.Kostis Anagnostopoulos
+ 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
2016-09-28Proc, #519: Rework error-exc msgs & log thread-pumps errorsKostis Anagnostopoulos
+ No WindowsError exception. + Add `test_exc.py` for unicode issues. + Single-arg for decoding-streams in pump-func.
2016-09-28Win, hook, #519: Consume Hook Popen-proc out of GILKostis Anagnostopoulos
+ 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.
2016-09-28Win, #519: Ensure fixtures & bashscript checked-out eol=lfKostis Anagnostopoulos
+ FIX all Diff TCs.
2016-09-28src: constify is_<platform>() callsKostis Anagnostopoulos
+ TCs: unittest-asserts for git-tests.
2016-09-28test, #519: Try appveyor advice for never-ending buildsKostis Anagnostopoulos
+ 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]
2016-09-27src, #519: collect all is_<platform>() callsKostis Anagnostopoulos
2016-09-26Win, #519: FIX WinHangs: Popen() CREATE_NEW_PROCESS_GROUP to allow killKostis Anagnostopoulos
+ FIXED most hangs BUT no more `git-daemon` un-killable! + Use logger for utils to replace stray print().
2016-09-26test, #519: Popen() universal_newlin.es NoWindow in WinfoesKostis Anagnostopoulos
+ More win-fixes: + Do not check unicode files in < py3. + util, #519: x4 timeout of lock-file blocking, failing in Appveyor.
2016-09-25fix(index): improve LockedFD handlingSebastian Thiel
Relying on the destructor will not work, even though the code used to rely on it. Now we handle failures more explicitly. Far from perfect, but a good start for a fix. Fixes #514
2016-06-20Commit without executing hooks, fixes #468Peter Bengtsson
2016-05-19Use correct mode for executable filesSebastian Thiel
Fixes #430
2016-04-13fix(index): avoid recursing endlessly in add()Piotr Pietraszkiewicz
Issue #407
2016-01-08DOC: minor typosYaroslav Halchenko
2015-07-29fix(index):allow adding non-unicode paths to indexSebastian Thiel
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
2015-07-20fix(index): remove invalid keyword argumentSebastian Thiel
It was a left-over of some prior hacking that was not removed by accident.
2015-07-20fix(encoding): in untracked_files() and indexSebastian Thiel
* 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
2015-07-17added tests for commits with datesavi