Skip to content

Git integration #4

@jrfaller

Description

@jrfaller

Hi there! I am trying to integrate roseau with Git and I have this so far:

[difftool "roseau"]
cmd = roseau.sh "$LOCAL" "$REMOTE"

[alias]
rs = difftool -d -t roseau

I have modified roseau.sh as such:

#!/bin/bash

cd target

if [ "$#" -ne 2 ]; then
    echo "Usage: ./roseau.sh pathV1 pathV2"
    exit 1
fi

java -jar roseau-0.0.2-SNAPSHOT-jar-with-dependencies.jar --diff --v1="$1" --v2="$2"

And amazingly I can run a git rs to see the diff between the current code and HEAD. However the output is not that interesting for instance:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Parsing: 7332
API extraction: 96
Parsing: 7441
API extraction: 16
API diff: 215

(Note it should be nice to set SLF4J to no-op. to avoid this noisy output at the beginning)

Maybe I am not using the CLI correctly and there is a way to have more info into the console? Or maybe it would require to introduce a plain text formatter?

Anyway I think that would be awesome to be able to use roseau this way!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions