import re
from .view import View
from log import log
from gitfs.filesystems.passthrough import PassthroughFuse


class CurrentView(View, PassthroughFuse):

    def __init__(self, *args, **kwargs):
        super(CurrentView, self).__init__(*args, **kwargs)
        self.root = self.repo_path

    def rename(self, old, new):
        new = re.sub(self.regex, '', new)
        super(CurrentView, self).rename(old, new)

@@ -3,16 +3,26 @@
 port re%0A
+import os%0A
 from .vi
@@ -40,28 +40,8 @@
 iew%0A
-from log import log%0A
 from
@@ -395,12 +395,188 @@
 e(old, new)%0A
+%0A    def symlink(self, name, target):%0A        return os.symlink(target, self._full_path(name))%0A%0A    def readlink(self, path):%0A        return os.readlink(self._full_path(path))%0A

support for create/access symlinks