diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-02-05 11:52:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-02-08 00:04:42 +0100 |
commit | cf7b1cad0e8b024538de975dff5893262cec72d7 (patch) | |
tree | 4ac11b578ff4242c78970a48e0d2b2cdf000011f /commit.c | |
parent | diff: support --cached on unborn branches (diff) | |
download | git-cf7b1cad0e8b024538de975dff5893262cec72d7.tar.xz git-cf7b1cad0e8b024538de975dff5893262cec72d7.zip |
Add const to parse_{commit,tag}_buffer()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -245,10 +245,10 @@ int unregister_shallow(const unsigned char *sha1) return 0; } -int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size) +int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size) { - char *tail = buffer; - char *bufptr = buffer; + const char *tail = buffer; + const char *bufptr = buffer; unsigned char parent[20]; struct commit_list **pptr; struct commit_graft *graft; |