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>
This commit is contained in:
Petr Baudis 2006-06-25 03:54:26 +02:00 committed by Junio C Hamano
parent a6065b548f
commit 24c4b71436
2 changed files with 6 additions and 6 deletions

View File

@ -485,13 +485,13 @@ sub wc_chdir {
}
=item hash_object ( FILENAME [, TYPE ] )
=item hash_object ( TYPE, FILENAME )
=item hash_object ( FILEHANDLE [, TYPE ] )
=item hash_object ( TYPE, FILEHANDLE )
Compute the SHA1 object id of the given C<FILENAME> (or data waiting in
C<FILEHANDLE>) considering it is of the C<TYPE> object type (C<blob>
(default), C<commit>, C<tree>).
C<FILEHANDLE>) considering it is of the C<TYPE> object type (C<blob>,
C<commit>, C<tree>).
In case of C<FILEHANDLE> passed instead of file name, all the data
available are read and hashed, and the filehandle is automatically

View File

@ -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];