{"thread":{"id":"155","subject":"[PATCH 1/3] init-db.c: cleanup comments","startedAt":"2005-04-20T04:28:39Z","lastAt":"2005-04-20T04:28:39Z","messageCount":1,"participants":["Zach Welch"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"930","messageId":"mailbox-1242-1113971319-969154@spoon","threadId":"155","inReplyTo":null,"subject":"[PATCH 1/3] init-db.c: cleanup comments","fromName":"Zach Welch","fromEmail":"zw@superlucidity.net","sentAt":"2005-04-20T04:28:39Z","receivedAt":"2005-04-20T04:28:39Z","isPatch":true,"sender":{"key":"zw@superlucidity.net","avatar":null},"body":" init-db.c |   15 ++++++---------\n 1 files changed, 6 insertions(+), 9 deletions(-)\n\nSigned-Off-By: Zach Welch <zw@superlucidity.net>\n\nConsolidate comments at top of main.\n\n--- a/init-db.c\n+++ b/init-db.c\n@@ -5,6 +5,12 @@\n  */\n #include \"cache.h\"\n \n+/*\n+ * If you want to, you can share the DB area with any number of branches.\n+ * That has advantages: you can save space by sharing all the SHA1 objects.\n+ * On the other hand, it might just make lookup slower and messier. You\n+ * be the judge.  The default case is to have one DB per managed directory.\n+ */\n int main(int argc, char **argv)\n {\n \tchar *sha1_dir, *path;\n@@ -15,12 +21,6 @@ int main(int argc, char **argv)\n \t\texit(1);\n \t}\n \n-\t/*\n-\t * If you want to, you can share the DB area with any number of branches.\n-\t * That has advantages: you can save space by sharing all the SHA1 objects.\n-\t * On the other hand, it might just make lookup slower and messier. You\n-\t * be the judge.\n-\t */\n \tsha1_dir = getenv(DB_ENVIRONMENT);\n \tif (sha1_dir) {\n \t\tstruct stat st;\n@@ -29,9 +29,6 @@ int main(int argc, char **argv)\n \t\tfprintf(stderr, \"DB_ENVIRONMENT set to bad directory %s: \", sha1_dir);\n \t}\n \n-\t/*\n-\t * The default case is to have a DB per managed directory.\n-\t */\n \tsha1_dir = DEFAULT_DB_ENVIRONMENT;\n \tfprintf(stderr, \"defaulting to private storage area\\n\");\n \tlen = strlen(sha1_dir);\n"}]}