Skip to content

Pull request diff shows outdated diff #6889

@rzhao271

Description

@rzhao271
  1. Accidentally push lines containing debug logs with the actual fix into a commit in a dev branch. Do not push.
  2. Start creating a pull request, but check the diff. Notice the debug logs are in the diff.
  3. Run git reset --soft HEAD~ in the terminal. Unstage the lines containing the debug logs using the SCM diff view.
  4. Commit with the same commit message again by pressing the up arrow in the SCM commit message inputbox to get the last message.
  5. Start creating a pull request again, but check the diff.
  6. 🐛 The debug logs are still in the diff.
  7. Create a draft PR and check the diff.
  8. 🐛 The debug logs are still in the diff. GitHub shows the correct diff.

GHPRI shows outdated diff relative to GitHub

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions