It took me quite some time to figure out what the Repository Compare tool on gitlab.com
is doing.
What its shows is actually “If I merged the source branch into the target branch, what would the diff on the target branch be?”. While that could be useful in some cases, I would find it more useful to be able to compare two commits. It should be possible to specify these in several ways, e.g.
- Commit hash
- Tag
- HEAD of a branch
This would allow me to answer more questions like
- What was changed between tag A and tag B?
- What is the difference between branch X and branch Y?
- What was changed on branch Z?