[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH] patches: Minor optimizations
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH] patches: Minor optimizations |
Date: |
Fri, 21 Jun 2024 18:29:54 +0200 |
User-agent: |
Evolution 3.42.4 |
* If there is no top patch, then there can't be patches before the
top patch.
* Use applied_before as it is faster than patches_before.
The same optimizations were applied to the series command 4 years ago
with commit 4040eb7dce59 ("series: Minor optimizations").
Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
quilt/patches.in | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- a/quilt/patches.in
+++ b/quilt/patches.in
@@ -148,11 +148,13 @@ fi
setup_pager
-scan_applied "$color_series_app" "$applied" \
- $(patches_before $top)
-[ -n "$top" ] && \
+if [ -n "$top" ]
+then
+ scan_applied "$color_series_app" "$applied" \
+ $(applied_before $top)
scan_applied "$color_series_top" "$current" \
$top
+fi
scan_unapplied "$color_series_una" "$unapplied" \
$(patches_after $top)
### Local Variables:
--
Jean Delvare
SUSE L3 Support
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] [PATCH] patches: Minor optimizations,
Jean Delvare <=