Skip to content

Release 0.0.2

Compare
Choose a tag to compare
@lausdahl lausdahl released this 25 Nov 18:14
· 38 commits to master since this release

How to

To run a full repo sync use the following command:

java -jar tracability-driver-*-jar-with-dependencies.jar -s  --dry-run -vdm -exclude SysML -repo /path/to/repo

or to sync a single commit only:

java -jar tracability-driver-*-jar-with-dependencies.jar -c <commit-hash> --dry-run -vdm -exclude SysML -repo /path/to/repo

The --dry-run command makes the tool only print the data that would be send. Drop this so send the messages. If a custom host is used then specify -host <url> to override the default host URL.

Git hook

The tool can be used in combination with git hooks. If the daemon is running locally such a hook could look like:

Hook file: .git/hooks/post-commit

#!/bin/sh
java -jar tracability-driver-*-jar-with-dependencies.jar -c HEAD -vdm -exclude SysML -repo $GIT_DIR../

assuming that the *.jar file is also in hooks.

Make sure it is executable:

chmod +x .git/hooks/post-commit

This will trigger a sync of the new commit to the daemon.