Re: Git archeology
- From
- Vladimir Gorshenin <gorshenin.vladimir@googlemail.com>
- Date
- Apr 24, 2018, 10:31 UTC
- Message-ID
- <CAEbJ=SOkfHHrmbUXP_niRP4S0HSENqXriGWNFoYX2XpdvWzZww@mail.gmail.com>
- In-Reply-To
- <20180421062923.4467-1-szeder.dev@gmail.com>
Hi Szedar,
Thank you for the reply! I didn't expect it could be so instant!
I checked 'git log -L' option and it seems to the best one so far. But nevertheless is has a pit fall: I run it like 'git log -L ,:somefile' and get the output that needs manual scraping since each commit spans the whole file despite only few lines were actually altered.
I would like to have an output form 'git log -L' in patch style. Could it be done somehow?
Have a nice day,
Vladimir
2018-04-21 8:29 GMT+02:00 SZEDER Gábor <szeder.dev@gmail.com>:
Show 6 quoted lines
>> And there is a problem, which I believe is fundamental for Git (please >> prove me wrong): how to find all overlapping commits, e.g. touching >> the same lines of code? > > You might be looking for 'git log -L'. >