From: sean Date: Thu, 27 Apr 2006 10:57:28 GMT Subject: Re: how to trace the patch? Message-ID: In-Reply-To: <6d6a94c50604270306j44c280bdo283591f2f595f74e@mail.gmail.com> On Thu, 27 Apr 2006 18:06:09 +0800 Aubrey 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 -- To see a list of commits that affected the file you're interested in. $ git log -p -- 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 with a to see a list of commits that affected any file below that directory. HTH, Sean