diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-02-02 00:32:48 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2005-02-02 00:32:48 +0000 |
commit | 6c2caad20d9e49d07982e6a39786292bdac11e6f (patch) | |
tree | 619d82342e19e14b4f6356cef1bfa825f008b572 /scripts/patchfns.in | |
parent | 30dec222194425235ce4cc479f99161e6caa0ab3 (diff) | |
download | quilt-6c2caad20d9e49d07982e6a39786292bdac11e6f.tar.gz |
- Use color defaults so that QUILT_COLORS can be used to only
override some colors.
- When checking for remaining changes (refresh forgotten), use
$QUILT_PATCH_OPTS as in the push command to get identical
results. Don't generate the actually diff; it doesn't get
printed anyway. This should speed up things.
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r-- | scripts/patchfns.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 25e92af..4454499 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -763,7 +763,8 @@ print_patch() { setup_colors() { - local C=${QUILT_COLORS:-diff_hdr=32:diff_add=36:diff_mod=35:diff_rem=35:diff_hunk=33:diff_ctx=35:diff_cctx=33:patch_offs=33:patch_fuzz=35:patch_fail=31}:clear=00 + local C=diff_hdr=32:diff_add=36:diff_mod=35:diff_rem=35:diff_hunk=33:diff_ctx=35:diff_cctx=33:patch_offs=33:patch_fuzz=35:patch_fail=31:clear=00 + [ -n "$QUILT_COLORS" ] && C="$C:$QUILT_COLORS" C=${C//=/=\'$'\e'[} C=color_${C//:/m\'; color_}m\' |