@@ -17,25 +17,21 @@ sections:
1717 " FLAG " : " #FLAG"
1818---
1919
20- ## <a name =" file " ></a ><span >Blame.</span >file <span class =" tags " ><span class =" async " >Async</ span >< span class = " experimental " >Experimental </span ></span >
20+ ## <a name =" file " ></a ><span >Blame.</span >file <span class =" tags " ><span class =" sync " >Sync </span ></span >
2121
2222``` js
23- Blame .file (repo, path, options).then (function (blame ) {
24- // Use blame
25- });
23+ Blame .file (repo, path, [options]);
2624```
2725
26+ Retrieve the blame of a file
27+
2828| Parameters | Type | |
2929| --- | --- | --- |
30- | repo | [ Repository] ( /api/repository/ ) | repository whose history is to be walked |
31- | path | String | path to file to consider |
32- | options | [ BlameOptions] ( /api/blame_options/ ) | options for the blame operation. If NULL, this is treated as though GIT_BLAME_OPTIONS_INIT were passed. |
33-
34- | Returns | |
35- | --- | --- |
36- | [ Blame] ( /api/blame/ ) | |
30+ | repo | [ Repository] ( /api/repository/ ) | that contains the file |
31+ | path | String | to the file to get the blame of |
32+ | [ options] | [ BlameOptions] ( /api/blame_options/ ) | Options for the blame |
3733
38- ## <a name =" initOptions " ></a ><span >Blame.</span >initOptions <span class =" tags " ><span class =" sync " >Sync</span ><span class = " experimental " >Experimental</ span >< /span >
34+ ## <a name =" initOptions " ></a ><span >Blame.</span >initOptions <span class =" tags " ><span class =" sync " >Sync</span ></span >
3935
4036``` js
4137var result = Blame .initOptions (opts, version);
@@ -50,7 +46,7 @@ var result = Blame.initOptions(opts, version);
5046| --- | --- |
5147| Number | Zero on success; -1 on failure. |
5248
53- ## <a name =" buffer " ></a ><span >Blame#</span >buffer <span class =" tags " ><span class =" async " >Async</span ><span class = " experimental " >Experimental</ span >< /span >
49+ ## <a name =" buffer " ></a ><span >Blame#</span >buffer <span class =" tags " ><span class =" async " >Async</span ></span >
5450
5551``` js
5652blame .buffer (buffer, buffer_len).then (function (blame ) {
@@ -67,13 +63,13 @@ blame.buffer(buffer, buffer_len).then(function(blame) {
6763| --- | --- |
6864| [ Blame] ( /api/blame/ ) | |
6965
70- ## <a name =" free " ></a ><span >Blame#</span >free <span class =" tags " ><span class =" sync " >Sync</span ><span class = " experimental " >Experimental</ span >< /span >
66+ ## <a name =" free " ></a ><span >Blame#</span >free <span class =" tags " ><span class =" sync " >Sync</span ></span >
7167
7268``` js
7369blame .free ();
7470```
7571
76- ## <a name =" getHunkByIndex " ></a ><span >Blame#</span >getHunkByIndex <span class =" tags " ><span class =" sync " >Sync</span ><span class = " experimental " >Experimental</ span >< /span >
72+ ## <a name =" getHunkByIndex " ></a ><span >Blame#</span >getHunkByIndex <span class =" tags " ><span class =" sync " >Sync</span ></span >
7773
7874``` js
7975var blameHunk = blame .getHunkByIndex (index);
@@ -87,7 +83,7 @@ var blameHunk = blame.getHunkByIndex(index);
8783| --- | --- |
8884| [ BlameHunk] ( /api/blame_hunk/ ) | the hunk at the given index, or NULL on error |
8985
90- ## <a name =" getHunkByLine " ></a ><span >Blame#</span >getHunkByLine <span class =" tags " ><span class =" sync " >Sync</span ><span class = " experimental " >Experimental</ span >< /span >
86+ ## <a name =" getHunkByLine " ></a ><span >Blame#</span >getHunkByLine <span class =" tags " ><span class =" sync " >Sync</span ></span >
9187
9288``` js
9389var blameHunk = blame .getHunkByLine (lineno);
@@ -101,7 +97,7 @@ var blameHunk = blame.getHunkByLine(lineno);
10197| --- | --- |
10298| [ BlameHunk] ( /api/blame_hunk/ ) | the hunk that contains the given line, or NULL on error |
10399
104- ## <a name =" getHunkCount " ></a ><span >Blame#</span >getHunkCount <span class =" tags " ><span class =" sync " >Sync</span ><span class = " experimental " >Experimental</ span >< /span >
100+ ## <a name =" getHunkCount " ></a ><span >Blame#</span >getHunkCount <span class =" tags " ><span class =" sync " >Sync</span ></span >
105101
106102``` js
107103var result = blame .getHunkCount ();
0 commit comments