Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andrewgin opened this issue Sep 16, 2019 · 2 comments
Labels

Comments

@andrewgin
Copy link

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

@tibirna tibirna added the bug label Oct 20, 2019
@andrewgin
Copy link
Author

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

@kfessel
Copy link

kfessel commented Jan 19, 2023

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

qgit/src/git.cpp

Line 2194 in 6e95bf4

initCmd << QString("-r -m -p --full-index").split(' ');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants