我把linux上的spdk 代码 copy到windows上后, 用git extension打开后发现有300 多个文件有改动, 但是用diff tool看, 显示完全一样。
在window上用git bash 看时,
git status 显示如下:
fied: test/nvmf/target/connect_disconnect.shmodified: test/nvmf/target/connect_stress.shmodified: test/nvmf/target/control_msg_list.shmodified: test/nvmf/target/delete_subsystem.shmodified: test/nvmf/target/device_removal.shmodified: test/nvmf/target/dif.shmodified: test/nvmf/target/discovery.shmodified: test/nvmf/target/fabrics_fuzz.shmodified: test/nvmf/target/filesystem.shmodified: test/nvmf/target/fio.shmodified: test/nvmf/target/fused_ordering.shmodified: test/nvmf/target/host_management.shmodified: test/nvmf/target/identify_passthru.shmodified: test/nvmf/target/initiator_timeout.shmodified: test/nvmf/target/interrupt.shmodified: test/nvmf/target/invalid.shmodified: test/nvmf/target/multiconnection.shmodified: test/nvmf/target/multipath.shmodified: test/nvmf/target/multitarget.shmodified: test/nvmf/target/multitarget_rpc.pymodified: test/nvmf/target/nmic.shmodified: test/nvmf/target/ns_hotplug_stress.shmodified: test/nvmf/target/ns_masking.shmodified: test/nvmf/target/nsid.shmodified: test/nvmf/target/nvme_cli.shmodified: test/nvmf/target/nvmf_example.shmodified: test/nvmf/target/nvmf_lvol.shmodified: test/nvmf/target/nvmf_lvs_grow.shmodified: test/nvmf/target/nvmf_vfio_user.shmodified: test/nvmf/target/perf_adq.shmodified: test/nvmf/target/queue_depth.shmodified: test/nvmf/target/referrals.shmodified: test/nvmf/target/rpc.shmodified: test/nvmf/target/shutdown.shmodified: test/nvmf/target/srq_overwhelm.shmodified: test/nvmf/target/tls.shmodified: test/nvmf/target/vfio_user_fuzz.shmodified: test/nvmf/target/wait_for_buf.shmodified: test/nvmf/target/zcopy.shmodified: test/ocf/integrity/bdevperf-iotypes.shmodified: test/ocf/integrity/fio-modes.shmodified: test/ocf/integrity/flush.shmodified: test/ocf/integrity/stats.shmodified: test/ocf/management/configuration-change.shmodified: test/ocf/management/create-destruct.shmodified: test/ocf/management/multicore.shmodified: test/ocf/management/remove.shmodified: test/ocf/ocf.shmodified: test/openstack/install_devstack.shmodified: test/openstack/run_openstack_tests.shmodified: test/packaging/packaging.shmodified: test/packaging/rpm/rpm.shmodified: test/rpc/rpc.shmodified: test/rpc/skip_rpc.shmodified: test/rpc_client/rpc_client.shmodified: test/scheduler/core_isolating.shmodified: test/scheduler/governor.shmodified: test/scheduler/idle.shmodified: test/scheduler/interrupt.shmodified: test/scheduler/load_balancing.shmodified: test/scheduler/rdmsr.plmodified: test/scheduler/rpc.shmodified: test/scheduler/scheduler.shmodified: test/setup/acl.shmodified: test/setup/devices.shmodified: test/setup/driver.shmodified: test/setup/hugepages.shmodified: test/setup/test-setup.shmodified: test/sma/crypto.shmodified: test/sma/discovery.shmodified: test/sma/nvmf_tcp.shmodified: test/sma/plugins.shmodified: test/sma/qos.shmodified: test/sma/sma.shmodified: test/sma/vfiouser_qemu.shmodified: test/sma/vhost_blk.shmodified: test/spdkcli/iscsi.shmodified: test/spdkcli/nvmf.shmodified: test/spdkcli/raid.shmodified: test/spdkcli/rbd.shmodified: test/spdkcli/spdkcli_job.pymodified: test/spdkcli/tcp.shmodified: test/spdkcli/vhost.shmodified: test/spdkcli/virtio.shmodified: test/thread/thread.shmodified: test/ublk/ublk.shmodified: test/ublk/ublk_recovery.shmodified: test/unit/unittest.shmodified: test/vfio_user/nvme/vfio_user_fio.shmodified: test/vfio_user/nvme/vfio_user_restart_vm.shmodified: test/vfio_user/vfio_user.shmodified: test/vfio_user/virtio/fio_fs.shmodified: test/vfio_user/virtio/fio_restart_vm.shmodified: test/vfio_user/virtio/initiator_bdevperf.shmodified: test/vhost/fio/fio.shmodified: test/vhost/fiotest/fio.shmodified: test/vhost/fuzz/fuzz.shmodified: test/vhost/hotplug/scsi_hotattach.shmodified: test/vhost/hotplug/scsi_hotdetach.shmodified: test/vhost/hotplug/scsi_hotplug.shmodified: test/vhost/initiator/blockdev.shmodified: test/vhost/integrity/integrity_start.shmodified: test/vhost/integrity/integrity_vm.shmodified: test/vhost/lvol/lvol_test.shmodified: test/vhost/manual.shmodified: test/vhost/migration/migration.shmodified: test/vhost/nvmf/nvmf_vhost.shmodified: test/vhost/other/negative.shmodified: test/vhost/parse_irqs.shmodified: test/vhost/perf_bench/vhost_perf.shmodified: test/vhost/readonly/delete_partition_vm.shmodified: test/vhost/readonly/disabled_readonly_vm.shmodified: test/vhost/readonly/enabled_readonly_vm.shmodified: test/vhost/readonly/readonly.shmodified: test/vhost/shared/shared.shmodified: test/vhost/vhost.shmodified: test/vhost/vhost_boot/vhost_boot.shmodified: test/vhost/windows/windows_scsi_compliance.pymodified: test/vhost/windows/windows_scsi_compliance.shmodified: test/vmd/vmd.shmodified: xnvme (modified content)no changes added to commit (use "git add" and/or "git commit -a")
实际这文件 没有改动,
解决办法如下, 同一个路径下执行:‘
git config --add core.filemode false
这个时候再查:
Administrator@XTZJ-20220917LC MINGW64 /e/1_study/1_dpdk/spdk_practice/spdk (dev/bob-1.x)
$ git status
On branch dev/bob-1.x
Changes not staged for commit:(use "git add <file>..." to update what will be committed)(use "git restore <file>..." to discard changes in working directory)(commit or discard the untracked or modified content in submodules)modified: dpdk (modified content)modified: intel-ipsec-mb (modified content)modified: isa-l (modified content)modified: isa-l-crypto (modified content)modified: libvfio-user (modified content)modified: ocf (modified content)modified: xnvme (modified content)no changes added to commit (use "git add" and/or "git commit -a")
这个时候 发现, 没有改动文件 已经不显示 了。