devblog
This commit is contained in:
parent
c20e8d17db
commit
26405c107a
1 changed files with 18 additions and 0 deletions
18
doc/devblog/day_372__adjusted_branches_improved.mdwn
Normal file
18
doc/devblog/day_372__adjusted_branches_improved.mdwn
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
After a real brain-bender of a day, I have commit propigation from the
|
||||||
|
adjusted branch back to the original branch working, without needing to
|
||||||
|
reverse adjust the whole tree. This is faster, but the really nice thing
|
||||||
|
is that it makes individual adjustments simpler to write.
|
||||||
|
|
||||||
|
In fact, it's so simple that I took 10 minutes just now to implement a second
|
||||||
|
adjustment!
|
||||||
|
|
||||||
|
[[!format haskell """
|
||||||
|
adjustTreeItem HideMissingAdjustment h ti@(TreeItem _ _ s) = do
|
||||||
|
mk <- catKey s
|
||||||
|
case mk of
|
||||||
|
Just k -> ifM (inAnnex k)
|
||||||
|
( return (Just ti)
|
||||||
|
, return Nothing
|
||||||
|
)
|
||||||
|
Nothing -> return (Just ti)
|
||||||
|
"""]]
|
Loading…
Reference in a new issue