計算機科学のブログ

ほしい物リスト

Git - GitHub - Searching Git Repositories - Git a Grep - order of flags

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)、SHARPEN YOUR PENCIL(556/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git log -p --oneline -S classic
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 -p -G classic --oneline --all
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 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 
+* Autumn in Manhattan: 
+  Pumpkin-spice bitters give a fall feeling to this classic bourbon-vermouth cocktail 
+* Orchard Mimosa: 
+  Champagne meets apple cider, garnished with a cinnamon-sugar rim
+* The 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 -S classic --all
commit 99fd56e6628bb154a64b8171f8f3af2be2f96c6e
Author: Trinity <trinity@eventplannerz.com>
Date:   Mon Jul 5 14:01:36 2021 -0400

    add first draft of appetizer and drink menus
% git log -G -p classic
fatal: ambiguous argument 'classic': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
% git log -p classic -S
fatal: ambiguous argument 'classic': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
%