コード例 #1
0
 public static extern int git_tag_create(
     out GitOid oid,
     RepositorySafeHandle repo,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string name,
     IntPtr target,
     GitSignature signature,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string message,
     bool force);
コード例 #2
0
 public static extern int git_commit_create(
     out GitOid oid,
     RepositorySafeHandle repo,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string updateRef,
     GitSignature author,
     GitSignature committer,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string encoding,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string message,
     IntPtr tree,
     int parentCount,
     [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 7)][In] IntPtr[] parents);
コード例 #3
0
ファイル: Signature.cs プロジェクト: redoz/libgit2sharp
        internal Signature(IntPtr signaturePtr)
        {
            var handle = new GitSignature();
            Marshal.PtrToStructure(signaturePtr, handle);

            // XXX: This is unbelievably hacky, but I can't get the
            // Utf8Marshaller to work properly.
            name = (string)marshaler.MarshalNativeToManaged(handle.Name);
            email = (string)marshaler.MarshalNativeToManaged(handle.Email);
            when = Epoch.ToDateTimeOffset(handle.When.Time, handle.When.Offset);
        }
コード例 #4
0
 public static extern int git_commit_create(out GitOid oid, RepositorySafeHandle repo, string updateRef, GitSignature author, GitSignature committer, string message, IntPtr tree, int parentCount, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 7)] [In] IntPtr[] parents);
コード例 #5
0
 public static extern int git_tag_create(out GitOid oid, RepositorySafeHandle repo, string name, IntPtr target, GitSignature signature, string message, bool force);
コード例 #6
0
ファイル: NativeMethods.cs プロジェクト: vmg/libgit2sharp
 public static extern int git_commit_create(out GitOid oid, RepositorySafeHandle repo, string updateRef, GitSignature author, GitSignature committer, string message, ref GitOid treeOid, int parentCount, ref GitOid[] parents);
コード例 #7
0
ファイル: NativeMethods.cs プロジェクト: vmg/libgit2sharp
 public static extern int git_tag_create_f(out GitOid oid, RepositorySafeHandle repo, string name, ref GitOid target, GitObjectType type, GitSignature signature, string message);