softwarefactory-project / rdopkg

power to the packagers
Apache License 2.0
28 stars 21 forks source link

RFE: rdopkg amend --commit-preheader <file> #118

Closed yazug closed 7 years ago

yazug commented 7 years ago

idea for a tweak to "rdopkg amend" is for an option that could take a file or a string and use that as the header for the reformatted commit message

$ cat commit-msg-header this implement foo-change

details for this work in general $

$ rdopkg amend --commit-preheader-file commit-msg-header

$ git log -n1 this implement foo-change

details for this work in general

Resolves: rhbz#foo

Changelog:

yazug commented 7 years ago

filename or sting parameter would satisfy my current needs

I can see this being very useful for interactive usage of rdopkg when patching so I don't have to flip to git commit --amend but the main driver is automation where we have context information we want to inject into the commit message around the changeset coming in.

yac commented 7 years ago

Slightly related to #92

yazug commented 7 years ago

someone suggested possible alt naming --commitmsg-header --commit-title --from-file

ktdreyer commented 7 years ago

--commit-title sounds most intuitive to me

yac commented 7 years ago

https://review.rdoproject.org/r/#/c/6548/