<blockquote>
<p>Nice to see that at least somebody has discovered this and finding the idea useful enough to improve.</p>
<p>Please split to independent commits though, too much unrelated change packed into one here:</p>
</blockquote>
<p>Sure, that's fine by me.</p>
<blockquote>
<pre><code>* creating a branch where patches are applied is one change and should arguably be done for all scm's that meaningfully support it
</code></pre>
</blockquote>
<p>I see your point, and I agree with it, but I have a concern: I wouldn't know where to begin for any of the other scm systems, so I'm not writing support for all of them. That said, I don't see that there's much generalization to be had here (in terms of the code); it appears they'll all have to be separate implementations entirely. It doesn't seem like there's much good reason to gate one scm doing this on support in the others, so I'll send this as its own patch for git.</p>
<blockquote>
<pre><code>* support for options in apply should also be a general thing, not limited to git am, and adding a mechanism generally should be separated from adding particular defaults
</code></pre>
</blockquote>
<p>Sure - but again I'm only comfortable implementing that for git.  Tell me what /sort/ of mechanism are you looking for, and I'll happily write it for all the git cases, and write the general hook for it so others can implement it for the other scm systems. Are you okay with the approach I took with seeing if %{expand:%%{?<em>scm_apply</em>%{_scm}_options}} exists as the method for generalizing it?</p>
<blockquote>
<pre><code>* I do see the point with `git am --continue` but short-cutting to %{patches} breaks other use-cases like applying ranges of patches. Need to find a way to do this without breaking others.
</code></pre>
</blockquote>
<p>Would you be prefer something like a global that can be defined to control this (a la disabling debuginfo), or would you prefer an argument to %autosetup, or some other method I haven't thought of?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/854?email_source=notifications&email_token=ADLPZU4B7ITLW4BBYI4MDGTQLNY47A5CNFSM4IZOBKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SD2KI#issuecomment-535051561">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU2I4LIUQOGRFPLGJR3QLNY47ANCNFSM4IZOBKHQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUYPW2LI7YXULOKXPM3QLNY47A5CNFSM4IZOBKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SD2KI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/854?email_source=notifications\u0026email_token=ADLPZU4B7ITLW4BBYI4MDGTQLNY47A5CNFSM4IZOBKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SD2KI#issuecomment-535051561",
"url": "https://github.com/rpm-software-management/rpm/pull/854?email_source=notifications\u0026email_token=ADLPZU4B7ITLW4BBYI4MDGTQLNY47A5CNFSM4IZOBKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7SD2KI#issuecomment-535051561",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>