0

Saw this kind of thing in our local git web

file_name diff1 | diff2 | blob | history

How could there be two diffs for one file in the same commit

Thanks

KurzedMetal
  • 12,540
  • 6
  • 39
  • 65
Pradeep
  • 647
  • 1
  • 7
  • 17

1 Answers1

5

It's a merge commit, you are given the option to diff from each parent commit.

Look for example this merge commit, it has 2 parents, so gitweb can generate two diffs for builtin/fmt-merge-msg.c.

KurzedMetal
  • 12,540
  • 6
  • 39
  • 65