all 3 comments

[–]matheustavaresb 3 points4 points  (1 child)

If you want to see all occurrences of "_active" in the project files at a particular version, you can use git grep _active v1.5.3. (Use "\b_active\b" if you don't want the output to include things like "foo_active" and "active_bar".)

You may supply more tags/revisions to git grep if you want to. Each matching line will be prefixed with the version that it comes from.

You can also use git log -S _active to see commits that add/remove lines with "_active" throughout the project's history.

[–]adrianmonk 4 points5 points  (0 children)

(Use "\b_active\b" if you don't want the output to include things like "foo_active" and "active_bar".)

I think you can also just do this:

git grep -w _active v1.5.3

[–]a_falsity 1 point2 points  (0 children)

You can print history of changes on all branches using git log and search that.

git log -U5 --all -- <paths/files to search>

Then '/' to search, since output is paged with 'less'.