From: Lasse Collin Date: Sat, 4 Jan 2025 18:02:18 +0000 (+0200) Subject: xz: Make --single-stream imply --keep X-Git-Tag: v5.7.1alpha~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35df4c2bc0500e60ba9d0d163d37a6d110d6841e;p=thirdparty%2Fxz.git xz: Make --single-stream imply --keep Suggested by xx on #tukaani on 2024-04-12. --- diff --git a/src/xz/args.c b/src/xz/args.c index cf0c9a3a..e85d1526 100644 --- a/src/xz/args.c +++ b/src/xz/args.c @@ -612,6 +612,9 @@ parse_real(args_info *args, int argc, char **argv) case OPT_SINGLE_STREAM: opt_single_stream = true; + + // Since 5.7.1alpha --single-stream implies --keep. + opt_keep_original = true; break; case OPT_NO_SPARSE: diff --git a/src/xz/xz.1 b/src/xz/xz.1 index 41a0a48c..803650d3 100644 --- a/src/xz/xz.1 +++ b/src/xz/xz.1 @@ -4,7 +4,7 @@ .\" Authors: Lasse Collin .\" Jia Tan .\" -.TH XZ 1 "2024-12-30" "Tukaani" "XZ Utils" +.TH XZ 1 "2025-01-04" "Tukaani" "XZ Utils" . .SH NAME xz, unxz, xzcat, lzma, unlzma, lzcat \- Compress or decompress .xz and .lzma files @@ -497,6 +497,13 @@ This option has no effect if the operation mode is not .B \-\-decompress or .BR \-\-test . +.IP "" +Since +.B xz +5.7.1alpha, +.B \-\-single\-stream +implies +.BR \-\-keep . .TP .B \-\-no\-sparse Disable creation of sparse files.