multiple -m
sync, assist, import: Allow -m option to be specified multiple times, to provide additional paragraphs for the commit message. The option parser didn't allow multiple -m before, so there is no risk of behavior change breaking something that was for some reason using multiple -m already. Pass through to git commands, so that the method used to assemble the paragrahs is whatever git does. Which might conceivably change in the future. Note that git commit-tree has supported -m since git 1.7.7. commitTree was probably not using it since it predates that version. Since the configure script prevents building git-annex with git older than 2.1, there is no risk that it's not supported now. Sponsored-by: Nicholas Golder-Manning on Patreon
This commit is contained in:
parent
377e9fff18
commit
cee12f6a2f
15 changed files with 57 additions and 41 deletions
|
@ -34,6 +34,9 @@ files that it does not match will instead be added with `git add`.
|
|||
|
||||
Use this option to specify a commit message.
|
||||
|
||||
If multiple -m options are given, their values are concatenated
|
||||
as separate paragraphs.
|
||||
|
||||
* `--content-of=path` `-C path`
|
||||
|
||||
Only add, pull, and push files in the given path.
|
||||
|
|
|
@ -107,6 +107,9 @@ the tree of files on the remote, even when importing into a subdirectory.
|
|||
Use this option to specify a commit message for the changes that have
|
||||
been made to the special remote since the last import from it.
|
||||
|
||||
If multiple -m options are given, their values are concatenated
|
||||
as separate paragraphs.
|
||||
|
||||
# IMPORTING FROM A DIRECTORY
|
||||
|
||||
When run with a path, `git annex import` **moves** files from somewhere outside
|
||||
|
|
|
@ -51,6 +51,9 @@ when syncing with repositories that have preferred content configured.
|
|||
|
||||
Use this option to specify a commit message.
|
||||
|
||||
If multiple -m options are given, their values are concatenated
|
||||
as separate paragraphs.
|
||||
|
||||
* `--pull`, `--no-pull`
|
||||
|
||||
Use this option to disable pulling.
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
git-annex sync etc -m should be able to be specified multiple times. In git
|
||||
commit, multiple -m can be used to make a multiparagraph commit. --[[Joey]]
|
||||
|
||||
> [[done]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue