Skip to content

Commit 65d584f

Browse files
authored
Merge pull request #848 from rpjday/simplegit
A couple minor tweaks/clarifications to "Viewing History" section, Ch. 2
2 parents 3094824 + d56b863 commit 65d584f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/02-git-basics/sections/viewing-history.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ As you can see, this command lists each commit with its SHA-1 checksum, the auth
4242
A huge number and variety of options to the `git log` command are available to show you exactly what you're looking for.
4343
Here, we'll show you some of the most popular.
4444

45-
One of the more helpful options is `-p`, which shows the difference introduced in each commit.
46-
You can also use `-2`, which limits the output to only the last two entries:
45+
One of the more helpful options is `-p` or `--patch`, which shows the difference (the _patch_ output) introduced in each commit.
46+
You can also limit the number of log entries displayed, such as using `-2` to show only the last two entries.
4747

4848
[source,console]
4949
----
@@ -227,7 +227,7 @@ Those are only some simple output-formatting options to `git log` – there are
227227
==== Limiting Log Output
228228

229229
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.
230-
You've seen one such option already – the `-2` option, which show only the last two commits.
230+
You've seen one such option already – the `-2` option, which displays only the last two commits.
231231
In fact, you can do `-<n>`, where `n` is any integer to show the last `n` commits.
232232
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.
233233

0 commit comments

Comments
 (0)