summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
Commit message (Collapse)AuthorAgeFilesLines
* Add final types to commit.pyYobmod2021-07-311-3/+3
|
* Fix more missing types in Symbolic.py, cos GuthubActions pytest stuckYobmod2021-07-281-0/+1
|
* Replace all Typeguard with cast, revert update to typing-extensions==3.10.0Yobmod2021-07-241-9/+12
|
* Make types in refs compatible with objectsYobmod2021-07-191-9/+12
|
* Increase mypy strictness (no_implicit_optional & warn_redundant_casts) and ↵Yobmod2021-07-081-1/+1
| | | | fix errors
* Make Commit.message bytes | strYobmod2021-07-011-6/+9
|
* Add missed types to Commit, uncomment to_native_path_linux()Yobmod2021-07-011-31/+51
|
* Type Traversable.traverse() better, start types of submoduleYobmod2021-06-301-15/+31
|
* Make IterableList generic and update throughoutYobmod2021-06-241-2/+2
|
* Update typing-extensions version in requirements.txtYobmod2021-06-231-7/+13
|
* 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>
* Remove and replace compat.text_typeHarmon2020-02-081-2/+1
|
* removed Unnecessary “else” after “return”Pratik Anurag2019-10-151-2/+1
|
* removed trailing whitespacesPratik Anurag2019-10-151-1/+1
|
* renamed unused variablesPratik Anurag2019-10-151-1/+1
|
* fix decoding problemishepard2019-09-161-2/+3
|
* Update commit.py constructor docstringDavid Host2019-03-151-1/+1
| | | Fixes issue #806: Commit requires author parameter to be of Actor type, not string.
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-181-2/+2
|
* Spelling fixesVille Skyttä2017-03-091-1/+1
|
* Fix git.Commit docs typoReuben Sutton2017-02-021-1/+1
|
* Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel2016-10-221-1/+1
|\ | | | | | | ankostis-cygwin
| * src: reduce needless deps to `gitdb.util`Kostis Anagnostopoulos2016-10-161-1/+1
| |
* | Fix some typosSantiago Castro2016-10-201-2/+2
|/
* src: No PyDev warningsKostis Anagnostopoulos2016-10-041-2/+2
| | | | | | | | + 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
* fix(commit): handle gpgsig properlySebastian Thiel2016-08-211-5/+10
| | | | | | | Assure that gpgsig is not initialized with None to allow the automatic deserialization to kick in. Fixes #500
* Fixed 'TypeError: decode() takes no keyword arguments' on Python 2.6Andreas Maier2016-06-011-3/+3
|
* Ignore invalid data when decoding commit objectsfix-for-invalid-data-in-commitsVincent Driessen2016-05-301-3/+3
| | | | | | Previously, GitPython chokes on this while decoding. Rather than choking, instead accept the error and replace the invalid bytes by the � (\x80) char.
* Add support for getting "aware" datetime infoVincent Driessen2016-04-191-1/+10
| | | | | | | | | | | | | | | | This adds 2 properties to commits. Their values are derived from the existing data stored on them, but this makes them more conveniently queryable: - authored_datetime - committed_datetime These return "aware" datetimes, so they are effectively companions to their raw timestamp equivalents, respectively `authored_date` and `committed_date`. These datetime instances are convenient structures since they show the author-local commit date and their UTC offset.
* fix(commit): respect daylight saving when computing utc-offsetSebastian Thiel2015-11-081-2/+6
| | | | Related to #362
* Added two extra paramaters for commit to take author date and commit dateavi2015-07-171-3/+10
|
* Added NullHandlers to all loggers to preven "No handler" messagesJames Nowell2015-06-251-0/+1
| | | | | | | | When the code is run without setting up loggers, the loggers have no handlers for the emitted messages. The logging module displays: `No handlers could be found for logger "git.cmd"` on the console. By adding a NullHandler (a no-op) the message disappears, and doesn't affect logging when other handlers are configured.
* Fix type error (startswith expects bytes)John L. Walker2015-05-131-1/+1
|
* fix(iter-commit): ambiguous argument errorSebastian Thiel2015-03-021-2/+5
| | | | | | | | | | | | | | | In repositories like > git branch -a * test > ls test `repo.iter_commits` failed due to an ambigous argument (`'git rev-list test`). Now this cannot happen anymore. fixes #264
* Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel2015-01-211-1/+8
| | | | | | GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
* suppression des prefixes de commitfirm12015-01-071-1/+1
|
* Make flake8 happySebastian Thiel2015-01-061-4/+4
|
* test_commit works once againSebastian Thiel2015-01-051-2/+2
|
* Fixes test_blob and improved commit writing/readingSebastian Thiel2015-01-051-20/+24
|
* Added test of #147 to verify it works.Sebastian Thiel2015-01-051-16/+9
| | | | Applied a few more fixes to commit implementation, possibly not the last
* Fixed io types to make tests work on PY2 once again.py3Sebastian Thiel2015-01-051-3/+3
| | | | Now it's about going through PY3 issues
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-3/+4
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* initial set of adjustments to make (most) imports work.Sebastian Thiel2015-01-041-8/+7
| | | | More to come, especially when it's about strings
* Replaced ordered dict with standard version; used logging moduleSebastian Thiel2015-01-041-6/+8
| | | | All performance tests still print to stderr, but do so in a py3 compatible way
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-2/+2
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Applied autopep8Sebastian Thiel2014-11-191-26/+29
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* Assure API remains backwards compatible; update API docsSebastian Thiel2014-11-171-2/+4
|
* Merge branch '0.3' of https://github.com/firm1/GitPython into firm1-0.3Sebastian Thiel2014-11-171-3/+3
|\ | | | | | | | | | | | | | | | | | | Fixed most pressing issues, more to come in next commit as we introduced a regression here. Conflicts: git/objects/commit.py git/refs/log.py git/refs/symbolic.py
| * add param to create_from_treefirm12014-03-241-3/+8
| |
* | pep8 linting (trailing whitespace)Antoine Musso2014-11-161-33/+33
| | | | | | | | W291 trailing whitespace