On Mon, 30 Nov 2026 12:11:37 -0500
Steven Rostedt <rost…@goodmis.org> wrote:
> > Here a simple "git restore ." would restore the working tree to match
> > the index (which should be equivalent to HEAD), right?
>
> Hmm, I actually wasn't familiar with the restore option. Thanks!
Hmm, the "git restore ." still leaves all the different files that were in
the current change there. That is:
$ git checkout v7.4-rc4
$ git reset v7.3.6
$ git restore .
$ git status
Not currently on any branch.
Untracked files:
(use "git add <file>..." to include in what will be committed)
AGENTS.md
Documentation/ABI/removed/sysfs-driver-uniwill-laptop
Documentation/ABI/testing/debugfs-iio-ad9910
Documentation/ABI/testing/sysfs-bus-iio-adc
Documentation/ABI/testing/sysfs-bus-iio-frequency-ad9910
Documentation/ABI/testing/sysfs-bus-mhi-devices-loopback
Documentation/ABI/testing/sysfs-driver-intel-xe-gpu
Documentation/ABI/testing/sysfs-driver-lenovo-yoga-slim7x-gen11-ec
Documentation/ABI/testing/sysfs-firmware-cca
Documentation/crypto/libcrypto-zeroization.rst
Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml
Documentation/devicetree/bindings/bus/hisilicon,hisi-localbus.yaml
Documentation/devicetree/bindings/bus/ti,omap-ocp2scp.yaml
Documentation/devicetree/bindings/clock/anlogic,dr1v90-cru.yaml
Documentation/devicetree/bindings/clock/clock-nexus-node.yaml
Documentation/devicetree/bindings/clock/hisilicon,clocks.yaml
Documentation/devicetree/bindings/clock/hisilicon,hi6220-stub-clk.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8952.yaml
Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml
[..]
tools/testing/selftests/sched_ext/kick.c
tools/testing/selftests/sched_ext/kick_test.h
tools/testing/selftests/sched_ext/nohz_tick_test.h
tools/testing/selftests/ublk/ctrl.c
tools/testing/selftests/ublk/test_generic_18.sh
tools/testing/selftests/ublk/ublk_cancel_ready.c
tools/testing/selftests/vfio/lib/drivers/mlx5/
tools/testing/selftests/x86/sigframe_fpu_portability.c
tools/virtio/linux/device-id/
nothing added to commit but untracked files present (use "git add" to track)
$ git status | wc -l
1480
The above was performed in a newly created worktree.
-- Steve