diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-08-15 16:14:33 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-08-15 17:02:12 +0000 |
commit | 5ff98b9d6e7073c47d051a8cadb0979cc959493f (patch) | |
tree | 878c7b20187a95570e6b462b9e4188a30410c2cb /morphlib/plugins/branch_and_merge_new_plugin.py | |
parent | 8b88eeed5acf03e0b95df6ae19b20777b83ad4fd (diff) | |
download | morph-5ff98b9d6e7073c47d051a8cadb0979cc959493f.tar.gz |
Add GitDir.is_currently_checked_out
This is needed when we load morphologies in "morph edit": it needs
to load things differently depending on whether we're loading from
the currently checked out ref or not.
The new method does not have a unit test, because I'm betting that
the test would not find a real bug. The test would just set up a
git repo and check whether the right ref is checked out in a couple
of ways (it is, and it isn't), and the code is simple enough that
it's unlikely to break the test. Creating the test, however, is a
fair bit of work. What the test would not catch is when we need the
method to do something quite different, but then we'll want a new
method anyway.
Diffstat (limited to 'morphlib/plugins/branch_and_merge_new_plugin.py')
0 files changed, 0 insertions, 0 deletions