Commit 83e6cc19 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2db00f78
...@@ -301,7 +301,11 @@ func (δ *δtrackIndex) Update(δ2 *δtrackIndex) { ...@@ -301,7 +301,11 @@ func (δ *δtrackIndex) Update(δ2 *δtrackIndex) {
} }
} }
// XXX Revert // Reverse changes δ=diff(A->B) to δ'=diff(A<-B).
func (δ *δtrackIndex) Reverse() {
δ.Del, δ.Add = δ.Add, δ.Del
// δnchildNonLeafs stays the same
}
// gc1 garbage-collects oid and cleans up its parent down-up. // gc1 garbage-collects oid and cleans up its parent down-up.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment