summaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-09-10 00:14:50 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-09-10 00:14:50 -0700
commit6972ab7ae10a205bbc05b98408a36403915a9c39 (patch)
tree755ab51db764a7d35e9546eb30a5d4440291b014 /convert.c
parentMerge branch 'sp/maint-no-thin' (diff)
parentarchive - leakfix for format_subst() (diff)
downloadtgif-6972ab7ae10a205bbc05b98408a36403915a9c39.tar.xz
Merge branch 'rs/archive'
* rs/archive: archive - leakfix for format_subst() Define NO_MEMMEM on Darwin as it lacks the function archive: rename attribute specfile to export-subst archive: specfile syntax change: "$Format:%PLCHLDR$" instead of just "%PLCHLDR" (take 2) add memmem() Remove unused function convert_sha1_file() archive: specfile support (--pretty=format: in archive files) Export format_commit_message()
Diffstat (limited to 'convert.c')
-rw-r--r--convert.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/convert.c b/convert.c
index 21908b1039..d77c8eb8b2 100644
--- a/convert.c
+++ b/convert.c
@@ -687,18 +687,3 @@ char *convert_to_working_tree(const char *path, const char *src, unsigned long *
return buf;
}
-
-void *convert_sha1_file(const char *path, const unsigned char *sha1,
- unsigned int mode, enum object_type *type,
- unsigned long *size)
-{
- void *buffer = read_sha1_file(sha1, type, size);
- if (S_ISREG(mode) && buffer) {
- void *converted = convert_to_working_tree(path, buffer, size);
- if (converted) {
- free(buffer);
- buffer = converted;
- }
- }
- return buffer;
-}