only

Function only 

Source
pub fn only() -> FnOptionArg
Expand description

Make a commit by taking the updated working tree contents of the paths specified on the command line, disregarding any contents that have been staged for other paths. This is the default mode of operation of git commit if any paths are given on the command line, in which case this option can be omitted. If this option is specified together with –amend, then no paths need to be specified, which can be used to amend the last commit without committing changes that have already been staged. If used together with –allow-empty paths are also not required, and an empty commit will be created. -o, –only