summaryrefslogtreecommitdiff
path: root/src/git2/tree.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-01-28 02:41:59 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-01 05:04:49 -0500
commit89f9fc6f4b1a17b8318a0f11a51c967f1504ed34 (patch)
tree985000b4ac77d501c4a7e057705fba9edcb1c10d /src/git2/tree.h
parent75e051c682255a3c9428200c20c733ec06137b99 (diff)
downloadlibgit2-89f9fc6f4b1a17b8318a0f11a51c967f1504ed34.tar.gz
Make git_tree_clear_entries visible to the user
Diffstat (limited to 'src/git2/tree.h')
-rw-r--r--src/git2/tree.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/git2/tree.h b/src/git2/tree.h
index fedf2b7c3..6f79ac455 100644
--- a/src/git2/tree.h
+++ b/src/git2/tree.h
@@ -205,6 +205,16 @@ GIT_EXTERN(int) git_tree_remove_entry_byindex(git_tree *tree, int idx);
GIT_EXTERN(int) git_tree_remove_entry_byname(git_tree *tree, const char *filename);
/**
+ * Clear all the entries in a tree.
+ *
+ * This will mark the tree as modified; the modified entry will
+ * be written back to disk on the next git_object_write().
+ *
+ * @param tree Tree object whose entries are to be sorted
+ */
+GIT_EXTERN(void) git_tree_clear_entries(git_tree *tree);
+
+/**
* Change the SHA1 id of a tree entry.
*
* This will mark the tree that contains the entry as modified;