1 /* 2 * Copyright (C) 2011, Google Inc. and others 3 * 4 * This program and the accompanying materials are made available under the 5 * terms of the Eclipse Distribution License v. 1.0 which is available at 6 * https://www.eclipse.org/org/documents/edl-v10.php. 7 * 8 * SPDX-License-Identifier: BSD-3-Clause 9 */ 10 11 package org.eclipse.jgit.internal.storage.dfs; 12 13 import java.io.IOException; 14 15 import org.eclipse.jgit.errors.ConfigInvalidException; 16 import org.eclipse.jgit.lib.StoredConfig; 17 18 /** 19 * Config implementation used by DFS repositories. 20 * <p> 21 * The current implementation acts as if there is no persistent storage: loading 22 * simply clears the config, and saving does nothing. 23 */ 24 public final class DfsConfig extends StoredConfig { 25 /** {@inheritDoc} */ 26 @Override 27 public void load() throws IOException, ConfigInvalidException { 28 clear(); 29 } 30 31 /** {@inheritDoc} */ 32 @Override 33 public void save() throws IOException { 34 // TODO actually store this configuration. 35 } 36 }