summaryrefslogtreecommitdiff
path: root/convert-cache.c
Commit message (Collapse)AuthorAgeFilesLines
* Big tool rename.Junio C Hamano2005-09-071-326/+0
| | | | | | | | | | | | | | | | | | | As promised, this is the "big tool rename" patch. The primary differences since 0.99.6 are: (1) git-*-script are no more. The commands installed do not have any such suffix so users do not have to remember if something is implemented as a shell script or not. (2) Many command names with 'cache' in them are renamed with 'index' if that is what they mean. There are backward compatibility symblic links so that you and Porcelains can keep using the old names, but the backward compatibility support is expected to be removed in the near future. Signed-off-by: Junio C Hamano <junkio@cox.net>
* A bit more format warning squelching.Junio C Hamano2005-08-091-2/+2
| | | | | | | | Inspired by patch from Timo Sirainen. Most of them are not strictly necessary but making warnings less chatty would help spot real bugs later. Signed-off-by: Junio C Hamano <junkio@cox.net>
* git-convert-cache: fix up mode conversionLinus Torvalds2005-07-271-30/+15
| | | | | | | | | | | | 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>
* git-convert-cache: fix up file modes in trees tooLinus Torvalds2005-07-161-0/+29
| | | | | | | | git-fsck-cache complains about some of the odder ones, and is quiet about the old (S_IFREG | 664) case, but that's wrong too. Converting the kernel tree is too painful right now, but at least we know how to do it if we ever want to.
* [PATCH] cleanup of in-code namesAlexey Nezhdanov2005-05-191-1/+1
| | | | | | | Fixes all in-code names that leaved during "big name change". Signed-off-by: Alexey Nezhdanov <snake@penza-gsm.ru> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] Fix warning in convert-cachetony.luck@intel.com2005-05-021-1/+1
| | | | | | | | | gcc 3.4.3 kicks out this warning: convert-cache.c: In function `write_subdirectory': convert-cache.c:102: warning: field precision is not type int (arg 4) Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Add "get_sha1()" helper function.Linus Torvalds2005-05-011-1/+1
| | | | | | | | | | | | This allows the programs to use various simplified versions of the SHA1 names, eg just say "HEAD" for the SHA1 pointed to by the .git/HEAD file etc. For example, this commit has been done with git-commit-tree $(git-write-tree) -p HEAD instead of the traditional "$(cat .git/HEAD)" syntax.
* [PATCH] introduce xmalloc and xreallocChristopher Li2005-04-261-6/+5
| | | | | | | | Introduce xmalloc and xrealloc to die gracefully with a descriptive message when out of memory, rather than taking a SIGSEGV. Signed-off-by: Christopher Li<chrislgit@chrisli.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Simplify "write_sha1_file()" interfacesLinus Torvalds2005-04-251-36/+12
| | | | | The write function now adds the header to the file by itself, so there is no reason to duplicate it among all the users any more.
* Update "convert-cache" to handle git itself.Linus Torvalds2005-04-241-2/+1
| | | | | | The git archives have some old-date-format commits with timezones that the converter didn't recognize. Also, make it be quiet about already-converted dates.
* Make a hack to convert-cache for missing author dates in oldLinus Torvalds2005-04-231-0/+7
| | | | | | | archives (notably the old sparse one). Very hacky. But hopefully we can do the conversion once, and never worry about this ever again.
* Make "convert-cache" able to handle the really old archive formatsLinus Torvalds2005-04-231-13/+206
| | | | | | This includes the old-style "flat tree" object, and the old broken date format. Well, enough of the date format to convert the sparse archive, at least.
* Do SHA1 hash _before_ compression.conversionLinus Torvalds2005-04-201-0/+138
And add a "convert-cache" program to convert from old-style to new-style.