git-summary: add missing example of --line option

This commit is contained in:
spacewander 2019-10-15 10:13:32 +08:00
parent fd36fc0ea2
commit cf3e1e7e7d
3 changed files with 49 additions and 5 deletions

View file

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-SUMMARY" "1" "July 2019" "" "Git Extras"
.TH "GIT\-SUMMARY" "1" "October 2019" "" "Git Extras"
.
.SH "NAME"
\fBgit\-summary\fR \- Show repository summary
@ -75,6 +75,27 @@ $ git summary v42\.\.
.
.IP "" 0
.
.P
Outputs a repo summary by line:
.
.IP "" 4
.
.nf
$ git summary \-\-line
project : git\-extras
lines : 26820
authors :
\.\.\.
.
.fi
.
.IP "" 0
.
.P
The commitish is ignored when \-\-line is specified\.
.
.SH "AUTHOR"
Written by Tj Holowaychuk <\fItj@vision\-media\.ca\fR>
.

View file

@ -131,9 +131,21 @@ authors :
<pre><code>$ git summary v42..
</code></pre>
<p> Outputs a repo summary by line:</p>
<pre><code>$ git summary --line
project : git-extras
lines : 26820
authors :
...
</code></pre>
<p> The commitish is ignored when --line is specified.</p>
<h2 id="AUTHOR">AUTHOR</h2>
<p>Written by Tj Holowaychuk &lt;<a href="&#109;&#97;&#x69;&#x6c;&#x74;&#111;&#58;&#116;&#x6a;&#x40;&#118;&#x69;&#x73;&#x69;&#x6f;&#x6e;&#45;&#x6d;&#x65;&#100;&#x69;&#97;&#46;&#x63;&#x61;" data-bare-link="true">&#x74;&#106;&#64;&#x76;&#x69;&#115;&#105;&#111;&#110;&#x2d;&#x6d;&#101;&#x64;&#105;&#97;&#46;&#99;&#x61;</a>&gt;</p>
<p>Written by Tj Holowaychuk &lt;<a href="&#x6d;&#97;&#105;&#108;&#116;&#x6f;&#58;&#x74;&#x6a;&#64;&#118;&#x69;&#115;&#105;&#x6f;&#110;&#45;&#x6d;&#x65;&#100;&#x69;&#x61;&#46;&#99;&#x61;" data-bare-link="true">&#x74;&#x6a;&#64;&#118;&#105;&#x73;&#x69;&#x6f;&#110;&#x2d;&#x6d;&#x65;&#x64;&#105;&#x61;&#x2e;&#99;&#97;</a>&gt;</p>
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
@ -146,7 +158,7 @@ authors :
<ol class='man-decor man-foot man foot'>
<li class='tl'></li>
<li class='tc'>July 2019</li>
<li class='tc'>October 2019</li>
<li class='tr'>git-summary(1)</li>
</ol>

View file

@ -12,12 +12,12 @@ Shows a summary of the repository.
## OPTIONS
&lt;commitish&gt;
Summarize only the range of commits included in the &lt;commitish&gt;.
--line
Summarize with lines other than commits.
Summarize with lines other than commits.
Any &lt;commitish&gt; is ignored when --line is specified.
## EXAMPLES
@ -56,6 +56,17 @@ Shows a summary of the repository.
$ git summary v42..
Outputs a repo summary by line:
$ git summary --line
project : git-extras
lines : 26820
authors :
...
The commitish is ignored when --line is specified.
## AUTHOR
Written by Tj Holowaychuk &lt;<tj@vision-media.ca>&gt;