This tool is part of contributions resulting of research about use of branches in DevOps environments from ASSERT lab.
Jose Fernando - jfsc@cin.ufpe.br
Vinicius Garcia - vcg@cin.ufpe.br
Branches are historically used to help develop teams on coordinating their parallel development through version control systems tools (ex.Git). BranchAnalyzer help developers to retrieve the frequency of textual conflicts by branch. Thus, providing empirical information about repository
Retrieve the frequency of textual conflicts by branch.
Getting code
git clone https://github.com/jfsc/jgitconflict.git Open on intelliJ
Open file src/main/java/com/fish/branchanalyzer/ConflictFrequency.java
public static void main(String[] args) throws IOException, GitAPIException {
FileRepositoryBuilder repositoryBuilder = new FileRepositoryBuilder();
String repoFolderPath = "{REPOSITORY PATH}/.git";
...Choose the intervall in the same file
...
RevWalk walk = new RevWalk(repository);
Date since = new SimpleDateFormat("yyyy-MM-dd").parse("2017-09-17");
Date until = new SimpleDateFormat("yyyy-MM-dd").parse("2017-09-28");Finally, build and run.
[1] Bird, Christian, et al. "The promises and perils of mining git." Mining Software Repositories, 2009. MSR'09. 6th IEEE International Working Conference on. IEEE, 2009. Link.
[2] Eclipse. (2018). JGIT. Retrieved October 9, 2018, from https://www.eclipse.org/jgit/