From 7726205a95028e12d8ab66bb24b38ec8d1556c2e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 28 Aug 2020 07:56:10 -0300 Subject: TIL grep: split output blocks --- _tils/2020-08-28-grep-online-repositories.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '_tils') diff --git a/_tils/2020-08-28-grep-online-repositories.md b/_tils/2020-08-28-grep-online-repositories.md index a9e0166..4b972fd 100644 --- a/_tils/2020-08-28-grep-online-repositories.md +++ b/_tils/2020-08-28-grep-online-repositories.md @@ -104,9 +104,16 @@ Réception d'objets: 100% (7063/7063), 8.69 Mio | 5.39 Mio/s, fait. Résolution des deltas: 100% (5047/5047), fait. /tmp/git-search/cgit ~/dev/libre/songbooks/docs README: $ make get-git + $ git search 'make get-git' https://git.zx2c4.com/cgit/ /tmp/git-search/cgit ~/dev/libre/songbooks/docs README: $ make get-git +``` + +Subsequent greps on the same repository are faster because no download is needed. + +When no argument is provided, it prints the usage text: +```shell $ git search Missing argument REGEX_PATTERN. @@ -122,5 +129,3 @@ Examples: git search 'make get-git' https://git.zx2c4.com/cgit/ git search 'make get-git' https://git.zx2c4.com/cgit/ -- $(git rev-list --all) ``` - -Subsequent greps on the same repository are faster because no download is needed. -- cgit v1.2.3