Instead of
if A; then
...
else
if B; then
...
else
...
fi
fi
use the more compact
if A; then
...
elif B; then
Signed-off-by: Uwe Kleine-König
---
scripts/git-ptx-patches | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches
index df004fb8a8a5..56e82eb2ee56 100755
--- a/scripts/git-ptx-patches
+++ b/scripts/git-ptx-patches
@@ -204,7
As the loop over the output of find moves files around, it can happen
that find lists files more than once. In that case not only the "From "
line is removed, but also the next one (usually the "From:" line).
To process each patch in series.auto exactly once, iterate over that
file to remove the
Hello,
occasionally I hit the problem that git-ptx-patches removes the From:
line from patches. I cannot reproduce that at will, but I think the
issue is fixed in the first patch. I hit that sometimes in the past with
no good idea how it could happen. Today Thorsten also hit it, which made
me
On Wed, Nov 29, 2023 at 10:37:45AM +0100, Uwe Kleine-König wrote:
> As the loop over the output of find moves files around, it can happen
> that find lists files more than once. In that case not only the "From "
> line is removed, but also the next one (usually the "From:" line).
>
> To process