diff options
author | Kjetil Barvik <barvik@broadpark.no> | 2009-02-09 21:54:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-09 20:59:26 -0800 |
commit | 571998921d8fd4ee674545406aabb86987921252 (patch) | |
tree | 519fb9c8f6d7a9e1e3fcbc1d79fb22420a4b3582 /builtin-add.c | |
parent | 148bc06b9101042342a89454a003998fc0e1ded3 (diff) | |
download | git-571998921d8fd4ee674545406aabb86987921252.tar.gz git-571998921d8fd4ee674545406aabb86987921252.tar.xz |
lstat_cache(): swap func(length, string) into func(string, length)
Swap function argument pair (length, string) into (string, length) to
conform with the commonly used order inside the GIT source code.
Also, add a note about this fact into the coding guidelines.
Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-add.c')
-rw-r--r-- | builtin-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-add.c b/builtin-add.c index ac98c8354..a23ad9677 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -148,7 +148,7 @@ static const char **validate_pathspec(int argc, const char **argv, const char *p if (pathspec) { const char **p; for (p = pathspec; *p; p++) { - if (has_symlink_leading_path(strlen(*p), *p)) { + if (has_symlink_leading_path(*p, strlen(*p))) { int len = prefix ? strlen(prefix) : 0; die("'%s' is beyond a symbolic link", *p + len); } |