Skip to content

Commit b5d6ad8

Browse files
committed
Filter stash collection on savelist
Update savelist sub-command to filter out stash collections unless --all option is set.
1 parent b1b4096 commit b5d6ad8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tcl/subcmd.tcl.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,11 @@ proc cmdModuleSavelist {show_oneperline show_mtime search_match args} {
784784
foreach collfile [findCollections * glob 0 0 1 $find_no_other_target] {
785785
# remove target suffix from names to display
786786
regsub $suffix$ [file tail $collfile] {} coll
787-
set coll_arr($coll) $collfile
787+
# filter stash collections unless called by stashlist or --all opt set
788+
if {$typedesc ne {named} || ![regexp {stash-\d+} $coll] || [getState\
789+
hiding_threshold] >= 2} {
790+
set coll_arr($coll) $collfile
791+
}
788792
}
789793

790794
# same header msg if no collection at all whether search is made or not

0 commit comments

Comments
 (0)