Skip to contentSkip to conversation

Git.pm: fix documentation of hash_object

PATCH New Lea Wiemann 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
This should be implemented eventually, but in the meantime let's just correct the documentation.

 perl/Git.pm |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
perl/Git.pm +2 -3
index 80f7669..07b92c7 100644
@@ -760,9 +760,8 @@ sub parse_rev {
 
 =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.
Signature · 1 line
1.5.5.GIT