Coding style fixes.
cover Coding style fixes.
This patch set contatins minor style fixes. CodingGuidelines contains rule that the star must side with variable name.
Alexander Kuleshov (7):
show-branch: minor style fix
clone: minor style fix
test-hashmap: minor style fix
http-backend: minor style fix
refs: minor style fix
quote: minor style fix
fast-import: minor style fix
builtin/clone.c | 2 +- builtin/show-branch.c | 2 +- fast-import.c | 2 +- http-backend.c | 2 +- quote.c | 2 +- refs.h | 2 +- test-hashmap.c | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-)
--
2.3.0.rc1.275.g028c360
PATCH 1/7 show-branch: minor style fix
Asterisk must be next with variable
--- builtin/show-branch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/show-branch.c +1 -1
@@ -6,7 +6,7 @@#include "parse-options.h" #include "commit-slab.h" -static const char * show_branch_usage[] = { +static const char *show_branch_usage[] = { N_("git show-branch [-a | --all] [-r | --remotes] [--topo-order | --date-order]\n" " [--current] [--color[=<when>] | --no-color] [--sparse]\n" " [--more=<n> | --list | --independent | --merge-base]\n"
--
2.3.0.rc1.275.g028c360
PATCH 2/7 clone: minor style fix
In reply to Alexander KuleshovAsterisk must be next with variable
--- builtin/clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/clone.c +1 -1
@@ -741,7 +741,7 @@ static void write_refspec_config(const char *src_ref_prefix,static void dissociate_from_references (void ) { -static const char * argv[] = {"repack" ,"-a" ,"-d" ,NULL }; +static const char *argv[] = {"repack" ,"-a" ,"-d" ,NULL };if (run_command_v_opt (argv,RUN_GIT_CMD |RUN_COMMAND_NO_STDIN ))die (_ ("cannot repack to clean up" ));
--
2.3.0.rc1.275.g028c360
PATCH 3/7 test-hashmap: minor style fix
In reply to Alexander KuleshovAsterisk must be next with variable
--- test-hashmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
test-hashmap.c +2 -2
@@ -14,13 +14,13 @@ static const char *get_value(const struct test_entry *e) }static int test_entry_cmp (const struct test_entry *e1, -const struct test_entry *e2,const char * key) +const struct test_entry *e2,const char *key) {return strcmp (e1->key, key ? key : e2->key); }static int test_entry_cmp_icase (const struct test_entry *e1, -const struct test_entry *e2,const char * key) +const struct test_entry *e2,const char *key) {return strcasecmp (e1->key, key ? key : e2->key); }
--
2.3.0.rc1.275.g028c360
PATCH 4/7 http-backend: minor style fix
In reply to Alexander KuleshovAsterisk must be next with variable
--- http-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
http-backend.c +1 -1
@@ -515,7 +515,7 @@ static NORETURN void die_webcgi(const char *err, va_list params)exit (0 );/* we successfully reported a failure ;-) */ } -static char *getdir (void ) +static char *getdir (void ) {struct strbuf buf =STRBUF_INIT ;char *pathinfo =getenv ("PATH_INFO" );
--
2.3.0.rc1.275.g028c360
PATCH 5/7 refs: minor style fix
In reply to Alexander KuleshovAsterisk must be next with variable
--- refs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
refs.h +1 -1
@@ -86,7 +86,7 @@ extern int for_each_branch_ref(each_ref_fn, void *);extern int for_each_remote_ref (each_ref_fn ,void *);extern int for_each_replace_ref (each_ref_fn ,void *);extern int for_each_glob_ref (each_ref_fn ,const char *pattern,void *); -extern int for_each_glob_ref_in (each_ref_fn ,const char *pattern,const char * prefix,void *); +extern int for_each_glob_ref_in (each_ref_fn ,const char *pattern,const char *prefix,void *);extern int head_ref_submodule (const char *submodule,each_ref_fn fn,void *cb_data);extern int for_each_ref_submodule (const char *submodule,each_ref_fn fn,void *cb_data);
--
2.3.0.rc1.275.g028c360
PATCH 6/7 quote: minor style fix
In reply to Alexander KuleshovAsterisk must be next with variable
--- quote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
quote.c +1 -1
@@ -42,7 +42,7 @@ void sq_quote_buf(struct strbuf *dst, const char *src)free (to_free); } -void sq_quote_argv (struct strbuf *dst,const char ** argv,size_t maxlen) +void sq_quote_argv (struct strbuf *dst,const char **argv,size_t maxlen) {int i;
--
2.3.0.rc1.275.g028c360
PATCH 7/7 fast-import: minor style fix
In reply to Alexander KuleshovAsterisk must be next with variable
--- fast-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fast-import.c +1 -1
@@ -3110,7 +3110,7 @@ static void parse_progress(void)skip_optional_lf (); } -static char *make_fast_import_path (const char *path) +static char *make_fast_import_path (const char *path) {if (!relative_marks_paths ||is_absolute_path (path))return xstrdup (path);
--
2.3.0.rc1.275.g028c360
Re: [PATCH 7/7] fast-import: minor style fix
On 2015-01-23 12.08, Alexander Kuleshov wrote:
..
Asterisk must be next with variable
..
But this is a function:
fast-import.c static void parse_progress(void) · line 3113
Quoted 2 lines
fast-import.c +1
-1-static char *make_fast_import_path (const char *path) +static char *make_fast_import_path (const char *path)
(Sorry when I need to read this:)
- Fixing style violations while working on a real change as a preparatory clean-up step is good, but otherwise avoid useless code churn for the sake of conforming to the style.
"Once it _is_ in the tree, it's not really worth the patch noise to go and fix it up."
Cf. http://article.gmane.org/gmane.linux.kernel/943020
I made separate patch for every file. Please, let me know if need to squash it into one commit.
2015-01-23 17:06 GMT+06:00 Alexander Kuleshov <[email protected]>:
Quoted 23 lines
This patch set contatins minor style fixes. CodingGuidelines contains rule that the star must side with variable name.
Alexander Kuleshov (7):
show-branch: minor style fix
clone: minor style fix
test-hashmap: minor style fix
http-backend: minor style fix
refs: minor style fix
quote: minor style fix
fast-import: minor style fixbuiltin/clone.c | 2 +- builtin/show-branch.c | 2 +- fast-import.c | 2 +- http-backend.c | 2 +- quote.c | 2 +- refs.h | 2 +- test-hashmap.c | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-)--
2.3.0.rc1.275.g028c360
Signature · 2 lines
_________________________ 0xAX
Stefan Beller
Reviewed-byQuoted 8 lines · Alexander Kuleshov
I made separate patch for every file. Please, let me know if need to squash it into one commit.
2015-01-23 17:06 GMT+06:00 Alexander Kuleshov <[email protected]>:
Quoted 3 lines
This patch set contatins minor style fixes. CodingGuidelines contains rule that the star must side with variable name.
The whole series is