#!/bin/sh test_description='git restore --patch' . ./lib-patch-mode.sh test_expect_success PERL 'setup' ' mkdir dir && echo parent >dir/foo && echo dummy >bar && git add bar dir/foo && git commit -m initial && test_tick && test_commit second dir/foo head && set_and_save_state bar bar_work bar_index && save_head ' test_expect_success PERL 'restore -p without pathspec is fine' ' echo q >cmd && git restore -p