Namespaces

Types in GitSharp.Commands

Type CommitCommand

Namespace GitSharp.Commands

Parent AbstractCommand

Properties

Public properties

string ActualDirectory get;

bool All get; set;

Not implemented Tell the command to automatically stage files that have been modified and deleted, but new files you have not told git about are not affected.

bool AllowEmpty get; set;

Not implemented Usually recording a commit that has the exact same tree as its sole parent commit is a mistake, and the command prevents you from making such a commit. This option bypasses the safety, and is primarily for use by foreign scm interface scripts.

bool Amend get; set;

Not implemented Used to amend the tip of the current branch. Prepare the tree object you would want to replace the latest commit as usual (this includes the usual -i/-o and explicit paths), and the commit log editor is seeded with the commit message from the tip of the current branch. The commit you create replaces the current tip -- if it was a merge, it will have the parents of the current tip as parents -- so the current top commit is discarded. +

List<string> Arguments get; set;

string Author get; set;

Not implemented Override the author name used in the commit. You can use the standard `A U Thor ` format. Otherwise, an existing commit that matches the given string and its author name is used.

string Cleanup get; set;

Not implemented This option sets how the commit message is cleaned up. The '' can be one of 'verbatim', 'whitespace', 'strip', and 'default'. The 'default' mode will strip leading and trailing empty lines and #commentary from the commit message only if the message is to be edited. Otherwise only whitespace removed. The 'verbatim' mode does not change message at all, 'whitespace' removes just leading/trailing whitespace lines and 'strip' removes both whitespace and commentary.

bool Edit get; set;

Not implemented The message taken from file with `-F`, command line with `-m`, and from file with `-C` are usually used as the commit log message unmodified. This option lets you further edit the message taken from these sources.

string File get; set;

Not implemented Take the commit message from the given file. Use '-' to read the message from the standard input.

string GitDirectory get; set;

string Message get; set;

Not implemented Use the given as the commit message.

bool NoVerify get; set;

Not implemented This option bypasses the pre-commit and commit-msg hooks. See also linkgit:githooks[5].

StreamWriter OutputStream get; set;

string ReeditMessage get; set;

Not implemented Like '-C', but with '-c' the editor is invoked, so that the user can further edit the commit message.

Repository Repository get; set;

bool ResetAuthor get; set;

Not implemented When used with -C/-c/--amend options, declare that the authorship of the resulting commit now belongs of the committer. This also renews the author timestamp.

string ReuseMessage get; set;

Not implemented Take an existing commit object, and reuse the log message and the authorship information (including the timestamp) when creating the commit.

bool Signoff get; set;

Not implemented Add Signed-off-by line by the committer at the end of the commit log message.

string Template get; set;

Not implemented Use the contents of the given file as the initial version of the commit message. The editor is invoked and you can make subsequent changes. If a message is specified using the `-m` or `-F` options, this option has no effect. This overrides the `commit.template` configuration variable.