When git prints non-criticial warnings or error messages, these are injected into commit messages.
E.g.
# prepare git repository
mkdir /tmp/XXX
cd /tmp/XXX
git init
# cause a warning
echo /non-existing > .git/objects/info/alternates
# do some work
echo foo > test
git add test
git commit -m 'initial checkin' test
Now, open the /tmp/XXX/test file in emacs, change it, do git-gutter+-stage-hunks and git-gutter+-commit.
The resulting commit message will contain the
error: object directory /non-existing does not exist; check .git/objects/info/alternates.
When git prints non-criticial warnings or error messages, these are injected into commit messages.
E.g.
Now, open the
/tmp/XXX/test
file in emacs, change it, dogit-gutter+-stage-hunks
andgit-gutter+-commit
.The resulting commit message will contain the
warning which is sometimes added to the code too.