code: def from_path(cls, path):
          
          f = GitFile(path, 'rb')
          try:
              ret = cls.from_file(f)
              ret.path = path
              return ret
          finally:
              f.close()
docs: Read configuration from a file on disk.