Yann Hodique <[email protected]>
writes:
>> Is there another, more proper, way to just amend the previous commit's
>> message, or is this a bug...?
>
> sorry about that, this is indeed a bug. see
> https://github.com/magit/magit/issues/331
> We're discussing the proper fix at the moment, and I'll release 1.1.1
> shortly afterwards.
> Note that we'll probably require hitting C-u c to allow a commit when
> there's no change, which is slightly different from the old behavior,
> but shouldn't be too much of an annoyance.
C-u doesn't sound that bad, but maybe a little hard for the user to
discover. Given that the current behavior in the "no changes" case is
to do nothing at all, which is almost certainly not what the user
wanted, any reason to not just use another prompt at that point?
("There are no changes to commit; would you like to amend the previous
log message?")
It should at least print a message in that case (maybe advertising the
C-u behavior).
Thanks,
-miles
--
Politics, n. A strife of interests masquerading as a contest of
principles. The conduct of public affairs for private advantage.