Skip to content

Show merge commits in file history #238

@MarekLew

Description

@MarekLew

I don`t find merged commit in history view.

  • GitLens Version: 7.1.0
  • VSCode Version: Code 1.19.1 (0759f77bb8d86658bc935a10a64f6182c5a1eeba, 2017-12-19T09:41:01.414Z)
  • OS Version: Linux x64 4.10.0-42-generic

Steps to Reproduce:

  1. Create repository
  2. Add file, commit
  3. create branch1
  4. edit file, commit
  5. go to master
  6. create branch2
  7. edit file,commit
  8. merget branch1 to branch2
  9. click show in history view in pane

At this moment I change in file git.{js|ts} in function log_file lines

- if (options.skipMerges || !options.ref || options.maxCount! > 2) {
+ if (options.skipMerges || options.maxCount! < 2) {

and it`s work fine for me.

but I dont understand this logic when added params.push(--no-merges);togit` parameters.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions