summaryrefslogtreecommitdiff
path: root/tests.branching
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-05 14:04:06 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-05 14:04:06 +0000
commit9ee503f122b12b0c1c57470ea9fb391d9079642a (patch)
tree837d2d1e7745fda8535330c7f1b8852c5fd4ab3c /tests.branching
parentcb842f99895da98a9696cfa770d42e8324c9fdb4 (diff)
downloadmorph-9ee503f122b12b0c1c57470ea9fb391d9079642a.tar.gz
morphlib: Add MorphologyFinder class
MorphologyFinder is a small wrapper on top of GitDirectory that allows the inspection of morphologies in the repository. Its purpose is to isolate the logic for reading morphologies into one place. It is used by passing a GitDirectory and optionally a ref to the MorpholgyFinder constructor, then list_morphologies and read_morphology may be used. The ref is passed directly to the GitDirectory, so its semantics for a ref of None or omitted are used. i.e. It uses the working tree. Ref resolving is deferred until a morphology is listed or read, so it will not raise an exception for an invalid ref until then.
Diffstat (limited to 'tests.branching')
0 files changed, 0 insertions, 0 deletions