summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorLea Wiemann <lewiemann@gmail.com>2008-06-01 20:26:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-02 05:21:05 (GMT)
commit58c8dd217384b8d1a464a55a98c665ed108c6b15 (patch)
tree53207346bac572fc7e4f155346a975af26b19382 /perl
parentf1979d6b3fba41fb6ca92290bf8e10d58ede8970 (diff)
downloadgit-58c8dd217384b8d1a464a55a98c665ed108c6b15.zip
git-58c8dd217384b8d1a464a55a98c665ed108c6b15.tar.gz
git-58c8dd217384b8d1a464a55a98c665ed108c6b15.tar.bz2
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>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl/Git.pm b/perl/Git.pm
index d05b633..e2141b6 100644
--- a/perl/Git.pm
+++ b/perl/Git.pm
@@ -719,9 +719,8 @@ sub ident_person {
=item hash_object ( TYPE, FILENAME )
-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>,
-C<commit>, C<tree>).
+Compute the SHA1 object id of the given C<FILENAME> considering it is
+of the C<TYPE> object type (C<blob>, C<commit>, C<tree>).
The method can be called without any instance or on a specified Git repository,
it makes zero difference.