aboutsummaryrefslogtreecommitdiff
path: root/git/objects
AgeCommit message (Collapse)Author
2020-08-31accept datetime instances as datesAlba Mendez
There's no easy way to re-create a commit (i.e. for rewriting purposes), because dates must be formatted as strings, passed, then parsed back. This patch allows parse_date() to accept datetime instances, such as those produced by from_timestamp() above.
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-02allow setting depth when cloning a submoduleLiam Beguin
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2020-03-21fix: wrong refs 'HEAD' exceptionDong Shin
2020-02-20Replace invalid bytes when decoding TagObject streamHarmon
Fixes #943
2020-02-16Replace deprecated Logger.warn with Logger.warningHarmon
2020-02-08Remove and replace compat.text_typeHarmon
2020-02-08Remove and replace compat.string_typesHarmon
2020-02-08Remove checks for Python 2 and/or 3Harmon
2020-02-08Remove and replace compat.xrangeHarmon
2020-02-08Remove and replace compat.bchrHarmon
2020-02-08Remove compat.byte_ordHarmon
2019-12-29Added parsing for '@1400000000 +0000' date format as used by git commit hooks.Dries
2019-10-23Merge branch 'fix/deepsource-issues' of github.com:imkaka/GitPython into ↵Anil Khatri
fix/deepsource-issues
2019-10-23resolved all minor issues arised by last fix patchAnil Khatri
2019-10-23Merge branch 'master' into fix/deepsource-issuesAnil Khatri
2019-10-23fix Loop variable used outside the loopAnil Khatri
2019-10-19Fix pickling of tzoffsetUwe L. Korn
Fixes #650
2019-10-15removed Unnecessary “else” after “return”Pratik Anurag
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-15renamed unused variablesPratik Anurag
2019-10-15changed unused variables assingmentPratik Anurag
2019-09-16fix decoding problemishepard
2019-09-10Fix #889: Add DeepSource config and fix some major issuesMohit Solanki
2019-07-20Skip on keyerrorSantos Gallegos
2019-07-06Don't assume there is a tag author in tagsSebastian Thiel
Fixes #842
2019-03-15Update commit.py constructor docstringDavid Host
Fixes issue #806: Commit requires author parameter to be of Actor type, not string.
2018-10-21The proper way is return, not raise StopIterationMichael Käufl
See PEP 479[1] which is part of Python 3.7[2]. [1]: https://www.python.org/dev/peps/pep-0479/ [2]: https://docs.python.org/3/whatsnew/3.7.html#changes-in-python-behavior
2018-04-04Avoid from_timestamp() function to raise an exception when the offset is ↵ishepard
greater or lower than 24 hours. Add tests that exercise the new behaviour
2018-03-18Rewrite unnecessary dict/list/tuple calls as literalsHugo
2018-03-18Drop support for EOL Python 2.6Hugo
2017-11-16Remove trailing slash on drive pathCharles Bouchard-Légaré
2017-10-01Store submodule nameJohn Kirkham
2017-09-19BF: use get, not casting get_value while dealing with submodule path/url etcYaroslav Halchenko
2017-03-09Spelling fixesVille Skyttä
2017-02-02Fix git.Commit docs typoReuben Sutton
2016-12-08Merge pull request #541 from andy-maier/py26_fixesSebastian Thiel
Fixes to support Python 2.6 again.
2016-12-08chore(lint): flake8Sebastian Thiel
Interestingly only shows in particular python versions on travis. Maybe some caching effect? Locally it is reproducible easily, with the latest flake8
2016-12-08fix(submodule): don't fail if tracking branch can't be setupSebastian Thiel
Fixes #545
2016-10-24Fixes to support Python 2.6 again.Andreas Maier
Details: - Added Python 2.6 again to .travis.yml (it was removed in commit 4486bcb). - Replaced the use of dictionary comprehensions in `git/cmd.py` around line 800 with the code before that change (in commit 25a2ebf). Reason: dict comprehensions were introduced only in Python 2.7. - Changed the import source for `SkipTest` and `skipIf` from `unittest.case` to first trying `unittest` and upon ImportError from `unittest2`. This was done in `git/util.py` and in several testcases. Reason: `SkipTest` and `skipIf` were introduced to unittest only in Python 2.7, and `unittest2` is a backport of `unittest` additions to Python 2.6. - In git/test/lib/helper.py, fixed the definition of `assertRaisesRegex` to work on py26. - For Python 2.6, added the `unittest2` dependency to `requirements.txt` and changed `.travis.yml` to install `unittest2`. Because git/util.py uses SkipTest from unittest/unittest2, the dependency could not be added to `test-requirements.txt`. - Fixed an assertion in `git/test/test_index.py` to also allow a Python 2.6 specific exception message. - In `is_cygwin_git()` in `git/util.py`, replaced `check_output()` with `Popen()`. It was added in Python 2.7. - Enabled Python 2.6 for Windows: - Added Python 2.6 for MINGW in .appveyor.yml. - When defining `PROC_CREATIONFLAGS` in `git/cmd.py`, made use of certain win32 and subprocess flags that were introduced in Python 2.7, dependent on whether we run on Python 2.7 or higher. - In `AutoInterrupt.__del__()` in `git/cmd.py`, allowed for `os` not having `kill()`. `os.kill()` was added for Windows in Python 2.7 (For Linux, it existed in Python 2.6 already).
2016-10-22Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel
ankostis-cygwin
2016-10-20Fix some typosSantiago Castro
2016-10-16Merge with #532, fix unicode filenames with escapesurogatesKostis Anagnostopoulos
2016-10-16fix(surrogateescape): enable on py2, fix testsSebastian Thiel
2016-10-16fix(unicode): use surrogateescape in bytes.decodeSebastian Thiel
That way, we will try to decode as default encoding (usually utf-8), but allow ourselves to simply keep bytes that don't match within the resulting unicode string. That way, we allow for lossless decode/encode cycles while still assuring that decoding never fails. NOTE: I was too lazy to create a test that would verify it, but manually executed https://github.com/petertodd/gitpython-unicode-error. fixes #532