Skip to content

Commit ca23f9f

Browse files
committed
Document empty input selection semantics
1 parent b7359bf commit ca23f9f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

client/snapper/cmd-diff.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ namespace snapper
9898
pair<ProxySnapshots::const_iterator, ProxySnapshots::const_iterator> range =
9999
snapshots.findNums(get_opts.pop_arg());
100100

101+
// An empty --input file is still an explicit selection and must not mean all files.
101102
bool selected = file || get_opts.num_args() > 0;
102103
vector<string> filenames = MyFiles::get_requested_files(file, get_opts);
103104

client/snapper/cmd-undochange.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ namespace snapper
9292
exit(EXIT_FAILURE);
9393
}
9494

95+
// An empty --input file is still an explicit selection and must not mean all files.
9596
bool selected = file || get_opts.num_args() > 0;
9697
vector<string> filenames = MyFiles::get_requested_files(file, get_opts);
9798

0 commit comments

Comments
 (0)