Git.pm: fix documentation of hash_object

The documentation of hash_object incorrectly states that it accepts a
file handle -- in fact it doesn't, and there is even a TODO comment
for this.  This fixes the documentation.

Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Lea Wiemann 2008-06-01 22:26:25 +02:00 committed by Junio C Hamano
parent f1979d6b3f
commit 58c8dd2173
1 changed files with 2 additions and 3 deletions

View File

@ -719,9 +719,8 @@ sub ident_person {


=item hash_object ( TYPE, FILENAME ) =item hash_object ( TYPE, FILENAME )


Compute the SHA1 object id of the given C<FILENAME> (or data waiting in Compute the SHA1 object id of the given C<FILENAME> considering it is
C<FILEHANDLE>) considering it is of the C<TYPE> object type (C<blob>, of the C<TYPE> object type (C<blob>, C<commit>, C<tree>).
C<commit>, C<tree>).


The method can be called without any instance or on a specified Git repository, The method can be called without any instance or on a specified Git repository,
it makes zero difference. it makes zero difference.