{"thread":{"id":"18560","subject":"[PATCH 05/10] rev-list: make \"show_bisect_vars\" non static","startedAt":"2009-03-26T04:55:35Z","lastAt":"2009-03-26T04:55:35Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":10},"messages":[{"id":"109481","messageId":"20090326055535.9b970cff.chriscool@tuxfamily.org","threadId":"18560","inReplyTo":null,"subject":"[PATCH 05/10] rev-list: make \"show_bisect_vars\" non static","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2009-03-26T04:55:35Z","receivedAt":"2009-03-26T04:55:35Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"and declare it in \"bisect.h\" as we will use this function later.\n\nWhile at it, rename its last argument \"show_all\" instead of\n\"bisect_find_all\".\n\nSigned-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n bisect.h           |    2 ++\n builtin-rev-list.c |    5 +++--\n 2 files changed, 5 insertions(+), 2 deletions(-)\n\ndiff --git a/bisect.h b/bisect.h\nindex 60b2fe1..860a15c 100644\n--- a/bisect.h\n+++ b/bisect.h\n@@ -5,4 +5,6 @@ extern struct commit_list *find_bisection(struct commit_list *list,\n \t\t\t\t\t  int *reaches, int *all,\n \t\t\t\t\t  int find_all);\n \n+extern int show_bisect_vars(int reaches, int all, int show_all);\n+\n #endif\ndiff --git a/builtin-rev-list.c b/builtin-rev-list.c\nindex 74d22b4..c700c34 100644\n--- a/builtin-rev-list.c\n+++ b/builtin-rev-list.c\n@@ -226,7 +226,7 @@ static int estimate_bisect_steps(int all)\n \treturn (e < 3 * x) ? n : n - 1;\n }\n \n-static int show_bisect_vars(int reaches, int all, int bisect_find_all)\n+int show_bisect_vars(int reaches, int all, int show_all)\n {\n \tint cnt;\n \tchar hex[41];\n@@ -246,9 +246,10 @@ static int show_bisect_vars(int reaches, int all, int bisect_find_all)\n \tcnt = all - reaches;\n \tif (cnt < reaches)\n \t\tcnt = reaches;\n+\n \tstrcpy(hex, sha1_to_hex(revs.commits->item->object.sha1));\n \n-\tif (bisect_find_all) {\n+\tif (show_all) {\n \t\ttraverse_commit_list(&revs, show_commit, show_object);\n \t\tprintf(\"------\\n\");\n \t}\n-- \n1.6.2.1.317.g3d804\n"}]}