Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/02-git-basics/sections/viewing-history.asc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand Down Expand Up @@ -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 `-<n>`, 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.

Expand Down