From: Carl Worth Date: Fri, 28 Sep 2007 05:10:12 +0000 (-0700) Subject: Mention -n as an alias for--max-count X-Git-Url: https://git.cworth.org/git?p=hgbook-git;a=commitdiff_plain;h=773b47a3a6c98a1503db455d2892975cb055ee62 Mention -n as an alias for--max-count --- diff --git a/tour.mdwn b/tour.mdwn index 6a43df9..56690e1 100644 --- a/tour.mdwn +++ b/tour.mdwn @@ -396,8 +396,8 @@ created: $ git log --since="2 weeks ago" --until="yesterday" -Another useful option is --max-count which, unsurprisingly, limits the -maximum number of commits to be displayed. +Another useful option is -n or --max-count which, unsurprisingly, +limits the maximum number of commits to be displayed. #### 2.4.3 More detailed information @@ -439,7 +439,7 @@ looks suspicous, so let's tak a closer look. Remember that we can name it as master~3, HEAD~3, or any prefix of its commit identifier, (such as 13ed136b): - $ git log -p --max-count=1 13ed136b + $ git log -p -n 1 13ed136b commit 13ed136b983a9c439eddeea8a1c2076cffbb685f Author: Bryan O'Sullivan Date: Tue Sep 6 13:15:43 2005 -0700