From mboxrd@z Thu Jan 1 00:00:00 1970 From: mhagger@alum.mit.edu Subject: [PATCH v2 07/14] parse_ref_line(): add docstring Date: Mon, 17 Oct 2011 09:39:16 +0200 Message-ID: <1318837163-27112-8-git-send-email-mhagger@alum.mit.edu> References: <1318837163-27112-1-git-send-email-mhagger@alum.mit.edu> Cc: git@vger.kernel.org, Jeff King , Drew Northup , Jakub Narebski , Heiko Voigt , Johan Herland , Julian Phillips , Michael Haggerty To: Junio C Hamano X-From: git-owner@vger.kernel.org Mon Oct 17 09:40:16 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFhnz-0007sw-HA for gcvg-git-2@lo.gmane.org; Mon, 17 Oct 2011 09:40:15 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755004Ab1JQHkB (ORCPT ); Mon, 17 Oct 2011 03:40:01 -0400 Received: from mail.berlin.jpk.com ([212.222.128.130]:33566 "EHLO mail.berlin.jpk.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752728Ab1JQHji (ORCPT ); Mon, 17 Oct 2011 03:39:38 -0400 Received: from michael.berlin.jpk.com ([192.168.100.152]) by mail.berlin.jpk.com with esmtp (Exim 4.50) id 1RFhha-0000eM-0F; Mon, 17 Oct 2011 09:33:38 +0200 X-Mailer: git-send-email 1.7.7.rc2 In-Reply-To: <1318837163-27112-1-git-send-email-mhagger@alum.mit.edu> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: From: Michael Haggerty Signed-off-by: Michael Haggerty --- refs.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/refs.c b/refs.c index 597800a..af34c3b 100644 --- a/refs.c +++ b/refs.c @@ -21,6 +21,11 @@ struct ref_array { struct ref_entry **refs; }; +/* + * Parse one line from a packed-refs file. Write the SHA1 to sha1. + * Return a pointer to the refname within the line (null-terminated), + * or NULL if there was a problem. + */ static const char *parse_ref_line(char *line, unsigned char *sha1) { /* -- 1.7.7.rc2