package com.atlassian.bitbucket.mesh.git.ref;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Defines orderings which can be applied when retrieving references. The actual approach for applying an ordering is
 * not established or guaranteed by this enumeration; it may vary by SCM implementation or {@link Ref} type.
 */
public enum RefOrder {

    /**
     * Return references in <i>ascending</i> alphabetical order.
     */
    ALPHABETICAL,
    /**
     * Return references in <i>descending</i> modification order, with the most recently-modified references returned
     * first.
     */
    MODIFICATION;

    private static final Logger log = LoggerFactory.getLogger(RefOrder.class);
}
