summaryrefslogtreecommitdiffstats
path: root/quilt.quiltrc
diff options
context:
space:
mode:
Diffstat (limited to 'quilt.quiltrc')
-rw-r--r--quilt.quiltrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/quilt.quiltrc b/quilt.quiltrc
index b815d32..cd44500 100644
--- a/quilt.quiltrc
+++ b/quilt.quiltrc
@@ -18,6 +18,10 @@ QUILT_REFRESH_ARGS="--no-timestamps --backup"
QUILT_SERIES_ARGS="--color=auto"
QUILT_PATCHES_ARGS="--color=auto"
+# When non-default less options are used, add the -R option so that less outputs
+# ANSI color escape codes "raw".
+[ -n "$LESS" ] && QUILT_PAGER="less -R"
+
# (Add "-p ab" to QUILT_DIFF_ARGS and QUILT_REFRESH_ARGS to get
# -p1 style diffs with a/file and b/file filenams in headers
# instead of dir.orig/file and dir/file.)