|
|
|
@ -554,7 +554,7 @@
|
|
|
|
|
<a href="#blobs" class="toc-h2 toc-link" data-title="获取仓库blobs内容">获取仓库blobs内容</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#28d27a81d5" class="toc-h2 toc-link" data-title="获取仓库贡献者">获取仓库贡献者</a>
|
|
|
|
|
<a href="#blame" class="toc-h2 toc-link" data-title="获取单个提交的blame信息">获取单个提交的blame信息</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#webhooks" class="toc-h2 toc-link" data-title="获取仓库webhooks列表">获取仓库webhooks列表</a>
|
|
|
|
@ -9662,19 +9662,16 @@ http://localhost:3000/api/v1/yystopf/csfjkkj/git/trees/80dd40214a58622312393b2ae
|
|
|
|
|
<aside class="success">
|
|
|
|
|
Success Data.
|
|
|
|
|
</aside>
|
|
|
|
|
<h2 id='28d27a81d5'>获取仓库贡献者</h2>
|
|
|
|
|
<p>获取仓库贡献者</p>
|
|
|
|
|
<h2 id='blame'>获取单个提交的blame信息</h2>
|
|
|
|
|
<p>根据commit ID获取blame信息</p>
|
|
|
|
|
|
|
|
|
|
<blockquote>
|
|
|
|
|
<p>示例:</p>
|
|
|
|
|
</blockquote>
|
|
|
|
|
<div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="nt">-X</span> GET <span class="se">\</span>
|
|
|
|
|
<span class="nt">-d</span> <span class="s2">"ref=master"</span> <span class="se">\</span>
|
|
|
|
|
<span class="nt">-d</span> <span class="s2">"filepath=lib"</span> <span class="se">\</span>
|
|
|
|
|
http://localhost:3000/api/yystopf/csfjkkj/contributors.json
|
|
|
|
|
</code></pre></div><div class="highlight"><pre class="highlight javascript tab-javascript"><code><span class="k">await</span> <span class="nx">octokit</span><span class="p">.</span><span class="nx">request</span><span class="p">(</span><span class="dl">'</span><span class="s1">GET /api/yystopf/csfjkkj/contributors.json</span><span class="dl">'</span><span class="p">)</span>
|
|
|
|
|
<div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="nt">-X</span> GET http://localhost:3000/api/v1/yystopf/csfjkkj/commits/80dd40214a58622312393b2ae693756a4781fab2/diff.json
|
|
|
|
|
</code></pre></div><div class="highlight"><pre class="highlight javascript tab-javascript"><code><span class="k">await</span> <span class="nx">octokit</span><span class="p">.</span><span class="nx">request</span><span class="p">(</span><span class="dl">'</span><span class="s1">GET /api/v1/yystopf/csfjkkj/commits/80dd40214a58622312393b2ae693756a4781fab2/diff.json</span><span class="dl">'</span><span class="p">)</span>
|
|
|
|
|
</code></pre></div><h3 id='http-22'>HTTP 请求</h3>
|
|
|
|
|
<p><code>GET /api/:owner/:repo/contributors.json</code></p>
|
|
|
|
|
<p><code>GET /api/v1/:owner/:repo/commits/:sha/diff.json</code></p>
|
|
|
|
|
<h3 id='2eb6f47757-22'>请求参数:</h3>
|
|
|
|
|
<table><thead>
|
|
|
|
|
<tr>
|
|
|
|
@ -9700,18 +9697,11 @@ http://localhost:3000/api/yystopf/csfjkkj/contributors.json
|
|
|
|
|
<td>项目标识identifier</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>ref</td>
|
|
|
|
|
<td>否</td>
|
|
|
|
|
<td>sha</td>
|
|
|
|
|
<td>是</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td>分支名称、tag名称或是提交记录id,默认为整个仓库</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>filepath</td>
|
|
|
|
|
<td>否</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td>子目录名称,默认为空</td>
|
|
|
|
|
<td>提交记录id</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody></table>
|
|
|
|
|
<h3 id='7447e4874e-22'>返回字段说明:</h3>
|
|
|
|
@ -9723,34 +9713,149 @@ http://localhost:3000/api/yystopf/csfjkkj/contributors.json
|
|
|
|
|
</tr>
|
|
|
|
|
</thead><tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>total_count</td>
|
|
|
|
|
<td>integer</td>
|
|
|
|
|
<td>贡献者数量</td>
|
|
|
|
|
<td>file_nums</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td>文件数量</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>contributions</td>
|
|
|
|
|
<td>integer</td>
|
|
|
|
|
<td>贡献数量</td>
|
|
|
|
|
<td>total_addition</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td>新增行数</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>login</td>
|
|
|
|
|
<td>total_deletion</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td>删除行数</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.name</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td>用户登录名</td>
|
|
|
|
|
<td>文件名称</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>type</td>
|
|
|
|
|
<td>files.oldname</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td>用户类型</td>
|
|
|
|
|
<td>文件修改前名称</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>name</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td>用户昵称</td>
|
|
|
|
|
<td>files.addition</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td>文件新增行数</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>image_url</td>
|
|
|
|
|
<td>files.deletion</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td>文件删除行数</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.type</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td>文件类型 1: 新增 2: 更改 3: 删除 4: 重命名 5: 复制</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_created</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td>是否为新建文件</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_deleted</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td>是否为删除文件</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_bin</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td>是否为二进制文件</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_lfs_file</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_renamed</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td>是否重命名</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_ambiguous</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.is_submodule</td>
|
|
|
|
|
<td>bool</td>
|
|
|
|
|
<td>是否为子模块</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.file_name</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td>用户头像</td>
|
|
|
|
|
<td>文件名称</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.name</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.left_index</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.right_index</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.match</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.type</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.content</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_path</td>
|
|
|
|
|
<td>string</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_last_left_index</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_last_right_index</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_left_index</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_right_index</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_left_hunk_size</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>files.sections.lines.section_right_hunk_size</td>
|
|
|
|
|
<td>int</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody></table>
|
|
|
|
|
|
|
|
|
@ -9758,23 +9863,103 @@ http://localhost:3000/api/yystopf/csfjkkj/contributors.json
|
|
|
|
|
<p>返回的JSON示例:</p>
|
|
|
|
|
</blockquote>
|
|
|
|
|
<div class="highlight"><pre class="highlight json tab-json"><code><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"contributors"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
|
|
|
|
|
</span><span class="nl">"file_nums"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"total_addition"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"total_deletion"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"files"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"contributions"</span><span class="p">:</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"login"</span><span class="p">:</span><span class="w"> </span><span class="s2">"testforge2"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"User"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"testforge2"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"image_url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"system/lets/letter_avatars/2/T/236_177_85/120.png"</span><span class="w">
|
|
|
|
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng3"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"oldname"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng3"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"addition"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"deletion"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_created"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_deleted"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_bin"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_lfs_file"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_renamed"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_ambiguous"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_submodule"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"sections"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"file_name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng3"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"lines"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"match"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">"@@ -0,0 +1 @@"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng3"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_last_left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_last_right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_left_hunk_size"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_right_hunk_size"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w">
|
|
|
|
|
</span><span class="p">},</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"match"</span><span class="p">:</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">"+1111122222"</span><span class="w">
|
|
|
|
|
</span><span class="p">}</span><span class="w">
|
|
|
|
|
</span><span class="p">]</span><span class="w">
|
|
|
|
|
</span><span class="p">}</span><span class="w">
|
|
|
|
|
</span><span class="p">],</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_incomplete"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_incomplete_line_too_long"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_protected"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="w">
|
|
|
|
|
</span><span class="p">},</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"contributions"</span><span class="p">:</span><span class="w"> </span><span class="mi">79</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"login"</span><span class="p">:</span><span class="w"> </span><span class="s2">"yystopf"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"User"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"yystopf"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"image_url"</span><span class="p">:</span><span class="w"> </span><span class="s2">"system/lets/letter_avatars/2/Y/241_125_89/120.png"</span><span class="w">
|
|
|
|
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng4"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"oldname"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng4"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"addition"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"deletion"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_created"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_deleted"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_bin"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_lfs_file"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_renamed"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_ambiguous"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_submodule"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"sections"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"file_name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng4"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"lines"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"match"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">"@@ -0,0 +1 @@"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"xinzeng4"</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_last_left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_last_right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_left_hunk_size"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"section_right_hunk_size"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="w">
|
|
|
|
|
</span><span class="p">},</span><span class="w">
|
|
|
|
|
</span><span class="p">{</span><span class="w">
|
|
|
|
|
</span><span class="nl">"left_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"right_index"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"match"</span><span class="p">:</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">"+111112222"</span><span class="w">
|
|
|
|
|
</span><span class="p">}</span><span class="w">
|
|
|
|
|
</span><span class="p">]</span><span class="w">
|
|
|
|
|
</span><span class="p">}</span><span class="w">
|
|
|
|
|
</span><span class="p">],</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_incomplete"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_incomplete_line_too_long"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
|
|
|
|
|
</span><span class="nl">"is_protected"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="w">
|
|
|
|
|
</span><span class="p">}</span><span class="w">
|
|
|
|
|
</span><span class="p">],</span><span class="w">
|
|
|
|
|
</span><span class="nl">"total_count"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="w">
|
|
|
|
|
</span><span class="p">]</span><span class="w">
|
|
|
|
|
</span><span class="p">}</span><span class="w">
|
|
|
|
|
</span></code></pre></div>
|
|
|
|
|
<aside class="success">
|
|
|
|
|