linzeqipku / git-to-neo4j

Extract a commit-user graph from .git directory and store it into a neo4j graph database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-to-neo4j

Parse .git directory, extract git entities (commits and users) and relationships among them, then store them into a neo4j graph database.

Usage example

GitCodeGraphBuilder.process(GRAPH_DIR_PATH,GIT_DIR_PATH);

see the test case.

Maven

Add this repository in your pom.xml file:

<repositories>
    <repository>
        <id>linzeqipku-public-snapshots</id>
        <url>https://raw.github.com/linzeqipku/maven-repo/master/snapshots</url>
    </repository>
    <repository>
        <id>linzeqipku-public-releases</id>
        <url>https://raw.github.com/linzeqipku/maven-repo/master/releases</url>
    </repository>
</repositories>

Add the maven dependence:

<dependencies>
    <dependency>
        <groupId>com.github.linzeqipku</groupId>
        <artifactId>git-to-neo4j</artifactId>
        <version>1.0-SNAPSHOT</version>
    </dependency>
</dependencies>

About

Extract a commit-user graph from .git directory and store it into a neo4j graph database.


Languages

Language:Java 100.0%