• Jonas Bernoulli's avatar
    git-commit-post-finish-hook: Don't run until commit was created · d445a3d3
    Jonas Bernoulli authored
    When "emacsclient" returns, then that doesn't necessarily mean that
    "git commit", which used "emacsclient" as the `EDITOR', is already
    done creating the commit.  We do not know the pid of "git commit",
    so we have to use some other method of finding out when committing
    is complete.
    
    We do so by looping until "HEAD" points at another commit than it did
    before the commit was initiated.  Once that is the case we run the
    hook.  If "HEAD" still points at the same commit after one second,
    then we give up and don't run the hook.
    d445a3d3
Name
Last commit
Last update
..
Makefile Loading commit data...
git-commit.el Loading commit data...
git-rebase.el Loading commit data...
magit-apply.el Loading commit data...
magit-autorevert.el Loading commit data...
magit-bisect.el Loading commit data...
magit-blame.el Loading commit data...
magit-bookmark.el Loading commit data...
magit-branch.el Loading commit data...
magit-clone.el Loading commit data...
magit-collab.el Loading commit data...
magit-commit.el Loading commit data...
magit-core.el Loading commit data...
magit-diff.el Loading commit data...
magit-ediff.el Loading commit data...
magit-extras.el Loading commit data...
magit-fetch.el Loading commit data...
magit-files.el Loading commit data...
magit-git.el Loading commit data...
magit-gitignore.el Loading commit data...
magit-imenu.el Loading commit data...
magit-log.el Loading commit data...
magit-margin.el Loading commit data...
magit-merge.el Loading commit data...
magit-mode.el Loading commit data...
magit-notes.el Loading commit data...
magit-obsolete.el Loading commit data...
magit-patch.el Loading commit data...
magit-pkg.el Loading commit data...
magit-process.el Loading commit data...
magit-pull.el Loading commit data...
magit-push.el Loading commit data...
magit-refs.el Loading commit data...
magit-remote.el Loading commit data...
magit-repos.el Loading commit data...
magit-reset.el Loading commit data...
magit-section.el Loading commit data...
magit-sequence.el Loading commit data...
magit-stash.el Loading commit data...
magit-status.el Loading commit data...
magit-submodule.el Loading commit data...
magit-subtree.el Loading commit data...
magit-tag.el Loading commit data...
magit-utils.el Loading commit data...
magit-wip.el Loading commit data...
magit-worktree.el Loading commit data...
magit.el Loading commit data...