Skip to content

Feature: Make commits with custom author_date and commit_date (closes #315) #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2015

Conversation

avinassh
Copy link
Contributor

As title says, now you can send custom datetime to the commit:

import git
...
repo = git.Repo.init(repo_path)
repo.index.add(['some_file'])
repo.index.commit(message, author_date=commit_date, commit_date=commit_date)

@Byron Byron added this to the v1.0.2 - Fixes milestone Jul 17, 2015
Byron added a commit that referenced this pull request Jul 17, 2015
Feature: Make commits with custom `author_date` and `commit_date` (closes #315)
@Byron Byron merged commit 58c78e6 into gitpython-developers:master Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants