Skip to content
Myr

Merge pull request #835 from vivekanand1101/patch-1

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

docs/complex: fix typo

authored by David Lord · committed by GitHub · parents a43b947, 3b2f0cc · 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