Exec.descendant.clone: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/git/exec.bend as Exec Lines 132-141 of ezx@1.11.0.0/src/git/exec.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/git/exec.bend&start_line=132&end_line=141 import Base import snap@1.4.0.0/main.bend as R # the clone, the question, the clone gone. The same commit is a descendant # of itself and needs no clone to say so. def descendant.clone(+work: String, +url: String, +pin: String, +tip: String) -> IO(Bool): do IO: _rm : String <- R.exec(["rm", "-rf", work]) clone.bare(work, url) +out : String <- R.exec(["git", "-C", work, "merge-base", "--is-ancestor", pin, tip]) _cl : String <- R.exec(["rm", "-rf", work]) descendant.code(R.code(out), R.text(out)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/exec.bend&name=clone.bare https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/exec.bend&name=descendant.code https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=code https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=text