Skip to content
Myr

docs/complex: fix typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Vivek Anand · committed by GitHub · parent 81b2fda · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/complex.rst+4 added-4 removed
151 unmodified lines
152One obvious way to remedy this is to store a reference to the repo in the153plugin, but then a command needs to be aware that it's attached below such a154plugin.155156There is a much better system that can built by taking advantage of the linked157nature of contexts. We know that the plugin context is linked to the context158that created our repo. Because of that, we can start a search for the last159level where the object stored by the context was a repo.156There is a much better system that can be built by taking advantage of the157linked nature of contexts. We know that the plugin context is linked to the158context that created our repo. Because of that, we can start a search for159the last level where the object stored by the context was a repo.160161Built-in support for this is provided by the :func:`make_pass_decorator`162factory, which will create decorators for us that find objects (it163internally calls into :meth:`Context.find_object`). In our case, we
56 unmodified lines