You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/v3/git/trees.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,16 +37,22 @@ a new tree out.
37
37
### Parameters
38
38
39
39
base_tree
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.
40
+
: optional _String_ of the SHA1 of the tree you want to update with new data.
41
+
If you don't set this, the commit will be created on top of everything,
42
+
however, it will only contain your change, the rest of your files will show up
43
+
as deleted.
41
44
42
45
tree
43
-
: _Array_ of _Hash_ objects (of `path`, `mode`, `type` and `sha`) specifying a tree structure
46
+
: _Array_ of _Hash_ objects (of `path`, `mode`, `type` and `sha`) specifying a
47
+
tree structure
44
48
45
49
tree.path
46
50
: _String_ of the file referenced in the tree
47
51
48
52
tree.mode
49
-
: _String_ of the file mode - one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit) or `120000` for a blob that specifies the path of a symlink
53
+
: _String_ of the file mode - one of `100644` for file (blob), `100755` for
54
+
executable (blob), `040000` for subdirectory (tree), `160000` for submodule
55
+
(commit) or `120000` for a blob that specifies the path of a symlink
50
56
51
57
tree.type
52
58
: _String_ of `blob`, `tree`, `commit`
@@ -55,7 +61,8 @@ tree.sha
55
61
: _String_ of SHA1 checksum ID of the object in the tree
56
62
57
63
tree.content
58
-
: _String_ of content you want this file to have - GitHub will write this blob out and use that SHA for this entry. Use either this or `tree.sha`
64
+
: _String_ of content you want this file to have - GitHub will write this blob
65
+
out and use that SHA for this entry. Use either this or `tree.sha`
0 commit comments