計算機科学のブログ

ほしい物リスト

Git - GitHub - Searching Git Repositories - Git a Grep - subcommand, log, flag, -G

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 7.(Searching Git Repositories: Git a Grep)、EXERCISE(555/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git log --oneline -G classic --word-diff
c366817 remove Git puns and make drinks more seasonal
99fd56e add first draft of appetizer and drink menus
% git log --oneline -S classic --word-diff
99fd56e add first draft of appetizer and drink menus
% git log --patch --oneline -G classic --word-diff
c366817 remove Git puns and make drinks more seasonal
diff --git a/drinks.md b/drinks.md
index 0fcee53..93c7e91 100644
--- a/drinks.md
+++ b/drinks.md
@@ -1,8 +1,8 @@
# Gitanjali and Aref Reception: Signature Drinks

* [-The Manhattan Merge: -]
[-  Two become one-]{+Autumn+} in [-this updated take on-]{+Manhattan: +}
{+  Pumpkin-spice bitters give+} a {+fall feeling to this+} classic bourbon-vermouth cocktail 
* [-The Git Gimlet: -]
[-  Gitanjali’s favorite drink,-]{+Orchard Mimosa: +}
{+  Champagne meets apple cider, garnished+} with [-refreshing lime and juniper notes-]{+a cinnamon-sugar rim+}
* The[-Git-] Log Cabin: 
  Apple brandy and maple syrup will take you on an autumn trip through our favorite couple’s history
99fd56e add first draft of appetizer and drink menus
diff --git a/drinks.md b/drinks.md
new file mode 100644
index 0000000..0fcee53
--- /dev/null
+++ b/drinks.md
@@ -0,0 +1,8 @@
{+# Gitanjali and Aref Reception: Signature Drinks+}

{+* The Manhattan Merge: +}
{+  Two become one in this updated take on a classic bourbon-vermouth cocktail+}
{+* The Git Gimlet: +}
{+  Gitanjali’s favorite drink, with refreshing lime and juniper notes +}
{+* The Git Log Cabin: +}
{+  Apple brandy and maple syrup will take you on an autumn trip through our favorite couple’s history+} 
% git log --patch --oneline -S classic --word-diff
99fd56e add first draft of appetizer and drink menus
diff --git a/drinks.md b/drinks.md
new file mode 100644
index 0000000..0fcee53
--- /dev/null
+++ b/drinks.md
@@ -0,0 +1,8 @@
{+# Gitanjali and Aref Reception: Signature Drinks+}

{+* The Manhattan Merge: +}
{+  Two become one in this updated take on a classic bourbon-vermouth cocktail+}
{+* The Git Gimlet: +}
{+  Gitanjali’s favorite drink, with refreshing lime and juniper notes +}
{+* The Git Log Cabin: +}
{+  Apple brandy and maple syrup will take you on an autumn trip through our favorite couple’s history+} 
%