Method Git.Export()->commit()
- Method
commit
voidcommit(stringref,string|voidcommit_marker,string|voidauthor_info,stringcommitter_info,stringmessage,string|void...parents)- Description
Create a new commit on a branch.
- Parameter
ref Reference to add the commit to. Typically
"refs/heads/"followed by a branchname, or"refs/notes/commits".- Parameter
commit_marker Optional export marker for referring to the new commit.
- Parameter
author_info Optional author information. Defaults to
committer_info.- Parameter
committer_info Name, email and timestamp for the committer. See
format_author()for details.- Parameter
message Commit message.
- Parameter
parents The ordered set of parents for the commit. Defaults to the current HEAD for
ref, if it exists, and to the empty set otherwise.The set of files for the commit defaults to the set for the first of the
parents, and can be modified with filemodify, filedelete, filecopy, filerename, filedeleteall and notemodify.