Skip to content

jfsc/BranchAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Context

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

Objective

Retrieve the frequency of textual conflicts by branch.

Installation

Getting code

git clone https://github.com/jfsc/jgitconflict.git 

Open on intelliJ

Running study

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.

References

[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/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors