Fix magit-key-mode.el to refer to magit-diff-toggle-refine-hunk
Merge pull request #1326 from jwiegley/master

Fix magit-key-mode.el to refer to magit-diff-toggle-refine-hunk
Transition machinery for magit-insert-pending-changes

If users have customized their `magit-status-sections-hook' then it can
be confusing when they update magit and suddenly start getting error
messages due to `magit-insert-pending-changes' not being defined
anymore. Define a an obsolete function alias to a shim function that
displays a message to the user about what's going on.

See also: 382351845eca2425713f640f9bb55756c9ddf723
Merge pull request #1328 from mgalgs/obsolete-alias

Transition machinery for magit-insert-pending-changes
Don't try to run magit-rewrite-diff-pending from magit-status-sections-hook

In [9a4e236: "Transition machinery for magit-insert-pending-changes"] an
obsolete function alias and "transition" function were introduced to
help users that may have customized `magit-status-sections-hook' to know
that `magit-rewrite-diff-pending' no longer exists. However, it really
never makes sense to run `magit-rewrite-diff-pending' from
`magit-status-sections-hook' and in some configurations the actual
"help" message is hidden by the error from
magit-rewrite-diff-pending. Fix this unnecessary confusion by *not*
running `magit-rewrite-diff-pending' from the shim function.
Merge pull request #1331 from mgalgs/rewrite-diff-pending-stuff

Don't try to run magit-rewrite-diff-pending from magit-status-sections-hook