summaryrefslogtreecommitdiff
path: root/perl/Git.xs
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-06-25 01:54:26 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-03 00:14:42 (GMT)
commit24c4b7143639cc821b6d06f9e125429e65dad8cd (patch)
treedbdce1c44b2e96893cb6fc895efb6727a93f5332 /perl/Git.xs
parenta6065b548fc74ce4d8a655e17bfb1dba39540464 (diff)
downloadgit-24c4b7143639cc821b6d06f9e125429e65dad8cd.zip
git-24c4b7143639cc821b6d06f9e125429e65dad8cd.tar.gz
git-24c4b7143639cc821b6d06f9e125429e65dad8cd.tar.bz2
Git.pm: Swap hash_object() parameters
I'm about to introduce get_object() and it will be better for consistency if the object type always goes first. And writing 'blob' there explicitly is not much bother. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'perl/Git.xs')
-rw-r--r--perl/Git.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Git.xs b/perl/Git.xs
index 8b06ebf..3030ba9 100644
--- a/perl/Git.xs
+++ b/perl/Git.xs
@@ -104,9 +104,9 @@ CODE:
}
char *
-xs_hash_object(file, type = "blob")
- SV *file;
+xs_hash_object(type, file)
char *type;
+ SV *file;
CODE:
{
unsigned char sha1[20];