pl.project13.core.GitProvider Maven / Gradle / Ivy
The newest version!
/*
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski
*
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with git-commit-id-plugin-core. If not, see .
*/
package pl.project13.core;
import pl.project13.core.AheadBehind;
import pl.project13.core.GitCommitIdExecutionException;
public interface GitProvider {
void init() throws GitCommitIdExecutionException;
String getBuildAuthorName() throws GitCommitIdExecutionException;
String getBuildAuthorEmail() throws GitCommitIdExecutionException;
void prepareGitToExtractMoreDetailedRepoInformation() throws GitCommitIdExecutionException;
String getBranchName() throws GitCommitIdExecutionException;
String getGitDescribe() throws GitCommitIdExecutionException;
String getCommitId() throws GitCommitIdExecutionException;
String getAbbrevCommitId() throws GitCommitIdExecutionException;
boolean isDirty() throws GitCommitIdExecutionException;
String getCommitAuthorName() throws GitCommitIdExecutionException;
String getCommitAuthorEmail() throws GitCommitIdExecutionException;
String getCommitAuthorTime() throws GitCommitIdExecutionException;
String getCommitCommitterTime() throws GitCommitIdExecutionException;
String getCommitMessageFull() throws GitCommitIdExecutionException;
String getCommitMessageShort() throws GitCommitIdExecutionException;
String getCommitTime() throws GitCommitIdExecutionException;
String getRemoteOriginUrl() throws GitCommitIdExecutionException;
String getTags() throws GitCommitIdExecutionException;
String getTag() throws GitCommitIdExecutionException;
String getClosestTagName() throws GitCommitIdExecutionException;
String getClosestTagCommitCount() throws GitCommitIdExecutionException;
String getTotalCommitCount() throws GitCommitIdExecutionException;
void finalCleanUp() throws GitCommitIdExecutionException;
AheadBehind getAheadBehind() throws GitCommitIdExecutionException;
}