#14 new

mmap and mono support

Reported by alan | March 26th, 2009 @ 02:57 PM

if (Environment.OSVersion.Platform == PlatformID.Unix)

DoMMAPWithLinuxPinvokes ();

else if (Environment.OSVersion.Platform == PlatformID.MacOS)

DoMapWithMacosPinvokes ();


DoMapWithWindowsPinvokes ();

That psuedo code should be enough to get you started ;) This is pretty standard stuff for cross platform development. If you have many different places you call platform specific code, just create an IPlatform interface which exposes all the different platform specific calls. Then create a version of this interface for each platform you want to support and instantiate the correct one at runtime.

Comments and changes to this ticket

  • Niek Bruins

    Niek Bruins April 14th, 2009 @ 04:19 PM

    • Tag set to mono

    Good idea, it would be nice to have the P/Invoke code directly inside the dotGit codebase. This would enable us to make one build for all platforms instead of referencing Mono libs for mono versions.

    I don't have a Unix testing machine yet. I think I'll just create a VM and test it there as soon as I find the time to look in to this issue.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A .NET implementation of Git written in C#

People watching this ticket