summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@oddbit.com>2021-02-15 18:24:28 -0500
committerLars Kellogg-Stedman <lars@oddbit.com>2021-02-15 19:50:12 -0500
commit36811a2edc410589b5fde4d47d8d3a8a69d995ae (patch)
tree29ae8aba585cad35926f7cf812418e2d83b9bfba /git/cmd.py
parente1cd58ba862cce9cd9293933acd70b1a12feb5a8 (diff)
downloadgitpython-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