Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy