[opensuse-buildservice] [PATCH] commit message template
![](https://seccdn.libravatar.org/avatar/3a766c4a0b64a5d1b06b4a786d5e3a9e.jpg?s=120&d=mm&r=g)
Hi, the attached patch changes the behavior of 'osc commit' command. I'm not very happy when I have three places where the changes should be documented: - .changes - %changelog in .spec - osc commit messages The modified commit command read a differences from 1.) .changes, or 2.) %changelog part of .spec and fill it to the commit message, so you don't need type it again. Only one problem is - you need change the commit message anyway, because osc check the difference between commit message template and a result, but this should be easily fixed (use a checksum without commit message template). What do you think about this approach? Regards Michal Vyskocil
![](https://seccdn.libravatar.org/avatar/bff5f3a982c0eca43c2cf6e50e2daaff.jpg?s=120&d=mm&r=g)
Le mercredi 28 janvier 2009, à 13:11 +0100, Michal Vyskocil a écrit :
Hi,
the attached patch changes the behavior of 'osc commit' command. I'm not very happy when I have three places where the changes should be documented: - .changes - %changelog in .spec - osc commit messages
The modified commit command read a differences from 1.) .changes, or 2.) %changelog part of .spec and fill it to the commit message, so you don't need type it again.
Only one problem is - you need change the commit message anyway, because osc check the difference between commit message template and a result, but this should be easily fixed (use a checksum without commit message template).
What do you think about this approach?
That sounds cool. One issue, though, is that %changelog seems to be only updated when the package reaches openSUSE:Factory. And so you if you do multiple commits, you'll accumulate a lot of changes in your commit message. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/e1d3f322373a851c42e21dd2264df481.jpg?s=120&d=mm&r=g)
Hi Michal, On Wed, Jan 28, 2009 at 01:11:02PM +0100, Michal Vyskocil wrote:
the attached patch changes the behavior of 'osc commit' command. I'm not very happy when I have three places where the changes should be documented: - .changes - %changelog in .spec - osc commit messages
The modified commit command read a differences from 1.) .changes, or 2.) %changelog part of .spec and fill it to the commit message, so you don't need type it again.
Only one problem is - you need change the commit message anyway, because osc check the difference between commit message template and a result, but this should be easily fixed (use a checksum without commit message template).
What do you think about this approach?
Great idea, I think. Something like this has requested by many people. Are you going to commit the change? Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
participants (3)
-
Michal Vyskocil
-
Peter Poeml
-
Vincent Untz