summaryrefslogtreecommitdiff
path: root/git/objects
Commit message (Collapse)AuthorAgeFilesLines
* add replace method to git.CommitLars Kellogg-Stedman2021-02-151-7/+36
| | | | | | | | | | | This adds a replace method to git.Commit. The replace method returns a copy of the Commit object with attributes replaced from keyword arguments. For example: >>> old = repo.head.commit >>> new = old.replace(message='This is a test') closes #1123
* Fix inheritance issue at commit.iter_itemsYuri Volchkov2021-02-051-1/+1
| | | | | | | The iterator used to yield Commit() objects, which does not play well with inheritance. Yield cls() instead. Signed-off-by: Yuri Volchkov <yuri@volch.org>
* Added ability to define git environment in submodule add/update methodsIgor Solovey2020-11-191-4/+16
|
* accept datetime instances as datesAlba Mendez2020-08-311-0/+5
| | | | | | 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.
* Fixed all warnings in documentation and updated Makefile to treat warnings ↵Kian Cross2020-07-131-1/+1
| | | | as errors.
* Fix exception causes all over the codebaseRam Rachum2020-06-143-16/+16
|
* allow setting depth when cloning a submoduleLiam Beguin2020-05-021-1/+9
| | | | Signed-off-by: Liam Beguin <liambeguin@gmail.com>
* fix: wrong refs 'HEAD' exceptionDong Shin2020-03-211-3/+4
|
* Replace invalid bytes when decoding TagObject streamHarmon2020-02-201-1/+1
| | | | Fixes #943
* Replace deprecated Logger.warn with Logger.warningHarmon2020-02-162-2/+2
|
* Remove and replace compat.text_typeHarmon2020-02-082-5/+3
|
* Remove and replace compat.string_typesHarmon2020-02-082-4/+2
|
* Remove checks for Python 2 and/or 3Harmon2020-02-081-4/+1
|
* Remove and replace compat.xrangeHarmon2020-02-081-2/+1
|
* Remove and replace compat.bchrHarmon2020-02-081-3/+2
|
* Remove compat.byte_ordHarmon2020-02-081-5/+4
|
* Added parsing for '@1400000000 +0000' date format as used by git commit hooks.Dries2019-12-291-0/+2
|
* Merge branch 'fix/deepsource-issues' of github.com:imkaka/GitPython into ↵Anil Khatri2019-10-231-0/+3
|\ | | | | | | fix/deepsource-issues
| * Merge branch 'master' into fix/deepsource-issuesAnil Khatri2019-10-231-0/+3
| |\
| | * Fix pickling of tzoffsetUwe L. Korn2019-10-191-0/+3
| | | | | | | | | | | | Fixes #650
* | | resolved all minor issues arised by last fix patchAnil Khatri2019-10-231-1/+1
|/ /
* | fix Loop variable used outside the loopAnil Khatri2019-10-231-1/+1
|/
* removed Unnecessary “else” after “return”Pratik Anurag2019-10-151-2/+1
|
* removed Unnecessary “else” after “return”Pratik Anurag2019-10-151-2/+1
|
* removed trailing whitespacesPratik Anurag2019-10-151-2/+2
|
* removed trailing whitespacesPratik Anurag2019-10-151-1/+1
|
* removed trailing whitespacesPratik Anurag2019-10-151-1/+1
|
* renamed unused variablesPratik Anurag2019-10-151-1/+1
|
* renamed unused variablesPratik Anurag2019-10-151-2/+2
|
* changed unused variables assingmentPratik Anurag2019-10-151-1/+1
|
* fix decoding problemishepard2019-09-161-2/+3
|
* Fix #889: Add DeepSource config and fix some major issuesMohit Solanki2019-09-101-3/+2
|
* Skip on keyerrorSantos Gallegos2019-07-201-2/+3
|
* Don't assume there is a tag author in tagsSebastian Thiel2019-07-061-2/+3
| | | | Fixes #842
* Update commit.py constructor docstringDavid Host2019-03-151-1/+1
| | | Fixes issue #806: Commit requires author parameter to be of Actor type, not string.
* The proper way is return, not raise StopIterationMichael Käufl2018-10-211-1/+1
| | | | | | | 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
* Avoid from_timestamp() function to raise an exception when the offset is ↵ishepard2018-04-041-2/+5
| | | | | | greater or lower than 24 hours. Add tests that exercise the new behaviour
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-187-16/+16
|
* Drop support for EOL Python 2.6Hugo2018-03-181-4/+1
|
* Remove trailing slash on drive pathCharles Bouchard-Légaré2017-11-161-1/+1
|
* Store submodule nameJohn Kirkham2017-10-011-1/+3
|
* BF: use get, not casting get_value while dealing with submodule path/url etcYaroslav Halchenko2017-09-191-5/+5
|
* Spelling fixesVille Skyttä2017-03-093-5/+5
|
* Fix git.Commit docs typoReuben Sutton2017-02-021-1/+1
|
* Merge pull request #541 from andy-maier/py26_fixesSebastian Thiel2016-12-081-1/+4
|\ | | | | Fixes to support Python 2.6 again.
| * Fixes to support Python 2.6 again.Andreas Maier2016-10-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | chore(lint): flake8Sebastian Thiel2016-12-081-1/+1
| | | | | | | | | | | | | | | | Interestingly only shows in particular python versions on travis. Maybe some caching effect? Locally it is reproducible easily, with the latest flake8
* | fix(submodule): don't fail if tracking branch can't be setupSebastian Thiel2016-12-081-1/+1
|/ | | | Fixes #545
* Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel2016-10-225-69/+68
|\ | | | | | | ankostis-cygwin
| * Merge with #532, fix unicode filenames with escapesurogatesKostis Anagnostopoulos2016-10-161-5/+2
| |\