1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Show File Diffs When Viewing Git Log as a git til

This commit is contained in:
jbranchaud
2017-10-12 17:50:01 -05:00
parent b9809a329a
commit 9bee8f7a27
2 changed files with 31 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout For a steady stream of TILs from a variety of rocketeers, checkout
[til.hashrocket.com](https://til.hashrocket.com/). [til.hashrocket.com](https://til.hashrocket.com/).
_575 TILs and counting..._ _576 TILs and counting..._
--- ---
@@ -176,6 +176,7 @@ _575 TILs and counting..._
- [Renaming A Branch](git/renaming-a-branch.md) - [Renaming A Branch](git/renaming-a-branch.md)
- [Resetting A Reset](git/resetting-a-reset.md) - [Resetting A Reset](git/resetting-a-reset.md)
- [Show All Commits For A File Beyond Renaming](git/show-all-commits-for-a-file-beyond-renaming.md) - [Show All Commits For A File Beyond Renaming](git/show-all-commits-for-a-file-beyond-renaming.md)
- [Show File Diffs When Viewing Git Log](git/show-file-diffs-when-viewing-git-log.md)
- [Show The diffstat Summary Of A Commit](git/show-the-diffstat-summary-of-a-commit.md) - [Show The diffstat Summary Of A Commit](git/show-the-diffstat-summary-of-a-commit.md)
- [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md) - [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md)
- [Staging Changes Within Vim](git/staging-changes-within-vim.md) - [Staging Changes Within Vim](git/staging-changes-within-vim.md)

View File

@@ -0,0 +1,29 @@
# Show File Diffs When Viewing Git Log
Include the `-p` flag with the `git log` command to include the diffs along
with the rest of the information for each commit. Here is an example of
running this against this repository.
```bash
$ git log -p
commit b9809a329acd8150b2474168f8faaf008f376e35
Author: jbranchaud <jbranchaud@gmail.com>
Date: Wed Oct 11 07:27:53 2017 -0500
Add Inline Style Attributes Should Be Camel Cased as a react til
diff --git a/README.md b/README.md
index c982f8e..6ee7d32 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout
[til.hashrocket.com](https://til.hashrocket.com/).
-_574 TILs and counting..._
+_575 TILs and counting..._
---
```
See `man git-log` for more details.