diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-22 07:55:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-22 10:10:27 -0800 |
commit | 3bb7256281bb1d291bb705a57dc3f30b26b7c127 (patch) | |
tree | 7d0fb7bf88cabcd5c7b17a0f687f359737c6ce2d /pack-write.c | |
parent | 377d0276ca7446ce9fb2f6987b1e6b4ba9e7cf29 (diff) | |
download | git-3bb7256281bb1d291bb705a57dc3f30b26b7c127.tar.gz |
make "index-pack" a built-in
This required some fairly trivial packfile function 'const' cleanup,
since the builtin commands get a const char *argv[] array.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-write.c')
-rw-r--r-- | pack-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pack-write.c b/pack-write.c index 741efcd93b..9f47cf9961 100644 --- a/pack-write.c +++ b/pack-write.c @@ -17,8 +17,8 @@ static int sha1_compare(const void *_a, const void *_b) * the SHA1 hash of sorted object names. The objects array passed in * will be sorted by SHA1 on exit. */ -char *write_idx_file(char *index_name, struct pack_idx_entry **objects, - int nr_objects, unsigned char *sha1) +const char *write_idx_file(const char *index_name, struct pack_idx_entry **objects, + int nr_objects, unsigned char *sha1) { struct sha1file *f; struct pack_idx_entry **sorted_by_sha, **list, **last; |