Virtual Method

IdeVcsget_workdir

Declaration

GFile*
get_workdir (
  IdeVcs* self
)

Description

Retrieves the working directory for the context. This is the root of where the project files exist.

This function is safe to call from threads holding a reference to self.

Return value

Type: GFile

A GFile.

Thread safety: this function is safe to call from threads. The working directory should only be set at creating and therefore safe to call at any time from any thread that holds a reference to self. Those implementing IdeVcs are required to ensure this invariant holds true.

The data is owned by the called function.