dulwich.index.Index(object)
class documentationdulwich.index
(View In Hierarchy)
Method | __init__ | Open an index file. |
Method | path | Undocumented |
Method | __repr__ | Undocumented |
Method | write | Write current contents of index to disk. |
Method | read | Read current contents of index from disk. |
Method | __len__ | Number of entries in this index file. |
Method | __getitem__ | Retrieve entry by relative path. |
Method | __iter__ | Iterate over the paths in this index. |
Method | get_sha1 | Return the (git object) SHA1 for the object at a path. |
Method | get_mode | Return the POSIX file mode for the object at a path. |
Method | iterobjects | Iterate over path, sha, mode tuples for use with commit_tree. |
Method | iterblobs | Undocumented |
Method | clear | Remove all contents from this index. |
Method | __setitem__ | Undocumented |
Method | __delitem__ | Undocumented |
Method | iteritems | Undocumented |
Method | items | Undocumented |
Method | update | Undocumented |
Method | changes_from_tree | Find the differences between the contents of this index and a tree. |
Method | commit | Create a new tree from an index. |
Returns | tuple with (ctime, mtime, dev, ino, mode, uid, gid, size, sha, flags) |
Parameters | object_store | Object store to use for retrieving tree contents |
tree | SHA1 of the root tree | |
want_unchanged | Whether unchanged files should be reported | |
Returns | Iterator over tuples with (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) |