]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Make --single-stream imply --keep
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 4 Jan 2025 18:02:18 +0000 (20:02 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 4 Jan 2025 18:02:18 +0000 (20:02 +0200)
Suggested by xx on #tukaani on 2024-04-12.

src/xz/args.c
src/xz/xz.1

index cf0c9a3a8e78cdd013b1b3f260526db2b176927d..e85d1526c083574ce4939840f5dd20cfad18520a 100644 (file)
@@ -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:
index 41a0a48c49154b785d19779044460890268a447d..803650d300b32c48792722b3cff4bc474d43c163 100644 (file)
@@ -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.