MCPcopy Create free account
hub / github.com/dagger/dagger / common_ancestor

Method common_ancestor

sdk/python/src/dagger/client/gen.py:9499–9511  ·  view source on GitHub ↗

Find the best common ancestor between this ref and another ref. Parameters ---------- other: The other ref to compare against.

(self, other: Self)

Source from the content-addressed store, hash-verified

9497 return await _ctx.execute(str)
9498
9499 def common_ancestor(self, other: Self) -> Self:
9500 """Find the best common ancestor between this ref and another ref.
9501
9502 Parameters
9503 ----------
9504 other:
9505 The other ref to compare against.
9506 """
9507 _args = [
9508 Arg("other", other),
9509 ]
9510 _ctx = self._select("commonAncestor", _args)
9511 return GitRef(_ctx)
9512
9513 async def id(self) -> str:
9514 """A unique identifier for this GitRef.

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
GitRefClass · 0.70

Tested by

no test coverage detected