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

import com.atlassian.bitbucket.mesh.util.Version;

import javax.annotation.Nonnull;

public interface GitBinary {

    /**
     * Retrieves the <i>absolute</i> path to the {@code git} binary.
     *
     * @return the path to {@code git}
     */
    @Nonnull
    String getPath();

    /**
     * Retrieves the version of the {@code git} binary at {@link #getPath()}.
     *
     * @return the {@code git} version
     */
    @Nonnull
    Version getVersion();
}
