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

Git Diff is Corrupt #46069

Closed
SE2Dev opened this issue Mar 18, 2018 · 3 comments
Closed

Git Diff is Corrupt #46069

SE2Dev opened this issue Mar 18, 2018 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@SE2Dev
Copy link

SE2Dev commented Mar 18, 2018

I've recently been experiencing a strange bug where the Git diff preview in VSCode becomes corrupt, as seen below.

Example

Issue Type: Bug

  1. Create a new directory, and add stdafx_old.h to it
  2. Rename stdafx_old.h to stdafx.h
  3. Initialize a git repository in the directory and commit stdafx.h
  4. Delete stdafx.h
  5. Add stdafx_new.h to the directory and rename it to stdafx.h
  6. Check the git diff view in VSCode

VS Code version: Code 1.21.1 (79b44aa, 2018-03-14T14:46:47.128Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4200)
Memory (System) 31.93GB (25.56GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (13)
Extension Author (truncated) Version
Bookmarks ale 0.18.2
markdown-table-prettify dar 2.0.0
python ms- 2018.2.1
cpptools ms- 0.15.0
vscode-gn npc 1.0.0
vscode-icons rob 7.21.0
cod-sense se2 0.0.3
shader sle 1.1.2
vscode-hexdump sle 1.6.0
dot Ste 0.0.1
ninja sur 0.0.1
vscode-lua tri 0.12.3
shadron vch 0.1.0

(1 theme extensions excluded)

Reproduces without extensions

Files and example repository: vscode_git_bug.zip

@joaomoreno
Copy link
Member

joaomoreno commented Mar 19, 2018

Does this happen for all files in that repo?

And for all files in other repos too?

@joaomoreno
Copy link
Member

/duplicate #21146

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 19, 2018
@vscodebot
Copy link

vscodebot bot commented Mar 19, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Mar 19, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants