Re: how to trace the patch?
- From
sean <seanlkml@sympatico.ca>
- Date
- Apr 27, 2006, 10:57 UTC
- Message-ID
- <BAYC1-PASMTP029B6CB13A6C0BA3956E17AEBD0@CEZ.ICE>
- In-Reply-To
- <6d6a94c50604270306j44c280bdo283591f2f595f74e@mail.gmail.com>
On Thu, 27 Apr 2006 18:06:09 +0800 Aubrey <aubreylee@gmail.com> 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