Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

.NET API for interacting with remote git repository

David Cadogan July 2, 2015

I need to write a .NET/C# component that monitors a remote GIT stash repository/project for updates since the last pull so that I can perform some actions relating to modified/added/removed files from the resultant pull. I have done this before with perforce using its .NET API (P4API.NET) for example.

The API in the link below has certain functionality using JSON restful API - but it doe not appear to have functionality for cloning/push/pull etc.

https://github.com/jlouros/StashApiCSharp

 

Has anyone out there come across this problem and any idea what is the best way forward

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2015

For the Git functionality, you will need a Git library, e.g. this one.

(Your best option in general would probably be to write a post-receive hook plugin for Stash in Java instead.)

David Cadogan July 6, 2015

I downloaded that API last week but have not looked at it in detail - may be able to use libgit2Sharp

 

Thanks

TAGS
AUG Leaders

Atlassian Community Events