Commit() public method

public Commit ( string authorName, string authorEmail, string comment, DateTime localTime ) : bool
authorName string
authorEmail string
comment string
localTime DateTime
return bool
コード例 #1
0
        private bool CommitChangeset(GitWrapper git, Changeset changeset)
        {
            var result = false;

            AbortRetryIgnore(delegate
            {
                result = git.AddAll() &&
                         git.Commit(changeset.User, GetEmail(changeset.User),
                                    changeset.Comment ?? DefaultComment, changeset.DateTime);
            });
            return(result);
        }
コード例 #2
0
        private bool CommitChangeset(GitWrapper git, Changeset changeset)
        {
            string comment = changeset.Comment ?? this.DefaultComment;

            if (string.IsNullOrEmpty(comment))
            {
                comment = "** " + GetComment(changeset, 155);
            }

            var result = false;

            AbortRetryIgnore(delegate
            {
                result = git.AddAll() &&
                         git.Commit(changeset.User, GetEmail(changeset.User),
                                    comment ?? DefaultComment, changeset.DateTime);
            });
            return(result);
        }
コード例 #3
0
ファイル: GitExporter.cs プロジェクト: runt18/vss2git-1
 private bool CommitChangeset(GitWrapper git, Changeset changeset)
 {
     var result = false;
     AbortRetryIgnore(delegate
     {
         result = git.AddAll() &&
             git.Commit(changeset.User, GetEmail(changeset.User),
             changeset.Comment ?? DefaultComment, changeset.DateTime);
     });
     return result;
 }