Git - Searching Git Repositories: Git a Grep - log command, flaggs, patch, word-diff
Head First Git: A Learner’s Guide to Understanding Git from the Inside Out、 Raju Gandhi(著)、 O’Reilly Mediaの Chapter 7.(Searching Git Repositories: Git a Grep)、EXERCISE(584/715)の解答を求めてみる。
入出力結果(Terminal, Zsh)
% git log --oneline -S 'walnut' -p --word-diff
e9beff3 remove nuts from all items due to allergy concerns
diff --git a/dinner.md b/dinner.md
index 64c1f6e..df5fde0 100644
--- a/dinner.md
+++ b/dinner.md
@@ -10,7 +10,7 @@
## Second course
* Baked kabocha squash with [-sunflower-walnut-]{+herbed ciabatta+} stuffing served with roasted cauliflower and potatoes
**or**
@@ -22,4 +22,4 @@
**or**
* [-Almond-raspberry-]{+Raspberry+} tart
b6c8c82 replace meat dishes with vegetarian items
diff --git a/dinner.md b/dinner.md
index 10d16ca..64c1f6e 100644
--- a/dinner.md
+++ b/dinner.md
@@ -10,11 +10,11 @@
## Second course
* Baked [-Scottish salmon-]{+kabocha squash+} with [-garlic crumb topping,-]{+sunflower-walnut stuffing+} served with roasted cauliflower and potatoes
**or**
* [-Beef tenderloin-]{+Rigatoni pasta+} with [-horseradish-]{+marinara+} sauce, served with [-a loaded baked potato-]{+garlic bread+} and green beans
## Dessert
%