diff options
Diffstat (limited to 'src/content/tils/2020/10/11')
-rw-r--r-- | src/content/tils/2020/10/11/search-git-history.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/tils/2020/10/11/search-git-history.adoc b/src/content/tils/2020/10/11/search-git-history.adoc index 06df9dc..696368c 100644 --- a/src/content/tils/2020/10/11/search-git-history.adoc +++ b/src/content/tils/2020/10/11/search-git-history.adoc @@ -15,7 +15,7 @@ name, only bits of it. I immediately went to the list of TILs I had written on searching in Git, but it wasn't readily obvious how to do it, so here it goes: -[source,shell] +[source,sh] ---- git log -- *pattern* ---- @@ -23,7 +23,7 @@ git log -- *pattern* You could add globs before the pattern to match things on any directory, and add our `-p` friend to promptly see the diffs: -[source,shell] +[source,sh] ---- git log -p -- **/*pattern* ---- |