diff options
author | EuAndreh <eu@euandre.org> | 2020-08-28 07:56:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-28 07:56:10 -0300 |
commit | 7726205a95028e12d8ab66bb24b38ec8d1556c2e (patch) | |
tree | 50fb017803ef163ed91814a1827b47d69eda9e79 /_tils | |
parent | Add TIL on git-search (diff) | |
download | euandre.org-7726205a95028e12d8ab66bb24b38ec8d1556c2e.tar.gz euandre.org-7726205a95028e12d8ab66bb24b38ec8d1556c2e.tar.xz |
TIL grep: split output blocks
Diffstat (limited to '')
-rw-r--r-- | _tils/2020-08-28-grep-online-repositories.md | 9 |
1 files changed, 7 insertions, 2 deletions
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. |