shantanuo
shantanuo

Reputation: 32220

How to search commit history?

Is there any way to find when the function "_make_parser_function" was introduced in the file pandas/pandas/io/parsers.py?

I tried to search within commit history, but could not find the exact date on which this change was introduced. I guess this function was not available in older versions of pandas.

https://github.com/pandas-dev/pandas/commits/71334472766fc95e7dc828dce2bfe798f6bb19dc?before=71334472766fc95e7dc828dce2bfe798f6bb19dc+35&path%5B%5D=pandas&path%5B%5D=io&path%5B%5D=parsers.py

Upvotes: 0

Views: 32

Answers (1)

Fourat
Fourat

Reputation: 2447

Try -L option

# git log -L :myfunction:path/to/myfile.c
git log -L :_make_parser_function:pandas/io/parsers.py

Upvotes: 1

Related Questions