qgit icon indicating copy to clipboard operation
qgit copied to clipboard

Clicking on a file's version history doesn't show the associated revision

Open andrewgin opened this issue 6 years ago • 2 comments

Hi I think this is a problem with my setup rather than a bug, but I don't know how to diagnose the issue;

  1. Click on a commit in the Rev list tab
  2. 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.
  3. Double click on the file again to open the file history tab.
  4. The top pane shows the commits that have modified this file, the bottom pane shows the entire file for that revision.
  5. 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

andrewgin avatar Sep 16 '19 11:09 andrewgin

My colleague just testedit on 18.04.3 and has the same issue.

andrewgin avatar Jan 28 '20 14:01 andrewgin

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

kfessel avatar Jan 19 '23 13:01 kfessel