]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
pretty: add infrastructure for commit format aliases
authorWill Palmer <wmpalmer@gmail.com>
Sun, 2 May 2010 11:00:43 +0000 (12:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 May 2010 16:40:32 +0000 (09:40 -0700)
commit2d7671ef43946cdfce140e6e9c3ca1eeea361676
tree4b357f9734dfb76180f5af257765aa28a7422d35
parent409578912cb21bdad4a75f34af7c0a815ac9d06b
pretty: add infrastructure for commit format aliases

Allow named commit formats to alias one another; find_commit_format() will
recursively dereference aliases when they are specified.  At this point,
there are no aliases specified and there is no way to specify an alias,
but the support is there for any which are added.

If an alias loop is detected, the function die()s.

Signed-off-by: Will Palmer <wmpalmer@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c