Clicking on a file's version history doesn't show the associated revision
Hi I think this is a problem with my setup rather than a bug, but I don't know how to diagnose the issue;
- Click on a commit in the Rev list tab
- In the bottom right pane, it will show the list of files modified in this commit. Double click on a file to show the patch tab.
- Double click on the file again to open the file history tab.
- The top pane shows the commits that have modified this file, the bottom pane shows the entire file for that revision.
- Clicking on a different commit doesn't change the revision of that file; it shows the revision from the commit clicked in step 1.
This used to work, but then I upgraded my ubuntu to 18.04.2
My colleague just testedit on 18.04.3 and has the same issue.
this is behavior change in git.
when a file is clicked a git log containing the parameter -m is is run
git log --topo-order --no-color --log-size --parents --boundary -z \
'--pretty=format:%m%HX%PX%n%cn<%ce>%n%an<%ae>%n%at%n%s%n' \
-r -m -p --full-index <some commit hashes> <Filename>
that -m changed its behavior between git 2.30 and 2.39 multiple time see
https://www.git-scm.com/docs/git-log/2.30.0#Documentation/git-log.txt--m
https://www.git-scm.com/docs/git-log/2.39.0#Documentation/git-log.txt--m
i hope this helps fixing this
https://github.com/tibirna/qgit/blob/6e95bf4d8ad85645986ba94aaa04a115a9dcc010/src/git.cpp#L2194