User Tools

Site Tools


git_shortlog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_shortlog [2019/02/28 21:21]
rpjday [(Some) OPTIONS]
git_shortlog [2019/03/18 12:45] (current)
rpjday [Examples]
Line 3: Line 3:
 Most useful options for ''​git shortlog'',​ using "Pro Git" book repo as an example. Most useful options for ''​git shortlog'',​ using "Pro Git" book repo as an example.
  
 +===== SYNOPSIS =====
 +
 +Part of it:
 +
 +<​code>​
 +git shortlog [<​options>​] [<​revision range>] [[--] <​path>​...]
 +</​code>​
 ===== (Some) OPTIONS ===== ===== (Some) OPTIONS =====
  
Line 56: Line 63:
  
 <​code>​ <​code>​
-git shortlog -n+git shortlog -n
 Ben Straub (803): Ben Straub (803):
       Fix markdown H4's (convert into asciidoc H5's)       Fix markdown H4's (convert into asciidoc H5's)
Line 87: Line 94:
 </​code>​ </​code>​
  
-Finally, don't count merge commits:+Don't count merge commits:
  
 <​code>​ <​code>​
-git shortlog -n -s --no-merges+git shortlog -n -s --no-merges
    ​803 ​ Ben Straub    ​803 ​ Ben Straub
    ​306 ​ Scott Chacon    ​306 ​ Scott Chacon
Line 103: Line 110:
     10  Sanders Kleinfeld     10  Sanders Kleinfeld
     ... snip ...     ... snip ...
 +</​code>​
 +
 +Restrict to a pathspec:
 +
 +<​code>​
 +$ git shortlog -n -s --no-merges -- images
 +     ​5 ​ Scott Chacon
 +     ​2 ​ Adrien Ollier
 +     ​1 ​ Ben Straub
 +     ​1 ​ Duncan Dean
 +     ​1 ​ Yunhai Luo
 +     $
 </​code>​ </​code>​
git_shortlog.1551388903.txt.gz ยท Last modified: 2019/02/28 21:21 by rpjday