I have git clone
So, I get an repo for linux kernel source code .
What I want to do is to search for a function changes from version A
to version B.
for instance, I want to get change log for function
"kmem_cache_create" in file mm/slab.c from kernel 2.6.18 to
What I should issue an command?
I have tried
git log --grep='kmem_cache_create' mm/slab.c
but this will get many commits and every commit is specified with an
sha1, not kernel version which i wanted.
I am not a native english speaker ,i have tried my best to explain my
question ,but maybe there is still some fault or unclear
any reply will be appreciated, thks.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at