4
Removing a file just means removing its entry in the tree. The blob won't be
5
deleted because Git tries to preserve the history of your repository.
13
>>> c4.parents = [commit.id]
14
>>> c4.author = c4.committer = author
15
>>> c4.commit_time = c4.author_time = int(time())
16
>>> c4.commit_timezone = c4.author_timezone = tz
17
>>> c4.encoding = "UTF-8"
18
>>> c4.message = 'Removing "ham"'
20
Here we only have the new tree and the commit to save::
22
>>> object_store.add_object(spam)
23
>>> object_store.add_object(tree)
24
>>> object_store.add_object(c4)
26
And of course update the head::
28
>>> repo.refs['refs/heads/master'] = commit.id
30
If you don't trust me, ask ``git show``. ;-)