It will compare commits, you will be able to find file in list.
- go to Repository > Compare
- paste this url: https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2
- hit enter (notice: gitlab will set ‘Source’ and ‘Target’ properly)
- click button ‘compare’