Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add replace method to git.Commit | Lars Kellogg-Stedman | 2021-02-15 | 1 | -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_items | Yuri Volchkov | 2021-02-05 | 1 | -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 methods | Igor Solovey | 2020-11-19 | 1 | -4/+16 |
| | |||||
* | accept datetime instances as dates | Alba Mendez | 2020-08-31 | 1 | -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 Cross | 2020-07-13 | 1 | -1/+1 |
| | | | | as errors. | ||||
* | Fix exception causes all over the codebase | Ram Rachum | 2020-06-14 | 3 | -16/+16 |
| | |||||
* | allow setting depth when cloning a submodule | Liam Beguin | 2020-05-02 | 1 | -1/+9 |
| | | | | Signed-off-by: Liam Beguin <liambeguin@gmail.com> | ||||
* | fix: wrong refs 'HEAD' exception | Dong Shin | 2020-03-21 | 1 | -3/+4 |
| | |||||
* | Replace invalid bytes when decoding TagObject stream | Harmon | 2020-02-20 | 1 | -1/+1 |
| | | | | Fixes #943 | ||||
* | Replace deprecated Logger.warn with Logger.warning | Harmon | 2020-02-16 | 2 | -2/+2 |
| | |||||
* | Remove and replace compat.text_type | Harmon | 2020-02-08 | 2 | -5/+3 |
| | |||||
* | Remove and replace compat.string_types | Harmon | 2020-02-08 | 2 | -4/+2 |
| | |||||
* | Remove checks for Python 2 and/or 3 | Harmon | 2020-02-08 | 1 | -4/+1 |
| | |||||
* | Remove and replace compat.xrange | Harmon | 2020-02-08 | 1 | -2/+1 |
| | |||||
* | Remove and replace compat.bchr | Harmon | 2020-02-08 | 1 | -3/+2 |
| | |||||
* | Remove compat.byte_ord | Harmon | 2020-02-08 | 1 | -5/+4 |
| | |||||
* | Added parsing for '@1400000000 +0000' date format as used by git commit hooks. | Dries | 2019-12-29 | 1 | -0/+2 |
| | |||||
* | Merge branch 'fix/deepsource-issues' of github.com:imkaka/GitPython into ↵ | Anil Khatri | 2019-10-23 | 1 | -0/+3 |
|\ | | | | | | | fix/deepsource-issues | ||||
| * | Merge branch 'master' into fix/deepsource-issues | Anil Khatri | 2019-10-23 | 1 | -0/+3 |
| |\ | |||||
| | * | Fix pickling of tzoffset | Uwe L. Korn | 2019-10-19 | 1 | -0/+3 |
| | | | | | | | | | | | | Fixes #650 | ||||
* | | | resolved all minor issues arised by last fix patch | Anil Khatri | 2019-10-23 | 1 | -1/+1 |
|/ / | |||||
* | | fix Loop variable used outside the loop | Anil Khatri | 2019-10-23 | 1 | -1/+1 |
|/ | |||||
* | removed Unnecessary “else” after “return” | Pratik Anurag | 2019-10-15 | 1 | -2/+1 |
| | |||||
* | removed Unnecessary “else” after “return” | Pratik Anurag | 2019-10-15 | 1 | -2/+1 |
| | |||||
* | removed trailing whitespaces | Pratik Anurag | 2019-10-15 | 1 | -2/+2 |
| | |||||
* | 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 | -1/+1 |
| | |||||
* | renamed unused variables | Pratik Anurag | 2019-10-15 | 1 | -2/+2 |
| | |||||
* | changed unused variables assingment | Pratik Anurag | 2019-10-15 | 1 | -1/+1 |
| | |||||
* | fix decoding problem | ishepard | 2019-09-16 | 1 | -2/+3 |
| | |||||
* | Fix #889: Add DeepSource config and fix some major issues | Mohit Solanki | 2019-09-10 | 1 | -3/+2 |
| | |||||
* | Skip on keyerror | Santos Gallegos | 2019-07-20 | 1 | -2/+3 |
| | |||||
* | Don't assume there is a tag author in tags | Sebastian Thiel | 2019-07-06 | 1 | -2/+3 |
| | | | | Fixes #842 | ||||
* | Update commit.py constructor docstring | David Host | 2019-03-15 | 1 | -1/+1 |
| | | | Fixes issue #806: Commit requires author parameter to be of Actor type, not string. | ||||
* | The proper way is return, not raise StopIteration | Michael Käufl | 2018-10-21 | 1 | -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 ↵ | ishepard | 2018-04-04 | 1 | -2/+5 |
| | | | | | | greater or lower than 24 hours. Add tests that exercise the new behaviour | ||||
* | Rewrite unnecessary dict/list/tuple calls as literals | Hugo | 2018-03-18 | 7 | -16/+16 |
| | |||||
* | Drop support for EOL Python 2.6 | Hugo | 2018-03-18 | 1 | -4/+1 |
| | |||||
* | Remove trailing slash on drive path | Charles Bouchard-Légaré | 2017-11-16 | 1 | -1/+1 |
| | |||||
* | Store submodule name | John Kirkham | 2017-10-01 | 1 | -1/+3 |
| | |||||
* | BF: use get, not casting get_value while dealing with submodule path/url etc | Yaroslav Halchenko | 2017-09-19 | 1 | -5/+5 |
| | |||||
* | Spelling fixes | Ville Skyttä | 2017-03-09 | 3 | -5/+5 |
| | |||||
* | Fix git.Commit docs typo | Reuben Sutton | 2017-02-02 | 1 | -1/+1 |
| | |||||
* | Merge pull request #541 from andy-maier/py26_fixes | Sebastian Thiel | 2016-12-08 | 1 | -1/+4 |
|\ | | | | | Fixes to support Python 2.6 again. | ||||
| * | Fixes to support Python 2.6 again. | Andreas Maier | 2016-10-24 | 1 | -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): flake8 | Sebastian Thiel | 2016-12-08 | 1 | -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 setup | Sebastian Thiel | 2016-12-08 | 1 | -1/+1 |
|/ | | | | Fixes #545 | ||||
* | Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵ | Sebastian Thiel | 2016-10-22 | 5 | -69/+68 |
|\ | | | | | | | ankostis-cygwin | ||||
| * | Merge with #532, fix unicode filenames with escapesurogates | Kostis Anagnostopoulos | 2016-10-16 | 1 | -5/+2 |
| |\ |