我把linux上的spdk 代码 copy到windows上后, 用git extension打开后发现有300 多个文件有改动, 但是用diff tool看, 显示完全一样。
在window上用git bash 看时,
git status 显示如下:
fied: test/nvmf/target/connect_disconnect.sh
modified: test/nvmf/target/connect_stress.sh
modified: test/nvmf/target/control_msg_list.sh
modified: test/nvmf/target/delete_subsystem.sh
modified: test/nvmf/target/device_removal.sh
modified: test/nvmf/target/dif.sh
modified: test/nvmf/target/discovery.sh
modified: test/nvmf/target/fabrics_fuzz.sh
modified: test/nvmf/target/filesystem.sh
modified: test/nvmf/target/fio.sh
modified: test/nvmf/target/fused_ordering.sh
modified: test/nvmf/target/host_management.sh
modified: test/nvmf/target/identify_passthru.sh
modified: test/nvmf/target/initiator_timeout.sh
modified: test/nvmf/target/interrupt.sh
modified: test/nvmf/target/invalid.sh
modified: test/nvmf/target/multiconnection.sh
modified: test/nvmf/target/multipath.sh
modified: test/nvmf/target/multitarget.sh
modified: test/nvmf/target/multitarget_rpc.py
modified: test/nvmf/target/nmic.sh
modified: test/nvmf/target/ns_hotplug_stress.sh
modified: test/nvmf/target/ns_masking.sh
modified: test/nvmf/target/nsid.sh
modified: test/nvmf/target/nvme_cli.sh
modified: test/nvmf/target/nvmf_example.sh
modified: test/nvmf/target/nvmf_lvol.sh
modified: test/nvmf/target/nvmf_lvs_grow.sh
modified: test/nvmf/target/nvmf_vfio_user.sh
modified: test/nvmf/target/perf_adq.sh
modified: test/nvmf/target/queue_depth.sh
modified: test/nvmf/target/referrals.sh
modified: test/nvmf/target/rpc.sh
modified: test/nvmf/target/shutdown.sh
modified: test/nvmf/target/srq_overwhelm.sh
modified: test/nvmf/target/tls.sh
modified: test/nvmf/target/vfio_user_fuzz.sh
modified: test/nvmf/target/wait_for_buf.sh
modified: test/nvmf/target/zcopy.sh
modified: test/ocf/integrity/bdevperf-iotypes.sh
modified: test/ocf/integrity/fio-modes.sh
modified: test/ocf/integrity/flush.sh
modified: test/ocf/integrity/stats.sh
modified: test/ocf/management/configuration-change.sh
modified: test/ocf/management/create-destruct.sh
modified: test/ocf/management/multicore.sh
modified: test/ocf/management/remove.sh
modified: test/ocf/ocf.sh
modified: test/openstack/install_devstack.sh
modified: test/openstack/run_openstack_tests.sh
modified: test/packaging/packaging.sh
modified: test/packaging/rpm/rpm.sh
modified: test/rpc/rpc.sh
modified: test/rpc/skip_rpc.sh
modified: test/rpc_client/rpc_client.sh
modified: test/scheduler/core_isolating.sh
modified: test/scheduler/governor.sh
modified: test/scheduler/idle.sh
modified: test/scheduler/interrupt.sh
modified: test/scheduler/load_balancing.sh
modified: test/scheduler/rdmsr.pl
modified: test/scheduler/rpc.sh
modified: test/scheduler/scheduler.sh
modified: test/setup/acl.sh
modified: test/setup/devices.sh
modified: test/setup/driver.sh
modified: test/setup/hugepages.sh
modified: test/setup/test-setup.sh
modified: test/sma/crypto.sh
modified: test/sma/discovery.sh
modified: test/sma/nvmf_tcp.sh
modified: test/sma/plugins.sh
modified: test/sma/qos.sh
modified: test/sma/sma.sh
modified: test/sma/vfiouser_qemu.sh
modified: test/sma/vhost_blk.sh
modified: test/spdkcli/iscsi.sh
modified: test/spdkcli/nvmf.sh
modified: test/spdkcli/raid.sh
modified: test/spdkcli/rbd.sh
modified: test/spdkcli/spdkcli_job.py
modified: test/spdkcli/tcp.sh
modified: test/spdkcli/vhost.sh
modified: test/spdkcli/virtio.sh
modified: test/thread/thread.sh
modified: test/ublk/ublk.sh
modified: test/ublk/ublk_recovery.sh
modified: test/unit/unittest.sh
modified: test/vfio_user/nvme/vfio_user_fio.sh
modified: test/vfio_user/nvme/vfio_user_restart_vm.sh
modified: test/vfio_user/vfio_user.sh
modified: test/vfio_user/virtio/fio_fs.sh
modified: test/vfio_user/virtio/fio_restart_vm.sh
modified: test/vfio_user/virtio/initiator_bdevperf.sh
modified: test/vhost/fio/fio.sh
modified: test/vhost/fiotest/fio.sh
modified: test/vhost/fuzz/fuzz.sh
modified: test/vhost/hotplug/scsi_hotattach.sh
modified: test/vhost/hotplug/scsi_hotdetach.sh
modified: test/vhost/hotplug/scsi_hotplug.sh
modified: test/vhost/initiator/blockdev.sh
modified: test/vhost/integrity/integrity_start.sh
modified: test/vhost/integrity/integrity_vm.sh
modified: test/vhost/lvol/lvol_test.sh
modified: test/vhost/manual.sh
modified: test/vhost/migration/migration.sh
modified: test/vhost/nvmf/nvmf_vhost.sh
modified: test/vhost/other/negative.sh
modified: test/vhost/parse_irqs.sh
modified: test/vhost/perf_bench/vhost_perf.sh
modified: test/vhost/readonly/delete_partition_vm.sh
modified: test/vhost/readonly/disabled_readonly_vm.sh
modified: test/vhost/readonly/enabled_readonly_vm.sh
modified: test/vhost/readonly/readonly.sh
modified: test/vhost/shared/shared.sh
modified: test/vhost/vhost.sh
modified: test/vhost/vhost_boot/vhost_boot.sh
modified: test/vhost/windows/windows_scsi_compliance.py
modified: test/vhost/windows/windows_scsi_compliance.sh
modified: test/vmd/vmd.sh
modified: 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")
这个时候 发现, 没有改动文件 已经不显示 了。