summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
Commit message (Collapse)AuthorAgeFilesLines
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-181-35/+11
|
* Run everything through 'black'Sebastian Thiel2022-05-181-119/+220
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Fix various typosluz paz2022-05-071-2/+2
| | | Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`
* Fix doc string error in Objects.CommitTakuya Kitazawa2022-01-101-2/+2
|
* Use git interpret-trailers for trailers propertyKet3r2022-01-071-17/+26
| | | | | | | The whitespace handling and trailer selection isn't very trivial or good documented. It therefore seemed easier and less error prone to just call git to parse the message for the trailers section and remove superfluos whitespaces.
* Add trailer as commit propertyPeter Kempter2022-01-071-1/+40
| | | | | | | | With the command `git interpret-trailers` git provides a way to interact with trailer lines in the commit messages that look similar to RFC 822 e-mail headers (see: https://git-scm.com/docs/git-interpret-trailers). The new property returns those parsed trailer lines from the message as dictionary.
* add type check to conf_encoding (in thoery could be bool or int)Yobmod2021-08-081-0/+2
|
* 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