path: root/revision.c
diff options
authorGary V. Vaughan <>2010-05-14 09:31:35 (GMT)
committerJunio C Hamano <>2010-05-31 23:59:27 (GMT)
commit4b05548fc0523744b7a1276cfa0f4aae19d6d9c9 (patch)
treebaf4bc01f49247b8811ed5d87dede2456e8b5eff /revision.c
parent48793cf46a286a21df420fdd7fc4b0c91c60a0c8 (diff)
enums: omit trailing comma for portability
Without this patch at least IBM VisualAge C 5.0 (I have 5.0.2) on AIX 5.1 fails to compile git. enum style is inconsistent already, with some enums declared on one line, some over 3 lines with the enum values all on the middle line, sometimes with 1 enum value per line... and independently of that the trailing comma is sometimes present and other times absent, often mixing with/without trailing comma styles in a single file, and sometimes in consecutive enum declarations. Clearly, omitting the comma is the more portable style, and this patch changes all enum declarations to use the portable omitted dangling comma style consistently. Signed-off-by: Gary V. Vaughan <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'revision.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index f4b8b38..b209d49 100644
--- a/revision.c
+++ b/revision.c
@@ -1781,7 +1781,7 @@ int prepare_revision_walk(struct rev_info *revs)
enum rewrite_result {
- rewrite_one_error,
+ rewrite_one_error
static enum rewrite_result rewrite_one(struct rev_info *revs, struct commit **pp)