[ptxdist] [PATCH 3/3] git-ptx-patches: Simplify nested if construct

2023-11-29 Thread Uwe Kleine-König
Instead of if A; then ... else if B; then ... else ... fi fi use the more compact if A; then ... elif B; then

[ptxdist] [PATCH 2/3] git-ptx-patches: Open .ptxdist/series less often for writing

2023-11-29 Thread Uwe Kleine-König
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

[ptxdist] [PATCH 1/3] git-ptx-patches: Fix a race condition

2023-11-29 Thread Uwe Kleine-König
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

[ptxdist] [PATCH 0/3] git-ptx-patches: A fix and two minor improvements

2023-11-29 Thread Uwe Kleine-König
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

Re: [ptxdist] [PATCH 1/3] git-ptx-patches: Fix a race condition

2023-11-29 Thread Thorsten Scherer
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