From d56b863919ff5d7248a4dc94b70a1523d28a75da Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Sun, 8 Oct 2017 06:01:10 -0400 Subject: [PATCH] A couple minor tweaks/clarifications to "Viewing History" section, Ch. 2 --- book/02-git-basics/sections/viewing-history.asc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/02-git-basics/sections/viewing-history.asc b/book/02-git-basics/sections/viewing-history.asc index 62298b75d..12af1934e 100644 --- a/book/02-git-basics/sections/viewing-history.asc +++ b/book/02-git-basics/sections/viewing-history.asc @@ -42,8 +42,8 @@ As you can see, this command lists each commit with its SHA-1 checksum, the auth A huge number and variety of options to the `git log` command are available to show you exactly what you're looking for. Here, we'll show you some of the most popular. -One of the more helpful options is `-p`, which shows the difference introduced in each commit. -You can also use `-2`, which limits the output to only the last two entries: +One of the more helpful options is `-p` or `--patch`, which shows the difference (the _patch_ output) introduced in each commit. +You can also limit the number of log entries displayed, such as using `-2` to show only the last two entries. [source,console] ---- @@ -227,7 +227,7 @@ Those are only some simple output-formatting options to `git log` – there are ==== Limiting Log Output In addition to output-formatting options, `git log` takes a number of useful limiting options – that is, options that let you show only a subset of commits. -You've seen one such option already – the `-2` option, which show only the last two commits. +You've seen one such option already – the `-2` option, which displays only the last two commits. In fact, you can do `-`, where `n` is any integer to show the last `n` commits. In reality, you're unlikely to use that often, because Git by default pipes all output through a pager so you see only one page of log output at a time.