Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: determine a linux kernel version of a patch file

From: Johannes Schindelin <hidden>
Date: 2016-06-15 23:04:46

Hi Pawel,

On 2015-05-14 19:08, Pawel Por wrote:
Most patches contain the index line. Is it the well known git index
(staging area) ?
Can I use the index to find the exact kernel version from which a
patch was created.
Please look at an example patch sent to LKML:
https://lkml.org/lkml/2015/5/14/497

It contains the following index line:
index 8dd1e55..9b0c81e 100644

I tried to find it using "git log" but I couldn't.
If you call `git log --raw` (possibly adding --all) and then search for 8dd1e55, you should at least get to the revision when this file was changed to the revision that served as base for the patch. To make it faster, you could call `git log --raw -- <filename>`. That would also have the advantage that you could scroll up again to see which revision, if any, modified the file again, giving you kind of a commit range from which to pick.

Ciao,
Johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help