Skip to content

Latest commit

 

History

History
86 lines (80 loc) · 3.87 KB

git.commit.md

File metadata and controls

86 lines (80 loc) · 3.87 KB

commit

Git commit one or more changed files or all changes in one or more project directories.

format
> batchrun git commit <options> [directories]
mandatory option(one or the other)
--message string commit message
other options
--file string filepath relative to project directory
this option may be added multiple times.
--allowempty boolean Don't fail on committing projects that do not have changed files.
substituting options (will substitute valid options)
--env:opt:[optionname][propertyname] boolean read property 'propertyname' and pass its value to jsbr fs clean using option '--optionname'
Example: --env:opt:file:foo (with foo: "/var/tmp/fun") => --file "/var/tmp/fun"
additional options (will extend the arguments iterated by jsbr fs clean)
--env:args:use:[propertyname] boolean read the arguments (directories) from property 'propertyname'
--env:args:append:[propertyname] boolean read the arguments (directories) from property 'propertyname' and append them to existing arguments.
--env:args:prepend:[propertyname] boolean read the arguments (directories) from property 'propertyname' and prepend them to existing arguments.
additional options (will narrow the arguments iterated by jsbr fs clean)
--args:from integer start cleaning task at and including this position, in the list of directories (arguments)
--args:to integer stop cleaning task at and including this position, in the list of directories (arguments)
--args:index integer run cleaning task (only!) for this position, in the list of directories (arguments)
(will override any ranges set by --args:from and --args:to)
special options
--debug boolean display debug information
--help boolean display help for command jsbr fs clean

examples:


Commit files [ "somefile.js", "otherfile.js" ] with commit message for all listed project directories.

> batchrun git commit --file somefile.js --file otherfile.js  --message update ~/projects/project-00 ~/projects/project-01 ...

Commit all projects of the global list of projects, starting at index 7 and including all projects up to index 12 inclusive. (The first index, that could be addressed was '0')

> batchrun git commit --allowempty --args:from 7 --args:to 12 ~/projects/project-00 ~/projects/project-01 ...