Tig: Search by author name and commit name simultaneously

Created on 15 Oct 2015  路  6Comments  路  Source: jonas/tig

I want to search in a big repository (https://github.com/saltstack/salt) by author name ("Roman Inflianskas") and by commit name ("zypper") simultaneously.

I've tried to make this from the main view by using regex:

.*Roman Inflianskas.*zypper.*

But this doesn't work.

How can I do that?

Most helpful comment

@rominf tig --author="Roman Inflianskas" also works

All 6 comments

OK, I remembered about piping to tig:

git log --author="Roman Inflianskas" | tig

@rominf tig --author="Roman Inflianskas" also works

Oh, thank you, didn't know that, that's even better.

@jonas Hmm, is this feature currently still working? Am I doing something the wrong way?

git log --author andreas
[..] // lots of output
tig --author andreas
tig: No revisions match the given arguments.
tig --version
tig version 2.5.0
ncursesw version 6.2.20200212
readline version 6.3

tig's command line parser is quite primitive, you have to use tig --author=andreas.

@koutcher Ahh, thanks for the hint. I've totally overseen this difference. tig --author=andreas is working

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weynhamz picture weynhamz  路  8Comments

szz picture szz  路  5Comments

djromero picture djromero  路  8Comments

Anrock picture Anrock  路  8Comments

dmalikov picture dmalikov  路  4Comments