예제 #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
        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
 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
 public static extern int git_tag_create_f(out GitOid oid, RepositorySafeHandle repo, string name, ref GitOid target, GitObjectType type, GitSignature signature, string message);