henon edited this page Sep 12, 2010 · 8 revisions

Welcome to the git-sharp project!
Note: This project has been inactive for a long time. Please visit henon/GitSharp if you are interested in an advanced implementation of git for .NET.

Git-sharp is a fully managed implementation of git, part of the Google Summer of Code 2008 project.

Here is the spec documentation (a work in progress):

SPECIFICATION: Git-Sharp, a Git implementation in .NET managed code

Overview

git-sharp is a reimplementation of the Git source code management system in C# for Microsoft .NET framework and the Mono framework. This document specify two APIs, Git.Core and Git.Repository which are basically the lower and higher level of the Git framework.

This API is meant to be used in plugins desktop applications and to extend the Git framework.

Contents

  1. Requirements
  2. API Specification
    1. Scenarios
      1. TBD
      2. TBD
      3. TBD
    2. API Design
  3. Functional Specification

1 REQUIREMENTS

  • Provide an API to manage git repository and objects at both the lower and higher level
  • Operations over a git repository should be done in the higher level (Git.Repository)
  • Extensibility and filesystem operations should be done in the lower level (Git.Core)

2 API SPECIFICATION

2.1 Screnarios

2.1.1 Create a Repository

Repository repo = new Repository("/dir/repo");
repo.Init();

2.1.2 Add a File

repo.Add("SourceCode.cs");
Console.WriteLine(repo.GetStatus());

2.1.3 Remove a File

repo.Remove("SourceCode.cs");
Console.WriteLine(repo.GetStatus());

2.1.5 Commit Changes

if(repo.Changed)
    repo.Commit(message);

2.1.6 Tag

repo.Tag(commit, tag);
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.