| test_description='blaming trough history with topic branches' |
| # Creates the history shown below. '*'s mark the first parent in the merges. |
| # The only line of file.t is changed in commit B2 |
| test_expect_success setup ' |
| test_commit A0 file.t line0 && |
| test_commit B2 file.t line0changed && |
| test_expect_success 'blame --reverse --first-parent finds A1' ' |
| git blame --porcelain --reverse --first-parent A0..A3 -- file.t >actual_full && |
| head -n 1 <actual_full | sed -e "s/ .*//" >actual && |
| git rev-parse A1 >expect && |