leventov
leventov

Reputation: 15313

How to search through all changes ever made in the Git repo?

I want to get commits in any branches, which changes (diff with the previous commit) contain specific identifier. Search in the file history is not sufficient, because the function (target identifier is it's name) was moved from file to file.

Upvotes: 0

Views: 57

Answers (1)

Fred Foo
Fred Foo

Reputation: 363797

Try

git log -p --branches

This gives patches for all commits pointed to by a branch, directly or indirectly.

Upvotes: 1

Related Questions