JGit Custom Command [message #903074] |
Tue, 21 August 2012 20:13 |
|
I am looking to implement a multi-step git command for the workbench instead of having to use the external git-bash. Several of the steps will require the use of non-standard git commands.
First, I am assuming that it is possible to create a custom commit object the same as you would with 'git commit-tree'.
Second, I would like to manually update the object stored in a ref the same as you would with 'git update-ref'.
There are several other parts that would need to be implemented but are relatively straight forward (checkout / push / etc..). If I were to use the git-bash for what I described above it would look something like this:
git update-ref refs/heads/master $(echo 'some message' | git commit-tree branch^{tree}:the_desired_object -p $(cat .git/refs/heads/masster))
So would it be possible to create a command that executes this using EGit/JGit?
If so, could some one point me in the right direction?
Thanks,
JD
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02218 seconds