Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Commit.cs « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 38a24b1624a6cb2f87d11aa8a9624d9bd64ef836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;

namespace LibGit2Sharp
{
    public class Commit : GitObject
    {
        public IEnumerable<GitObject> Parents { get; private set; }
        public Signature Author { get; private set; }
        public Signature Committer { get; private set; }
        public DateTimeOffset When { get; private set; }
        public string Message { get; private set; }
        public string MessageShort { get; private set; }
        public Tree Tree { get; private set; }

        public Commit(string objectId, Signature author, Signature committer, string message, string messageShort, Tree tree, IEnumerable<GitObject> parents)
            : base(objectId, ObjectType.Commit)
        {
            Parents = parents;
            Author = author;
            Committer = committer;
            When = committer.When;
            Message = message;
            MessageShort = messageShort;
            Tree = tree;
        }
    }
}