On Thu, 27 Apr 2006 18:06:09 +0800 Aubrey <aubreylee@xxxxxxxxx> wrote: > When I update the kernel git tree a few days later, you know, there > could be a lot of patches. Then I found one file changed, how can I > know which patch the modification belong to? > How can I find the patch? Hi Aubrey, $ git log -- <filename> To see a list of commits that affected the file you're interested in. $ git log -p -- <filename> Will include a diff after each commit showing you how the file was changed. And if you want to see what other changes happened in each commit that modified your file, add "--full-diff" to the command above. Note that you can also replace the <filename> with a <directory> to see a list of commits that affected any file below that directory. HTH, Sean - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html