| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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.6.3 | ||
| 6 | + current_nodegit_version: 0.7.0 | ||
| 7 | 7 | other_nodegit_versions: | |
| 8 | 8 | - HEAD | |
| 9 | + - 0.6.3 | ||
| 9 | 10 | - 0.6.2 | |
| 10 | 11 | - 0.6.1 | |
| 11 | 12 | - 0.6.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,82 +32,82 @@ The relevant line | |||
| 32 | 32 | ## <a name="contentLen"></a><span>ConvenientLine#</span>contentLen <span class="tags"><span class="sync">Sync</span></span> | |
| 33 | 33 | ||
| 34 | 34 | ```js | |
| 35 | - var string = convenientLine.contentLen(); | ||
| 35 | + var number = convenientLine.contentLen(); | ||
| 36 | 36 | ``` | |
| 37 | 37 | ||
| 38 | - The content of the line | ||
| 38 | + Number of bytes in the string | ||
| 39 | 39 | ||
| 40 | 40 | | Returns | | | |
| 41 | 41 | | --- | --- | | |
| 42 | - | String | | | ||
| 42 | + | Number | | | ||
| 43 | 43 | ||
| 44 | 44 | ## <a name="contentOffset"></a><span>ConvenientLine#</span>contentOffset <span class="tags"><span class="sync">Sync</span></span> | |
| 45 | 45 | ||
| 46 | 46 | ```js | |
| 47 | - var string = convenientLine.contentOffset(); | ||
| 47 | + var number = convenientLine.contentOffset(); | ||
| 48 | 48 | ``` | |
| 49 | 49 | ||
| 50 | - The content of the line | ||
| 50 | + Offset in the original file to the content | ||
| 51 | 51 | ||
| 52 | 52 | | Returns | | | |
| 53 | 53 | | --- | --- | | |
| 54 | - | String | | | ||
| 54 | + | Number | | | ||
| 55 | 55 | ||
| 56 | 56 | ## <a name="newLineno"></a><span>ConvenientLine#</span>newLineno <span class="tags"><span class="sync">Sync</span></span> | |
| 57 | 57 | ||
| 58 | 58 | ```js | |
| 59 | - var string = convenientLine.newLineno(); | ||
| 59 | + var number = convenientLine.newLineno(); | ||
| 60 | 60 | ``` | |
| 61 | 61 | ||
| 62 | - The content of the line | ||
| 62 | + Line number in new file or -1 for deleted line | ||
| 63 | 63 | ||
| 64 | 64 | | Returns | | | |
| 65 | 65 | | --- | --- | | |
| 66 | - | String | | | ||
| 66 | + | Number | | | ||
| 67 | 67 | ||
| 68 | 68 | ## <a name="numLines"></a><span>ConvenientLine#</span>numLines <span class="tags"><span class="sync">Sync</span></span> | |
| 69 | 69 | ||
| 70 | 70 | ```js | |
| 71 | - var string = convenientLine.numLines(); | ||
| 71 | + var number = convenientLine.numLines(); | ||
| 72 | 72 | ``` | |
| 73 | 73 | ||
| 74 | - The content of the line | ||
| 74 | + Number of newline characters in content | ||
| 75 | 75 | ||
| 76 | 76 | | Returns | | | |
| 77 | 77 | | --- | --- | | |
| 78 | - | String | | | ||
| 78 | + | Number | | | ||
| 79 | 79 | ||
| 80 | 80 | ## <a name="oldLineno"></a><span>ConvenientLine#</span>oldLineno <span class="tags"><span class="sync">Sync</span></span> | |
| 81 | 81 | ||
| 82 | 82 | ```js | |
| 83 | - var string = convenientLine.oldLineno(); | ||
| 83 | + var number = convenientLine.oldLineno(); | ||
| 84 | 84 | ``` | |
| 85 | 85 | ||
| 86 | - The content of the line | ||
| 86 | + Line number in old file or -1 for added line | ||
| 87 | 87 | ||
| 88 | 88 | | Returns | | | |
| 89 | 89 | | --- | --- | | |
| 90 | - | String | | | ||
| 90 | + | Number | | | ||
| 91 | 91 | ||
| 92 | 92 | ## <a name="origin"></a><span>ConvenientLine#</span>origin <span class="tags"><span class="sync">Sync</span></span> | |
| 93 | 93 | ||
| 94 | 94 | ```js | |
| 95 | - var string = convenientLine.origin(); | ||
| 95 | + var diffLine = convenientLine.origin(); | ||
| 96 | 96 | ``` | |
| 97 | 97 | ||
| 98 | - The content of the line | ||
| 98 | + The type of the line (context, addition, deletion, etc...) | ||
| 99 | 99 | ||
| 100 | 100 | | Returns | | | |
| 101 | 101 | | --- | --- | | |
| 102 | - | String | | | ||
| 102 | + | [Diff.LINE](/api/diff/#LINE) | | | ||
| 103 | 103 | ||
| 104 | 104 | ## <a name="rawContent"></a><span>ConvenientLine#</span>rawContent <span class="tags"><span class="sync">Sync</span></span> | |
| 105 | 105 | ||
| 106 | 106 | ```js | |
| 107 | 107 | var string = convenientLine.rawContent(); | |
| 108 | 108 | ``` | |
| 109 | 109 | ||
| 110 | - The content of the line | ||
| 110 | + Pointer to diff text, not NUL-byte terminated | ||
| 111 | 111 | ||
| 112 | 112 | | Returns | | | |
| 113 | 113 | | --- | --- | | |
| Back | FazBrowse Home | New Git URL |
0 commit comments