{"thread":{"id":"13756","subject":"[PATCH] Git.pm: fix documentation of hash_object","startedAt":"2008-06-01T20:26:25Z","lastAt":"2008-06-01T20:26:25Z","messageCount":1,"participants":["Lea Wiemann"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"78305","messageId":"1212351985-11682-1-git-send-email-LeWiemann@gmail.com","threadId":"13756","inReplyTo":null,"subject":"[PATCH] Git.pm: fix documentation of hash_object","fromName":"Lea Wiemann","fromEmail":"lewiemann@gmail.com","sentAt":"2008-06-01T20:26:25Z","receivedAt":"2008-06-01T20:26:25Z","isPatch":true,"sender":{"key":"lewiemann@gmail.com","avatar":null},"body":"The documentation of hash_object incorrectly states that it accepts a\nfile handle -- in fact it doesn't, and there is even a TODO comment\nfor this.  This fixes the documentation.\n\nSigned-off-by: Lea Wiemann <LeWiemann@gmail.com>\n---\nThis should be implemented eventually, but in the meantime let's just\ncorrect the documentation.\n\n perl/Git.pm |    5 ++---\n 1 files changed, 2 insertions(+), 3 deletions(-)\n\ndiff --git a/perl/Git.pm b/perl/Git.pm\nindex 80f7669..07b92c7 100644\n--- a/perl/Git.pm\n+++ b/perl/Git.pm\n@@ -760,9 +760,8 @@ sub parse_rev {\n \n =item hash_object ( TYPE, FILENAME )\n \n-Compute the SHA1 object id of the given C<FILENAME> (or data waiting in\n-C<FILEHANDLE>) considering it is of the C<TYPE> object type (C<blob>,\n-C<commit>, C<tree>).\n+Compute the SHA1 object id of the given C<FILENAME> considering it is\n+of the C<TYPE> object type (C<blob>, C<commit>, C<tree>).\n \n The method can be called without any instance or on a specified Git repository,\n it makes zero difference.\n-- \n1.5.5.GIT\n"}]}