Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
        }
Esempio n. 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);
Esempio n. 5
0
 public static extern int git_tag_create(out GitOid oid, RepositorySafeHandle repo, string name, IntPtr target, GitSignature signature, string message, bool force);
Esempio n. 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);
Esempio n. 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);