PortValhalla/scripts/copy-repo.fish

13 lines
331 B
Fish
Raw Normal View History

2024-07-07 20:33:01 +00:00
#!/bin/env fish
begin
set -l target "$argv[1]"
set -l dir "$(status dirname)/.."
git clone "$dir" "$target"
git -C "$dir" diff HEAD | git -C "$target" apply --allow-empty
git -C "$dir" ls-files --exclude-standard --others | \
while read file
cp "$dir/$file" "$target/$file"
end
end