Subject: Re: [PATCH 4/6] Rename get_mode() to decode_tree_mode() and export it

From: Jonathan Nieder <[email-masked]>
Date: Mon, 4 Oct 2010 21:23:08 -0500

Tomas Carnecky wrote:

> Other sources (fast-import-helper.c) may want to use this function
> to parse trees.

Sounds like a reasonable idea, but you've left out what the function
does.

So:

 get_mode() parses an octal "100644 " string as might
 appear in a tree object.  Returns a pointer to the first
 character after the mode string, or NULL on error.