Skip to content

Commit 58c8dd2

Browse files
Lea Wiemanngitster
authored andcommitted
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>
1 parent f1979d6 commit 58c8dd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

perl/Git.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,8 @@ sub ident_person {
719719

720720
=item hash_object ( TYPE, FILENAME )
721721
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>).
725724
726725
The method can be called without any instance or on a specified Git repository,
727726
it makes zero difference.

0 commit comments

Comments
 (0)