| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9abbfc0 commit 74ec7c7
110 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,9 +3,10 @@ title: NodeGit | |||
| 3 | 3 | description: Asynchronous native Node bindings to libgit2 | |
| 4 | 4 | url: "http://nodegit.org" | |
| 5 | 5 | date_format: "ordinal" | |
| 6 | - current_nodegit_version: 0.14.0 | ||
| 6 | + current_nodegit_version: 0.15.0 | ||
| 7 | 7 | other_nodegit_versions: | |
| 8 | 8 | - HEAD | |
| 9 | + - 0.14.0 | ||
| 9 | 10 | - 0.13.2 | |
| 10 | 11 | - 0.13.1 | |
| 11 | 12 | - 0.13.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: AnnotatedCommit | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: Attr | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: Blame | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: BlameHunk | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: BlameOptions | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,17 +2,20 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: Blob | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.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" | ||
| 12 | 13 | "createFromWorkdir": "#createFromWorkdir" | |
| 14 | + "createFromstreamCommit": "#createFromstreamCommit" | ||
| 13 | 15 | "lookup": "#lookup" | |
| 14 | 16 | "lookupPrefix": "#lookupPrefix" | |
| 15 | 17 | "#content": "#content" | |
| 18 | + "#dup": "#dup" | ||
| 16 | 19 | "#filemode": "#filemode" | |
| 17 | 20 | "#free": "#free" | |
| 18 | 21 | "#id": "#id" | |
@@ -55,6 +58,23 @@ var result = Blob.createFromDisk(id, repo, path); | |||
| 55 | 58 | | --- | --- | | |
| 56 | 59 | | Number | 0 or an error code | | |
| 57 | 60 | ||
| 61 | + ## <a name="createFromStream"></a><span>Blob.</span>createFromStream <span class="tags"><span class="async">Async</span></span> | ||
| 62 | + | ||
| 63 | + ```js | ||
| 64 | + Blob.createFromStream(repo, hintpath).then(function(writestream) { | ||
| 65 | + // Use writestream | ||
| 66 | + }); | ||
| 67 | + ``` | ||
| 68 | + | ||
| 69 | + | Parameters | Type | | | ||
| 70 | + | --- | --- | --- | | ||
| 71 | + | repo | [Repository](/api/repository/) | Repository where the blob will be written. This repository can be bare or not. | | ||
| 72 | + | hintpath | String | If not NULL, will be used to select data filters to apply onto the content of the blob to be created. | | ||
| 73 | + | ||
| 74 | + | Returns | | | ||
| 75 | + | --- | --- | | ||
| 76 | + | [Writestream](/api/writestream/) | the stream into which to write | | ||
| 77 | + | ||
| 58 | 78 | ## <a name="createFromWorkdir"></a><span>Blob.</span>createFromWorkdir <span class="tags"><span class="sync">Sync</span></span> | |
| 59 | 79 | ||
| 60 | 80 | ```js | |
@@ -71,6 +91,22 @@ var result = Blob.createFromWorkdir(id, repo, relative_path); | |||
| 71 | 91 | | --- | --- | | |
| 72 | 92 | | Number | 0 or an error code | | |
| 73 | 93 | ||
| 94 | + ## <a name="createFromstreamCommit"></a><span>Blob.</span>createFromstreamCommit <span class="tags"><span class="async">Async</span></span> | ||
| 95 | + | ||
| 96 | + ```js | ||
| 97 | + Blob.createFromstreamCommit(stream).then(function(oid) { | ||
| 98 | + // Use oid | ||
| 99 | + }); | ||
| 100 | + ``` | ||
| 101 | + | ||
| 102 | + | Parameters | Type | | | ||
| 103 | + | --- | --- | --- | | ||
| 104 | + | stream | [Writestream](/api/writestream/) | the stream to close | | ||
| 105 | + | ||
| 106 | + | Returns | | | ||
| 107 | + | --- | --- | | ||
| 108 | + | [Oid](/api/oid/) | the id of the new blob | | ||
| 109 | + | ||
| 74 | 110 | ## <a name="lookup"></a><span>Blob.</span>lookup <span class="tags"><span class="async">Async</span></span> | |
| 75 | 111 | ||
| 76 | 112 | ```js | |
@@ -120,6 +156,18 @@ Retrieve the content of the Blob. | |||
| 120 | 156 | | --- | --- | | |
| 121 | 157 | | Buffer | Contents as a buffer. | | |
| 122 | 158 | ||
| 159 | + ## <a name="dup"></a><span>Blob#</span>dup <span class="tags"><span class="async">Async</span></span> | ||
| 160 | + | ||
| 161 | + ```js | ||
| 162 | + blob.dup().then(function(blob) { | ||
| 163 | + // Use blob | ||
| 164 | + }); | ||
| 165 | + ``` | ||
| 166 | + | ||
| 167 | + | Returns | | | ||
| 168 | + | --- | --- | | ||
| 169 | + | [Blob](/api/blob/) | | | ||
| 170 | + | ||
| 123 | 171 | ## <a name="filemode"></a><span>Blob#</span>filemode <span class="tags"><span class="sync">Sync</span></span> | |
| 124 | 172 | ||
| 125 | 173 | ```js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: Branch | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: Buf | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | layout: default | |
| 3 | 3 | menu_item: api | |
| 4 | 4 | title: Cert | |
| 5 | - description: Version 0.14.0 | ||
| 5 | + description: Version 0.15.0 | ||
| 6 | 6 | menu_item: api | |
| 7 | 7 | return_to: | |
| 8 | 8 | "API Documentation Index": /api/ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments