Skip to content

Commit 334a485

Browse files
committed
Trees are tree-like
1 parent fa893f9 commit 334a485

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/guides/101-samples/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,9 @@ error = git_index_write(idx);
845845

846846
<h3 id="index_trees">Trees</h3>
847847

848+
Note that all tree operations work recursively.
849+
For example, `git_index_read_tree` will replace not only the root directory, but all subdirectory contents as well.
850+
848851
```c
849852
/* Overwrite the index contents with those of a tree */
850853
git_tree *tree = NULL;

0 commit comments

Comments
 (0)