[opensuse-buildservice] [PATCH] commit message template
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
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
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