From c3af4274ae2eefe6959f3f41c38d0fe39cb2ad0e Mon Sep 17 00:00:00 2001 From: Greg Smith Date: Thu, 10 Feb 2011 18:55:17 -0500 Subject: [PATCH] Document astyle command line used to standardize code formatting --- README.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 13c47f83..87795255 100644 --- a/README.rst +++ b/README.rst @@ -540,7 +540,7 @@ The repmgr daemon creates 2 connections: one to the master and another to the standby. Error codes ------------ +=========== When the repmgr or repmgrd program exits, it will set one of the following @@ -755,3 +755,13 @@ assignment and a disclaimer of any work-for-hire ownership claims from the employer of the developer. This lets us make sure that all of the repmgr distribution remains free code. Please contact info@2ndQuadrant.com for a copy of the relevant Copyright Assignment Form. + +Code style +---------- + +Code in repmgr is formatted to a consistent style using the following command:: + + astyle --style=ansi --indent=tab --suffix=none *.c *.h + +Contributors should reformat their code similarly before submitting code to +the project, in order to minimize merge conflicts with other work.