author | Will Palmer <wmpalmer@gmail.com> | |
Sun, 2 May 2010 11:00:43 +0000 (12:00 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 May 2010 16:40:32 +0000 (09:40 -0700) | ||
commit | 2d7671ef43946cdfce140e6e9c3ca1eeea361676 | |
tree | 4b357f9734dfb76180f5af257765aa28a7422d35 | tree | snapshot |
parent | 409578912cb21bdad4a75f34af7c0a815ac9d06b | commit | diff |
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>
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 | diff | blob | history |