3 ms·
I love using the `-G` flag for tracking the history of any occurrence of a given regex across all directories/files. It feels more flexible than `-L`. As an exa
by Nezteb 3y ago
I love using the `-G` flag for tracking the history of any occurrence of a given regex across all directories/files. It feels more flexible than `-L`. As an example:
git log \
-G "$some_regex" \
--patch \
--stat \
--source \
--all \
--decorate=full \
--pretty=fuller \
-- . ":(exclude)\*.lock"
- penguin_booze 3y agoI often have to remind myself that the pathspec is defined here in the glossary: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec https://git-scm.com/docs/gitglossary#Documentation/gitglossa....