* 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 <[email protected]>
---
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
_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev