blob: 09967189eab879d9ab143c5e5ea0a5611ef2c79c [file]
/*
* Copyright (C) 2026, Nvidia
*
* 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.lib;
/**
* Headers defined on the packed-refs file.
*
* @since 7.7
*/
public enum PackedRefsTrait {
/** If in the header, denotes the file has sorted data. */
SORTED(" sorted"), //$NON-NLS-1$
/**
* If in the header, denotes the file has peeled data for (refs/tags/...).
*/
PEELED(" peeled"), //$NON-NLS-1$
/**
* If in the header, denotes the file has peeled data for all the refs which
* are peelable.
*/
FULLY_PEELED(" fully-peeled"); //$NON-NLS-1$
private final String value;
PackedRefsTrait(String value) {
this.value = value;
}
/**
* Gives the string representation of trait like it appears in packed-refs
* header
*
* @return String representation of the trait.
*/
public String value() {
return value;
}
}