@matheusbsbs / matheus-bagliano / commits / 58c8dd2173
Fork 0

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>

Lea Wiemann committed Jun 1, 2008 at 22:26 UTC 58c8dd217384b8d1a464a55a98c665ed108c6b15
1 file changed +2 -3
perl/Git.pm
+2 -3
@@ -719,9 +719,8 @@ sub ident_person {
719
720 =item hash_object ( TYPE, FILENAME )
721
722 -Compute the SHA1 object id of the given C<FILENAME> (or data waiting in
723 -C<FILEHANDLE>) considering it is of the C<TYPE> object type (C<blob>,
724 -C<commit>, C<tree>).
722 +Compute the SHA1 object id of the given C<FILENAME> considering it is
723 +of the C<TYPE> object type (C<blob>, C<commit>, C<tree>).
724
725 The method can be called without any instance or on a specified Git repository,
726 it makes zero difference.