Skip to content
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

Removed xargs from git-effort #956

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

tfendin
Copy link
Contributor

@tfendin tfendin commented Feb 25, 2022

This is one way to solve issue #953, but it's a little bit flawed.
The problem is that we used xargs --max-args 1 --replace % -c bash "effort \"%\"", because the function effort only takes one argument and we want it to be quoted. --max-args and --replace are conflicting in newer versions of xargs.
In this PR I've removed xargs and only use bash code to call effort. However, the previous implementation used the --max-procs=4 option to xargs to use effort in four "threads". This version forks heavily, which could cause performance problems in the rest of the system.
I have only done some minor tests in one repo, it should be tested in more repos and on other OS:es as well.

@spacewander spacewander merged commit 42458d8 into tj:master Mar 1, 2022
@tfendin tfendin deleted the xargs-conflicting-args branch March 6, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants