{"thread":{"id":"16514","subject":"C# Git Implementation","startedAt":"2008-11-28T13:20:55Z","lastAt":"2009-07-13T00:37:53Z","messageCount":8,"participants":["JD Guzman","Reece Dunn","Andreas Ericsson","Asheesh Laroia","Alejandro Riveira","Robin Rosenberg","henon","Frank Li"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96685","messageId":"001501c9515e$66e8ac70$34ba0550$@com","threadId":"16514","inReplyTo":null,"subject":"C# Git Implementation","fromName":"JD Guzman","fromEmail":"jd@jdguzman.com","sentAt":null,"receivedAt":"2008-11-28T13:20:55Z","isPatch":false,"sender":{"key":"jd@jdguzman.com","avatar":null},"body":"Hello I am new to the list and if I am not following some kind of list\nettiquite please let me know. \n\nI read in the archives that there was once talk of porting Git over to C#\nand was wondering if anything ever came of this?  I realize there were some\nthat didn't see the use for this but as Git is becoming more and more\npopular a more native implementation of Git for windows users would be a\ngood endevour IMHO.\n\nAt any rate any info would be greatly appreciated.\n\nRegards,\n\nJD Guzman\n"},{"id":"96686","messageId":"3f4fd2640811280545m21302134mbde19b074967afc6@mail.gmail.com","threadId":"16514","inReplyTo":"001501c9515e$66e8ac70$34ba0550$@com","subject":"Re: C# Git Implementation","fromName":"Reece Dunn","fromEmail":"msclrhd@googlemail.com","sentAt":"2008-11-28T13:45:00Z","receivedAt":"2008-11-28T13:45:00Z","isPatch":false,"sender":{"key":"msclrhd@googlemail.com","avatar":null},"body":"2008/11/28 JD Guzman <jd@jdguzman.com>:\n> I read in the archives that there was once talk of porting Git over to C#\n> and was wondering if anything ever came of this?  I realize there were some\n> that didn't see the use for this but as Git is becoming more and more\n> popular a more native implementation of Git for windows users would be a\n> good endevour IMHO.\n\nThere were several efforts made, but these have fallen by the wayside.\n\nSince then, the mingw/msys port has made progress to the point where\ngit will use native calls. Most - if not all of this - has been merged\nback into upstream git as of version 1.6.\n\nGit works well on Windows and msysGit even provides a native installer\nthat installs the necessary companion tools and libraries.\n\nTherefore, there is already a native version of Git for Windows that\nis always up-to-date with the latest Git functionality (since it is\nthe same sourcecode!)\n\nBTW: Kudos to everyone involved in the Windows port.\n\n- Reece\n"},{"id":"96723","messageId":"49314741.9090005@op5.se","threadId":"16514","inReplyTo":"001501c9515e$66e8ac70$34ba0550$@com","subject":"Re: C# Git Implementation","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-11-29T13:44:33Z","receivedAt":"2008-11-29T13:44:33Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"JD Guzman wrote:\n> Hello I am new to the list and if I am not following some kind of list\n> ettiquite please let me know. \n> \n> I read in the archives that there was once talk of porting Git over to C#\n> and was wondering if anything ever came of this?\n\nThat depends. I think it's happened at least on three different occasions\nthat someone wants to port git to C#. The latest is the attempt to write a\nlibified git (in C) that will be DllImport()'ed from C#, which the devs at\nMonoDevelop were sort of interested in. I'm currently working (very slowly)\non libgit2, and it's nowhere near usable today.\n\n>  I realize there were some\n> that didn't see the use for this but as Git is becoming more and more\n> popular a more native implementation of Git for windows users would be a\n> good endevour IMHO.\n> \n\nTruly. However, a better way forward is to create a portable git library\nthat any old application can use, no matter what language the application\nis written in. That way, GUI-hackers can add all the bells and whistles\nthey like.\n\nBesides that, msysgit works very well on Windows.\n\n> At any rate any info would be greatly appreciated.\n> \n\nlibgit2 is available from\nhttp://www.spearce.org/projects/scm/libgit2/libgit2.git\ngit://git.op5.org/git/libgit2.git\n\nThe first URL belongs to Shawn O. Pearce, the initiator of the libgit2\nproject. The second one is where I stash random stuff that I work on.\nNote that git.op5.org is subject to heavy rebasing at the moment, as I'm\nbasically using it as a patch queue for Shawn (and everyone else who's\ninterested) to look at when they feel like it. It's not yet interesting\nenough to warrant sending everything as patches to git@vger, but a small\nbunch of people are helping making the small internal API's reliably\nportable (filesystem operations, thread-local error handling) so that\nwe can nail them down hard to prevent having to change them (and their\nhundreds of callers) in the future.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"96730","messageId":"alpine.DEB.2.00.0811291308120.17643@vellum.laroia.net","threadId":"16514","inReplyTo":"001501c9515e$66e8ac70$34ba0550$@com","subject":"Re: C# Git Implementation","fromName":"Asheesh Laroia","fromEmail":"asheesh@asheesh.org","sentAt":"2008-11-29T18:08:58Z","receivedAt":"2008-11-29T18:08:58Z","isPatch":false,"sender":{"key":"asheesh@asheesh.org","avatar":"https://avatars.githubusercontent.com/u/25457?v=4"},"body":"On Fri, 28 Nov 2008, JD Guzman wrote:\n\n> I read in the archives that there was once talk of porting Git over to \n> C# and was wondering if anything ever came of this?  I realize there \n> were some that didn't see the use for this but as Git is becoming more \n> and more popular a more native implementation of Git for windows users \n> would be a good endevour IMHO.\n\nIs it possible to compile the Java-language jgit with the Common Language \nRuntime and access that from a C# application?\n\n-- Asheesh.\n\n-- \nYour talents will be recognized and suitably rewarded.\n"},{"id":"96733","messageId":"ggs52e$dsm$1@ger.gmane.org","threadId":"16514","inReplyTo":"alpine.DEB.2.00.0811291308120.17643@vellum.laroia.net","subject":"Re: C# Git Implementation","fromName":"Alejandro Riveira","fromEmail":"ariveira@gmail.com","sentAt":"2008-11-29T19:27:10Z","receivedAt":"2008-11-29T19:27:10Z","isPatch":false,"sender":{"key":"ariveira@gmail.com","avatar":null},"body":"El Sat, 29 Nov 2008 13:08:58 -0500, Asheesh Laroia escribió:\n\n> On Fri, 28 Nov 2008, JD Guzman wrote:\n> \n>> I read in the archives that there was once talk of porting Git over to\n>> C# and was wondering if anything ever came of this?  I realize there\n>> were some that didn't see the use for this but as Git is becoming more\n>> and more popular a more native implementation of Git for windows users\n>> would be a good endevour IMHO.\n> \n> Is it possible to compile the Java-language jgit with the Common\n> Language Runtime and access that from a C# application?\n  \n   ikvm ?? http://www.ikvm.net/\n> \n> -- Asheesh.\n"},{"id":"96734","messageId":"200811292055.20416.robin.rosenberg.lists@dewire.com","threadId":"16514","inReplyTo":"alpine.DEB.2.00.0811291308120.17643@vellum.laroia.net","subject":"Re: C# Git Implementation","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2008-11-29T19:55:20Z","receivedAt":"2008-11-29T19:55:20Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"lördag 29 november 2008 19:08:58 skrev Asheesh Laroia:\n> On Fri, 28 Nov 2008, JD Guzman wrote:\n> \n> > I read in the archives that there was once talk of porting Git over to \n> > C# and was wondering if anything ever came of this?  I realize there \n> > were some that didn't see the use for this but as Git is becoming more \n> > and more popular a more native implementation of Git for windows users \n> > would be a good endevour IMHO.\n> \n> Is it possible to compile the Java-language jgit with the Common Language \n> Runtime and access that from a C# application?\n> \n> -- Asheesh.\n> \n\nI tried it half a year ago. Recompiling and running was easy, Unfortunately it hung on reading\nblobs and  the stacktrace showed it was stuck in deflate. It's not very high on my list of priorities,\nbut I assume fixing the problem is probably not hard if you decide to get your editor dirty.\n\n-- robin\n"},{"id":"117846","messageId":"1247347556196-3243735.post@n2.nabble.com","threadId":"16514","inReplyTo":"alpine.DEB.2.00.0811291308120.17643@vellum.laroia.net","subject":"Re: C# Git Implementation","fromName":"henon","fromEmail":"meinrad.recheis@gmail.com","sentAt":"2009-07-11T21:25:56Z","receivedAt":"2009-07-11T21:25:56Z","isPatch":false,"sender":{"key":"meinrad.recheis@gmail.com","avatar":"https://gravatar.com/avatar/1ce2834352b39e1139409c75289529bf862a42bb4a9a32c9c353f2358f366991?d=mp&s=160"},"body":"\n\nAsheesh Laroia-2 wrote:\n> \n> On Fri, 28 Nov 2008, JD Guzman wrote:\n> \n>> I read in the archives that there was once talk of porting Git over to \n>> C# and was wondering if anything ever came of this?  I realize there \n>> were some that didn't see the use for this but as Git is becoming more \n>> and more popular a more native implementation of Git for windows users \n>> would be a good endevour IMHO.\n> \n> Is it possible to compile the Java-language jgit with the Common Language \n> Runtime and access that from a C# application?\n> \n> -- Asheesh.\n> \n\nHi,\nJust in case some of you are still interested in a git implementation in C#.\nI evaluated all of the existing projects and chose the one of them which was\nmost advanced and had the most promising strategy of getting done soon:\nkevin thompsons gitty. gitty is a  port of about 6k of ~20k lines of a jgit\nsnapshot from 2008. The gitty code is mostly not working because it has\nnever been debugged after porting.\n \nI figured that the easiest way to a pure c# implementation of git is to port\njgit. Automatic porting attempts have not really been successful so I\ndecided to do it manually. Based on Kevin's very erraneous but yet valuable\nwork I ported even more substantial parts of jgit and its tests to C# and\ngot much of the code working as the over 200 passing tests can tell. By now\nwe have ported about 47% of the jgit source (snapshot from june 2009) and\ngot reading of repos and writing of trees, blobs and commits to work\nalready. The project is called Git# now and has already found a few\ncontributors on github. More info is available at the \nhttp://www.eqqon.com/index.php/GitSharp Git#  website.\n\nI know that there have been several attempts by the Mono project to create a\ngit implementation in C#. They seem inactive and in a very basic state to me\nbut correct me if I am wrong. I will try to contact the mono folks for\ncollaboration on the matter.\n\n-- henon\n-- \nView this message in context: http://n2.nabble.com/C--Git-Implementation-tp1589227p3243735.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"117883","messageId":"1976ea660907121737r33e05479jae32f6474edfd60d@mail.gmail.com","threadId":"16514","inReplyTo":"1247347556196-3243735.post@n2.nabble.com","subject":"Re: C# Git Implementation","fromName":"Frank Li","fromEmail":"lznuaa@gmail.com","sentAt":"2009-07-13T00:37:53Z","receivedAt":"2009-07-13T00:37:53Z","isPatch":false,"sender":{"key":"lznuaa@gmail.com","avatar":"https://avatars.githubusercontent.com/u/40642?v=4"},"body":"I hope portable git library, which can port to any languadge and platform.\nGit itself use such library. So library can be verified at big scope.\n\n\n2009/7/12 henon <meinrad.recheis@gmail.com>:\n>\n>\n> Asheesh Laroia-2 wrote:\n>>\n>> On Fri, 28 Nov 2008, JD Guzman wrote:\n>>\n>>> I read in the archives that there was once talk of porting Git over to\n>>> C# and was wondering if anything ever came of this?  I realize there\n>>> were some that didn't see the use for this but as Git is becoming more\n>>> and more popular a more native implementation of Git for windows users\n>>> would be a good endevour IMHO.\n>>\n>> Is it possible to compile the Java-language jgit with the Common Language\n>> Runtime and access that from a C# application?\n>>\n>> -- Asheesh.\n>>\n>\n> Hi,\n> Just in case some of you are still interested in a git implementation in C#.\n> I evaluated all of the existing projects and chose the one of them which was\n> most advanced and had the most promising strategy of getting done soon:\n> kevin thompsons gitty. gitty is a  port of about 6k of ~20k lines of a jgit\n> snapshot from 2008. The gitty code is mostly not working because it has\n> never been debugged after porting.\n>\n> I figured that the easiest way to a pure c# implementation of git is to port\n> jgit. Automatic porting attempts have not really been successful so I\n> decided to do it manually. Based on Kevin's very erraneous but yet valuable\n> work I ported even more substantial parts of jgit and its tests to C# and\n> got much of the code working as the over 200 passing tests can tell. By now\n> we have ported about 47% of the jgit source (snapshot from june 2009) and\n> got reading of repos and writing of trees, blobs and commits to work\n> already. The project is called Git# now and has already found a few\n> contributors on github. More info is available at the\n> http://www.eqqon.com/index.php/GitSharp Git#  website.\n>\n> I know that there have been several attempts by the Mono project to create a\n> git implementation in C#. They seem inactive and in a very basic state to me\n> but correct me if I am wrong. I will try to contact the mono folks for\n> collaboration on the matter.\n>\n> -- henon\n> --\n> View this message in context: http://n2.nabble.com/C--Git-Implementation-tp1589227p3243735.html\n> Sent from the git mailing list archive at Nabble.com.\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"}]}