Code

builtin-commit.c: show on which branch a commit was added
authorPieter de Bie <pdebie@ai.rug.nl>
Sun, 7 Sep 2008 23:05:41 +0000 (01:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Sep 2008 23:15:49 +0000 (16:15 -0700)
commite502f9e7e6ceb8dfbdb94e2675355847740fc28f
treece6aeea27494a6e230c5f940819d3809cdb2d526
parent80d12c23de4fbddfaee2f9bf7fe809f57d02e171
builtin-commit.c: show on which branch a commit was added

This outputs the current branch on which a commit was created, just for
reference. For example:

Created commit 6d42875 on master: Fix submodule invalid command error

This also reminds the committer when he is on a detached HEAD:

Created commit 02a7172 on detached HEAD: Also do this for 'git commit --amend'

Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c