Diviner

Class ArcanistWorkingCopyIdentity

Definedsrc/workingcopyidentity/ArcanistWorkingCopyIdentity.php:11
GroupWorking Copy APIs

Interfaces with basic information about the working copy.

Tasks

config

Unspecified

Methods

protected this __construct($root, array $config)

parameterswild$root
array$config
returnthis
This method is not documented.

public getConduitURI()

returnwild
This method is not documented.

public wild getConfig($key, $default = null)

parameterskey$keyKey to read.
wild$defaultDefault value if key is not found.
returnwildValue, or default value if not found.

Read a configuration directive from project configuration. This reads ONLY permanent project configuration (i.e., ".arcconfig"), not other configuration sources. See getConfigFromAnySource() to read from user configuration.

public wild getConfigFromAnySource($key, $default = null)

parameterskey$keyKey to read.
wild$defaultDefault value if key is not found.
returnwildValue, or default value if not found.

Read a configuration directive from any available configuration source. In contrast to getConfig(), this will look for the directive in local and user configuration in addition to project configuration. The precedence is local > project > user

public getLocalConfig($key, $default = null)

parameterswild$key
wild$default
returnwild

Read a configuration directive from local configuration. This reads ONLY the per-working copy configuration, i.e. .(git|hg|svn)/arc/config, and not other configuration sources. See getConfigFromAnySource() to read from any config source or getConfig() to read permanent project-level config.

public getProjectConfig()

returnwild
This method is not documented.

public getProjectID()

returnwild
This method is not documented.

public getProjectRoot()

returnwild
This method is not documented.

public static newDummyWorkingCopy()

returnwild
This method is not documented.

public static newFromPath($path)

parameterswild$path
returnwild
This method is not documented.

public static newFromRootAndConfigFile($root, $config_raw, $from_where)

parameterswild$root
wild$config_raw
wild$from_where
returnwild
This method is not documented.

private static parseRawConfigFile($raw_config, $from_where)

parameterswild$raw_config
wild$from_where
returnwild
This method is not documented.

public setRuntimeConfig($key, $value)

parameterskey$keyKey to set.
value$valueThe value of the key.
returnwild

Sets a runtime config value that takes precedence over any static config values.