-
Notifications
You must be signed in to change notification settings - Fork 323
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
Fix files changed and reverting merge commits from the history panel bug #1227
Conversation
Currently, the files changed in a merge commit can be displayed in the "Changed" area. However, some merge commits show no files changed (notably, merge commits created by merged pull requests). fix-merge-commits.mov |
jupyterlab_git/git.py
Outdated
@@ -567,12 +567,13 @@ async def log(self, path, history_count=10, follow_path=None): | |||
|
|||
async def detailed_log(self, selected_hash, path): | |||
""" | |||
Execute git log -1 --numstat --oneline -z command (used to get | |||
Execute git log -m -1 --numstat --oneline -z command (used to get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess the trick is in the various options for --diff-merges
, isn't it?
I'm looking forward to hearing what you learn by trying different options.
I added
https://stackoverflow.com/questions/37801342/using-git-log-to-display-files-changed-during-merge As for reverting, I added |
Here is a demo of the fixes: Merge.Commit.Fixes.mov |
@fcollonval I got my environment all fixed up, and after some rewriting the integration tests for merge commits now work! |
…commit, as they have an extra line for the branch that was merged into the base branch
…t/test dependency
1e9de36
to
ad4412e
Compare
Hey @basokant thanks for pushing this PR. I fixed the CI and now only your four new integration tests are failing. The error is always the same: I would suggest simplifying the text selector to only look for the commit message: |
@fcollonval Made that requested change, and the integration tests have passed! Thanks for fixing the CI!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @basokant
Fix for #621
The goals for this PR are to: