aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsConfig.java
blob: 4f0e4a55d464c0e6d961161cddddf4c09543bbec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2011, Google Inc. and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package org.eclipse.jgit.internal.storage.dfs;

import java.io.IOException;

import org.eclipse.jgit.errors.ConfigInvalidException;
import org.eclipse.jgit.lib.StoredConfig;

/**
 * Config implementation used by DFS repositories.
 * <p>
 * The current implementation acts as if there is no persistent storage: loading
 * simply clears the config, and saving does nothing.
 */
public final class DfsConfig extends StoredConfig {
	@Override
	public void load() throws IOException, ConfigInvalidException {
		clear();
	}

	@Override
	public void save() throws IOException {
		// TODO actually store this configuration.
	}
}