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/refs.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,20 +46,21 @@ For a full refs listing, you'll get something that looks like:
46
46
47
47
### Parameters
48
48
49
-
Name | Type | Description
49
+
Name | Type | Description
50
50
-----|------|--------------
51
51
`ref`|`type`| The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
52
52
`sha`|`type`| The SHA1 value to set this reference to
`sha`|`type`| The SHA1 value to set this reference to
74
75
`force`|`boolean`| Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work. Default: `false`
Copy file name to clipboardExpand all lines: content/v3/git/trees.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,14 @@ a new tree out.
36
36
37
37
### Parameters
38
38
39
-
Name | Type | Description
39
+
Name | Type | Description
40
40
-----|------|--------------
41
41
`tree`|`array` of `hash`es | **Required**. Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure
42
42
`base_tree`| `string` | The SHA1 of the tree you want to update with new data. If you don't set this, 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.
43
43
44
44
The `tree` parameter takes the following keys:
45
45
46
-
Name | Type | Description
46
+
Name | Type | Description
47
47
-----|------|--------------
48
48
`path`|`string`| The file referenced in the tree
49
49
`mode`|`string`| 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
0 commit comments