2
2
layout : default
3
3
menu_item : api
4
4
title : Blob
5
- description : Version 0.19 .0
5
+ description : Version 0.24 .0
6
6
menu_item : api
7
7
return_to :
8
8
" API Documentation Index " : /api/
9
9
sections :
10
10
" createFromBuffer " : " #createFromBuffer"
11
11
" createFromDisk " : " #createFromDisk"
12
- " createFromStream " : " #createFromStream"
13
12
" createFromWorkdir " : " #createFromWorkdir"
14
- " createFromstreamCommit " : " #createFromstreamCommit"
15
13
" filteredContent " : " #filteredContent"
16
14
" lookup " : " #lookup"
17
15
" lookupPrefix " : " #lookupPrefix"
18
16
" #content " : " #content"
19
17
" #dup " : " #dup"
20
18
" #filemode " : " #filemode"
21
- " #free " : " #free"
22
19
" #id " : " #id"
23
20
" #isBinary " : " #isBinary"
24
21
" #owner " : " #owner"
@@ -62,23 +59,6 @@ Blob.createFromDisk(repo, path).then(function(oid) {
62
59
| --- | --- |
63
60
| [ Oid] ( /api/oid/ ) | return the id of the written blob |
64
61
65
- ## <a name =" createFromStream " ></a ><span >Blob.</span >createFromStream <span class =" tags " ><span class =" async " >Async</span ></span >
66
-
67
- ``` js
68
- Blob .createFromStream (repo, hintpath).then (function (writestream ) {
69
- // Use writestream
70
- });
71
- ```
72
-
73
- | Parameters | Type | |
74
- | --- | --- | --- |
75
- | repo | [ Repository] ( /api/repository/ ) | Repository where the blob will be written. This repository can be bare or not. |
76
- | hintpath | String | If not NULL, will be used to select data filters to apply onto the content of the blob to be created. |
77
-
78
- | Returns | |
79
- | --- | --- |
80
- | [ Writestream] ( /api/writestream/ ) | the stream into which to write |
81
-
82
62
## <a name =" createFromWorkdir " ></a ><span >Blob.</span >createFromWorkdir <span class =" tags " ><span class =" async " >Async</span ></span >
83
63
84
64
``` js
@@ -96,22 +76,6 @@ Blob.createFromWorkdir(repo, relative_path).then(function(oid) {
96
76
| --- | --- |
97
77
| [ Oid] ( /api/oid/ ) | return the id of the written blob |
98
78
99
- ## <a name =" createFromstreamCommit " ></a ><span >Blob.</span >createFromstreamCommit <span class =" tags " ><span class =" async " >Async</span ></span >
100
-
101
- ``` js
102
- Blob .createFromstreamCommit (stream).then (function (oid ) {
103
- // Use oid
104
- });
105
- ```
106
-
107
- | Parameters | Type | |
108
- | --- | --- | --- |
109
- | stream | [ Writestream] ( /api/writestream/ ) | the stream to close |
110
-
111
- | Returns | |
112
- | --- | --- |
113
- | [ Oid] ( /api/oid/ ) | the id of the new blob |
114
-
115
79
## <a name =" filteredContent " ></a ><span >Blob.</span >filteredContent <span class =" tags " ><span class =" async " >Async</span ></span >
116
80
117
81
``` js
@@ -203,12 +167,6 @@ Retrieve the Blob's type.
203
167
| --- | --- |
204
168
| Number | The filemode of the blob. |
205
169
206
- ## <a name =" free " ></a ><span >Blob#</span >free <span class =" tags " ><span class =" sync " >Sync</span ></span >
207
-
208
- ``` js
209
- blob .free ();
210
- ```
211
-
212
170
## <a name =" id " ></a ><span >Blob#</span >id <span class =" tags " ><span class =" sync " >Sync</span ></span >
213
171
214
172
``` js
0 commit comments