CommitOpts
CommitOpts =
object
Defined in: src/core/repo.ts:651
Options for git commit
Properties
all?
optionalall:boolean
Defined in: src/core/repo.ts:660
Add all tracked modified files
allowEmpty?
optionalallowEmpty:boolean
Defined in: src/core/repo.ts:656
Allow empty commit
allowEmptyMessage?
optionalallowEmptyMessage:boolean
Defined in: src/core/repo.ts:708
Allow commit with empty message
amend?
optionalamend:boolean
Defined in: src/core/repo.ts:658
Amend previous commit
author?
optionalauthor:string
Defined in: src/core/repo.ts:662
Author name and email
cleanup?
optionalcleanup:"strip"|"whitespace"|"verbatim"|"scissors"|"default"
Defined in: src/core/repo.ts:696
How to clean up the commit message
date?
optionaldate:string|Date
Defined in: src/core/repo.ts:664
Override commit date
dryRun?
optionaldryRun:boolean
Defined in: src/core/repo.ts:666
Do not create commit, just update message
file?
optionalfile:string
Defined in: src/core/repo.ts:680
Read commit message from file
fixup?
optionalfixup:string
Defined in: src/core/repo.ts:686
Create a fixup commit for the specified commit
gpgSign?
optionalgpgSign:boolean
Defined in: src/core/repo.ts:670
GPG-sign the commit with the default key
include?
optionalinclude:boolean
Defined in: src/core/repo.ts:698
Before committing, also stage specified paths
message?
optionalmessage:string
Defined in: src/core/repo.ts:654
Commit message
noGpgSign?
optionalnoGpgSign:boolean
Defined in: src/core/repo.ts:672
Do not GPG-sign the commit (override commit.gpgSign config)
noPostRewrite?
optionalnoPostRewrite:boolean
Defined in: src/core/repo.ts:702
Bypass post-rewrite hook
noVerify?
optionalnoVerify:boolean
Defined in: src/core/repo.ts:668
Bypass pre-commit and commit-msg hooks
only?
optionalonly:boolean
Defined in: src/core/repo.ts:700
Commit only specified paths, ignoring staged changes
pathspecFromFile?
optionalpathspecFromFile:string
Defined in: src/core/repo.ts:706
Read pathspecs from file instead of command line
quiet?
optionalquiet:boolean
Defined in: src/core/repo.ts:676
Suppress commit summary message
reeditMessage?
optionalreeditMessage:string
Defined in: src/core/repo.ts:682
Take existing commit message and re-edit it
resetAuthor?
optionalresetAuthor:boolean
Defined in: src/core/repo.ts:690
Override author date and ignore cached author identity
reuseMessage?
optionalreuseMessage:string
Defined in: src/core/repo.ts:684
Take existing commit message and reuse it
signoff?
optionalsignoff:boolean
Defined in: src/core/repo.ts:694
Add Signed-off-by trailer
squash?
optionalsquash:string
Defined in: src/core/repo.ts:688
Create a squash commit for the specified commit
trailer?
optionaltrailer:string|string[]
Defined in: src/core/repo.ts:692
Add trailers to the commit message
untrackedFiles?
optionaluntrackedFiles:"no"|"normal"|"all"
Defined in: src/core/repo.ts:704
How to show untracked files
verbose?
optionalverbose:boolean
Defined in: src/core/repo.ts:678
Show unified diff between HEAD and working tree