Skip to content

Commit 2c4f930

Browse files
Updated documentation on trees
Had this issue while talking to the API. If you don't have the base_tree, it will put a commit on top, with the correct parent, but all the rest of your files will be deleted.
1 parent fb5feae commit 2c4f930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/v3/git/trees.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ a new tree out.
3737
### Parameters
3838

3939
base_tree
40-
: optional _String_ of the SHA1 of the tree you want to update with new data
40+
: optional _String_ of the SHA1 of the tree you want to update with new data. If you don't set this it the commit will be created on top of everything, however, it will only contain your change, the rest of your files will show up as deleted.
4141

4242
tree
4343
: _Array_ of _Hash_ objects (of `path`, `mode`, `type` and `sha`) specifying a tree structure

0 commit comments

Comments
 (0)