* 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 performance gain was measured to be between 1% and 3% on half-applied large patch series. Signed-off-by: Jean Delvare <[email protected]> --- quilt/series.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) --- a/quilt/series.in +++ b/quilt/series.in @@ -95,10 +95,13 @@ then [ -n "$opt_color" ] && setup_colors top=$(top_patch) - cat_patches "$color_series_app" \ - "${opt_verbose:++ }" $(patches_before $top) - [ -n "$top" ] && cat_patches "$color_series_top" \ - "${opt_verbose:+= }" $top + if [ -n "$top" ] + then + cat_patches "$color_series_app" \ + "${opt_verbose:++ }" $(applied_before $top) + cat_patches "$color_series_top" \ + "${opt_verbose:+= }" $top + fi cat_patches "$color_series_una" \ "${opt_verbose:+ }" $(patches_after $top) else -- Jean Delvare SUSE L3 Support _______________________________________________ Quilt-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/quilt-dev
