author | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 27 Jul 2005 22:29:38 +0000 (15:29 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Jul 2005 01:57:13 +0000 (18:57 -0700) | ||
commit | 4e81304afc529c0caca7c012a155be4e342b52d4 | |
tree | e42d5c6b393dcd7e695e56c3bf15bb3314445553 | tree | snapshot |
parent | de2eb7f694da6396828e52588c9807a948a039a0 | commit | diff |
git-convert-cache: fix up mode conversion
The old mode conversion was not only complex, it also refused to change
the length of a mode, which made it fragile. By moving the mode
conversion around a bit, we can not only simplify it, it also ends up
being more powerful.
Also fix a memory leak that made it impossible to convert huge archives
without tons and tons of memory.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
The old mode conversion was not only complex, it also refused to change
the length of a mode, which made it fragile. By moving the mode
conversion around a bit, we can not only simplify it, it also ends up
being more powerful.
Also fix a memory leak that made it impossible to convert huge archives
without tons and tons of memory.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
convert-cache.c | diff | blob | history |