-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cp -c
when copying files
#17373
Use cp -c
when copying files
#17373
Commits on May 27, 2024
-
Add
Utils::Cp
for interacting withcp
commandThis module determines the `cp` command to use based on availability of the `coreutils` formula and optimizes the command invocation to prefer a lightweight copy-on-write clone, which is significantly faster than a full file copy and helps to reduce the risk of exhausting the storage during the operation.
Configuration menu - View commit details
-
Copy full SHA for b905959 - Browse repository at this point
Copy the full SHA b905959View commit details -
This replaces `FileUtils.cp` and `system_command! "cp"` with the new `Utils::Cp` utility where it is expected that the performance improvement outweighs the cost of the system command invocation.
Configuration menu - View commit details
-
Copy full SHA for deaac7c - Browse repository at this point
Copy the full SHA deaac7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8af1c5 - Browse repository at this point
Copy the full SHA b8af1c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 942906b - Browse repository at this point
Copy the full SHA 942906bView commit details
Commits on May 28, 2024
-
Utils::Cp: Drop special case for coreutils
cp
As per review feedback: Homebrew#17373 (comment)
Configuration menu - View commit details
-
Copy full SHA for b4dcb94 - Browse repository at this point
Copy the full SHA b4dcb94View commit details
Commits on Jun 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a5500aa - Browse repository at this point
Copy the full SHA a5500aaView commit details
Commits on Jun 7, 2024
-
Utils::Cp: Rename
copy*
methods tocopy*_with_attributes
As per review feedback: Homebrew#17373 (review)
Configuration menu - View commit details
-
Copy full SHA for 5885210 - Browse repository at this point
Copy the full SHA 5885210View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cfcc59 - Browse repository at this point
Copy the full SHA 7cfcc59View commit details -
Utils::Cp: Revert the use of
Utils::Cp
in dev-cmdAs per review feedback: Homebrew#17373 (review)
Configuration menu - View commit details
-
Copy full SHA for d9239fa - Browse repository at this point
Copy the full SHA d9239faView commit details -
Utils::Cp: Remove
copy
prefix from method nameAs per review feedback: Homebrew#17373 (review) Co-authored-by: Mike McQuaid <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b2ddeec - Browse repository at this point
Copy the full SHA b2ddeecView commit details -
Apply suggestions from code review
Homebrew#17373 (review) Co-authored-by: Mike McQuaid <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a4271fd - Browse repository at this point
Copy the full SHA a4271fdView commit details
Commits on Jun 8, 2024
-
Utils::Cp: Use
FileUtils.cp
on Linux`FileUtils.cp` is implemented with the lightweight `copy_file_range(2)` syscall on Linux, so it's more performant than the plain `cp` command on that platform. cf. Homebrew#17373 (review)
Configuration menu - View commit details
-
Copy full SHA for 9156891 - Browse repository at this point
Copy the full SHA 9156891View commit details -
Utils::Cp: Add
force_system
keyword argumentThis fixes the test for `UnpackStrategy::Directory`, which needs the `cp` command.
Configuration menu - View commit details
-
Copy full SHA for 67f280e - Browse repository at this point
Copy the full SHA 67f280eView commit details
Commits on Jun 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eab1e87 - Browse repository at this point
Copy the full SHA eab1e87View commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4edbbfd - Browse repository at this point
Copy the full SHA 4edbbfdView commit details -
Utils::Cp: Rename to
Utils::Copy
As per review feedback: Homebrew#17373 (comment)
Configuration menu - View commit details
-
Copy full SHA for 028cfe1 - Browse repository at this point
Copy the full SHA 028cfe1View commit details
Commits on Jun 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8e8d0c0 - Browse repository at this point
Copy the full SHA 8e8d0c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4fefc9 - Browse repository at this point
Copy the full SHA e4fefc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a30cd15 - Browse repository at this point
Copy the full SHA a30cd15View commit details