.lfsconfig.
According to the git lfs documentation the order to find the
.lfsconfig file is:
Values from the .lfsconfig are used only if not specified in another
git config file to allow local override without modifiction of a committed
file.
| Modifier and Type | Field and Description |
|---|---|
| private Repository | |
| private Config |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Config | Returns: an empty configCreate an empty config as fallback to avoid null pointer checks. |
| private Config | |
| public String | |
| private Config | Returns: The loaded lfs configRead the .lfsconfig file from the repository An empty config is returned be empty if no lfs config exists. |
| private Config | Returns: the config, ornull if the file does not existTry to read the lfs config from an entry called .lfsconfig contained in the head revision. |
| private Config | Returns: the config, ornull if the entry does not existTry to read the lfs config from an entry called .lfsconfig contained in the index. |
| private Config | Returns: the config, ornullTry to read the lfs config from a file called .lfsconfig at the top level of the working tree. |
| db | back to summary |
|---|---|
| private Repository db | |
| delegate | back to summary |
|---|---|
| private Config delegate | |
| LfsConfig | back to summary |
|---|---|
| public LfsConfig(Repository db) Create a new instance of the LfsConfig.
| |
| emptyConfig | back to summary |
|---|---|
| private Config emptyConfig() Create an empty config as fallback to avoid null pointer checks.
| |
| getDelegate | back to summary |
|---|---|
| private Config getDelegate() throws IOException Getter for the delegate to allow lazy initialization.
| |
| getString | back to summary |
|---|---|
| public String getString(final String section, final String subsection, final String name) throws IOException Get string value or null if not found. First tries to find the value in the git config files. If not found tries to find data in .lfsconfig. | |
| load | back to summary |
|---|---|
| private Config load() throws IOException Read the .lfsconfig file from the repository An empty config is returned be empty if no lfs config exists.
| |
| loadFromHead | back to summary |
|---|---|
| private Config loadFromHead() throws IOException Try to read the lfs config from an entry called .lfsconfig contained in the head revision.
| |
| loadFromIndex | back to summary |
|---|---|
| private Config loadFromIndex() throws IOException Try to read the lfs config from an entry called .lfsconfig contained in the index.
| |
| loadFromWorkingTree | back to summary |
|---|---|
| private Config loadFromWorkingTree() throws IOException Try to read the lfs config from a file called .lfsconfig at the top level of the working tree.
| |