My earlier objection to the --filter argument continues because (revised quote based on current status)
The --filter argument seems to only have been added to git 2.27 and later. The git plugin needs to support command line git versions on supported Linux operating systems. Command line git 2.27 is newer than the command line git provided with two of the Linux operating systems supported by the Jenkins project.
The current supported operating systems that deliver a CLI git version older than git 2.27:
If the feature is added, it needs to be safeguarded against failing on older versions of command line git that do not support the --filter argument.
If the feature is added, it needs to include automated tests that confirm it works as expected so that I can run those tests in my wide range of test configurations.
I think that you could add credentials to checkout without compatibility concerns, though I don't plan to add credentials to checkout myself.
Yeah, it would be nice to have built-in support for this feature. For now, I'm doing it by manually calling `git` commands in a `sh` step, the following example partially clones the repo, checks out SOME_BRANCH, merges master into it, and pushes: