diff options
author | Lars Kellogg-Stedman <lars@oddbit.com> | 2021-02-15 18:24:28 -0500 |
---|---|---|
committer | Lars Kellogg-Stedman <lars@oddbit.com> | 2021-02-15 19:50:12 -0500 |
commit | 36811a2edc410589b5fde4d47d8d3a8a69d995ae (patch) | |
tree | 29ae8aba585cad35926f7cf812418e2d83b9bfba /git/cmd.py | |
parent | e1cd58ba862cce9cd9293933acd70b1a12feb5a8 (diff) | |
download | gitpython-36811a2edc410589b5fde4d47d8d3a8a69d995ae.tar.gz |
add replace method to git.Commit
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
Diffstat (limited to 'git/cmd.py')
0 files changed, 0 insertions, 0 deletions