Re: [PATCH 4/6] Rename get_mode() to decode_tree_mode() and export it
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 5, 2010, 02:23 UTC
- Message-ID
- <20101005022308.GD10818@burratino>
- In-Reply-To
- <1286108511-55876-4-git-send-email-tom@dbservice.com>
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.