Commit() public method

public Commit ( string authorName, string authorEmail, string comment, DateTime localTime ) : bool
authorName string
authorEmail string
comment string
localTime DateTime
return bool
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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;
 }