22layout : default
33menu_item : api
44title : Blob
5- description : Version 0.19 .0
5+ description : Version 0.24 .0
66menu_item : api
77return_to :
88 " API Documentation Index " : /api/
99sections :
1010 " createFromBuffer " : " #createFromBuffer"
1111 " createFromDisk " : " #createFromDisk"
12- " createFromStream " : " #createFromStream"
1312 " createFromWorkdir " : " #createFromWorkdir"
14- " createFromstreamCommit " : " #createFromstreamCommit"
1513 " filteredContent " : " #filteredContent"
1614 " lookup " : " #lookup"
1715 " lookupPrefix " : " #lookupPrefix"
1816 " #content " : " #content"
1917 " #dup " : " #dup"
2018 " #filemode " : " #filemode"
21- " #free " : " #free"
2219 " #id " : " #id"
2320 " #isBinary " : " #isBinary"
2421 " #owner " : " #owner"
@@ -62,23 +59,6 @@ Blob.createFromDisk(repo, path).then(function(oid) {
6259| --- | --- |
6360| [ Oid] ( /api/oid/ ) | return the id of the written blob |
6461
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-
8262## <a name =" createFromWorkdir " ></a ><span >Blob.</span >createFromWorkdir <span class =" tags " ><span class =" async " >Async</span ></span >
8363
8464``` js
@@ -96,22 +76,6 @@ Blob.createFromWorkdir(repo, relative_path).then(function(oid) {
9676| --- | --- |
9777| [ Oid] ( /api/oid/ ) | return the id of the written blob |
9878
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-
11579## <a name =" filteredContent " ></a ><span >Blob.</span >filteredContent <span class =" tags " ><span class =" async " >Async</span ></span >
11680
11781``` js
@@ -203,12 +167,6 @@ Retrieve the Blob's type.
203167| --- | --- |
204168| Number | The filemode of the blob. |
205169
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-
212170## <a name =" id " ></a ><span >Blob#</span >id <span class =" tags " ><span class =" sync " >Sync</span ></span >
213171
214172``` js
0 commit comments