News for hackers. Stuff that matters.
Re:See the History of a Method with Git log -L by Nezteb on Sunday November 05, 2023 @08:15PM (#38157660)
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"
Re:See the History of a Method with Git log -L by penguin_booze on Monday November 06, 2023 @04:49AM (#38160537)
I often have to remind myself that the pathspec is defined here in the glossary: https://git-scm.com/docs/gitglossary#Documentation/gitglossa....