multiple -m
authorJoey Hess <joeyh@joeyh.name>
Wed, 27 Mar 2024 19:58:27 +0000 (15:58 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 27 Mar 2024 19:58:27 +0000 (15:58 -0400)
commitcee12f6a2fd7f90eb2aa72cd638b6bcdf45e4f92
tree7904c7099505bb0da59f39f4819b1d8c126058ff
parent377e9fff187305d7cecfa003c9e88ece45766ae6
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
15 files changed:
Annex/AdjustedBranch.hs
Annex/AdjustedBranch/Merge.hs
Annex/Branch.hs
Annex/Import.hs
Annex/RemoteTrackingBranch.hs
Annex/View.hs
CHANGELOG
Command/FilterBranch.hs
Command/Import.hs
Command/Sync.hs
Git/Branch.hs
doc/git-annex-assist.mdwn
doc/git-annex-import.mdwn
doc/git-annex-sync.mdwn
doc/todo/multiple_-m.mdwn