We are using the git -flow style workflow, and we want to know which pull request included the changes to this line of code.
Suppose we have the following story:
c
My transfer request was merged in h with the commit message "Merge Merge Request No. 123".
If I execute git fault on lines of code added to a stretch request, it shows me e , not h .
12345678 (Wilfred Hughes 2015-02-02 15:22:40 +0000 402) # Some old code e (Wilfred Hughes 2015-02-12 15:22:40 +0000 402) # Added in the PR, line 1 e (Wilfred Hughes 2015-02-12 15:22:40 +0000 403) # Added in the PR, line 2 56789012 (Wilfred Hughes 2015-02-26 17:24:18 +0000 404) # More old code
How can I find a merge commit for a given line of code in git?
(Note that this is different from this related question , as I start with lines of code, not commit).
source share