Microsoft/vscode

Git - Git Typechanges do not appear in source control panel

Open

#91,100 创建于 2020年2月20日

在 GitHub 查看
 (4 评论) (1 反应) (1 负责人)TypeScript (10,221 fork)batch import
buggithelp wanted

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

Issue Type: Bug

The source control panel does not display files where git has detected that the type has changed, such as when an actual file replaces a symlink.

  1. Create a file and a symlink to the file in a git repository. (git init; touch default_img; ln -s default_img john_smith_headshot)
  2. Commit both the files. (git commit -m 'Commit default image for use until actual photos arrive')
  3. Replace the symlink with an actual, distinct file. (mv some_other_image john_smith_headshot)
  4. Run git status. Note that git detects the typechange (git status) Expected behaviour: The file which replaced the symlink appears in the source control panel, marked as T for typechange Actual behaviour: Panel remains empty

VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:50:36.977Z) OS version: Linux x64 5.3.0-40-generic

Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2922)
GPU Status 2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: unavailable_offviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 15.52GB (9.33GB free)
Process Argv --disable-extensions . --no-sandbox
Screen Reader no
VM 0%

贡献者指南