Case-insensitive git pickaxe search

前端 未结 1 944
南笙
南笙 2020-12-14 21:43

I\'m trying to find all commits where a particular string or arbitrary capitalisation thereof (e.g. foobar ,FooBar, fooBar) was introd

相关标签:
1条回答
  • 2020-12-14 22:16

    The way the -i is used with pickaxe (see commit accccde, git 1.7.10, April 2012) is:

    git log -S foobar -i --oneline
    # or
    git log --regexp-ignore-case -Sfoobar
    # or
    git log -i -Sfoobar
    

    Note that with 1.x git versions this option will not work with a regexps, only with a fixed string. It works with regexps only since git 2.0 and commit 218c45a, git 2.0, May 2014.

    0 讨论(0)
提交回复
热议问题