Skip to content

Commit cb642cc

Browse files
Implement :lookup filter
Change: lookup
1 parent ea473ef commit cb642cc

File tree

21 files changed

+1344
-317
lines changed

21 files changed

+1344
-317
lines changed

docs/src/reference/filters.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,22 @@ tree.
126126
Normally Josh will keep all commits in the filtered history whose tree differs from any of it's
127127
parents.
128128

129+
### Freeze tree updates
130+
131+
`:freeze` filter prevents appearance of selected subtrees for a given revision.
132+
133+
In practical terms, it means that file and folder updates are "held off" or "frozen".
134+
If a tree entry already existed in the parent revision, that version will be chosen.
135+
Otherwise, the tree entry will not appear in the filtered commit.
136+
137+
The source of the parent revision is always the first commit parent.
138+
139+
Note that this filter is only practical when used with `:hook` or `workspace.josh`,
140+
as it should apply per-revision only. Applying `:freeze` for the whole history
141+
will result in the subtree being excluded from all revisions.
142+
143+
Refer to `freeze_filter_workspace.t` and `freeze_filter_hook.t` for reference.
144+
129145
Filter order matters
130146
--------------------
131147

0 commit comments

Comments
 (0)