- 23 4月, 2005 4 次提交
-
-
由 Paul Mackerras 提交于
Here is a SHA1 implementation with the core written in PPC assembly. On my 2GHz G5, it does 218MB/s, compared to 135MB/s for the openssl version or 45MB/s for the mozilla version. Signed-off-by: NPaul Mackerras <paulus@samba.org> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Linus Torvalds 提交于
This one is about a million times simpler, and much more likely to be correct too. Instead of trying to match up a tree object against the index, we just read in the tree object side-by-side into the index, and just walk the resulting index file. This was what all the read-tree cleanups were all getting to.
-
由 Linus Torvalds 提交于
Next step: make "diff-cache" use it.
-
由 Linus Torvalds 提交于
This is preparation for moving parts of it into "tree.c" to be used as a library function.
-
- 22 4月, 2005 6 次提交
-
-
由 Linus Torvalds 提交于
This one includes the Mozilla SHA1 implementation sent in by Edgar Toernig. It's dual-licenced under MPL-1.1 or GPL, so in the context of git, we obviously use the GPL version. Side note: the Mozilla SHA1 implementation is about twice as fast as the default openssl one on my G5, but the default openssl one has optimized x86 assembly language on x86. So choose wisely.
-
由 Linus Torvalds 提交于
zlib and libssl. I'll start giving people choices here..
-
由 Linus Torvalds 提交于
The old revision.h helper header isn't used any more, but I never noticed it until I started grepping for ULONG_MAX users.
-
由 Linus Torvalds 提交于
We use that to specify alternative index files, which can be useful if you want to (for example) generate a temporary index file to do some specific operation that you don't want to mess with your main one with. It defaults to the regular ".git/index" if it hasn't been specified.
-
由 Linus Torvalds 提交于
This basically makes it trivial to use checkout-cache as a "export as tree" function. Just read the desired tree into the index, and do a checkout-cache --prefix=export-dir/ -a and checkout-cache will "export" the cache into the specified directory. NOTE! The final "/" is important. The exported name is literally just prefixed with the specified string, so you can also do something like checkout-cache --prefix=.merged- Makefile to check out the currently cached copy of "Makefile" into the file ".merged-Makefile".
-
由 Linus Torvalds 提交于
The rev-tree thing just happened to work. It shouldn't have.
-
- 21 4月, 2005 14 次提交
-
-
由 Junio C Hamano 提交于
Usage string fixes to make maintenance easier (only one instance of a string to update not multiple copies). I've spotted and corrected inconsistent usage text in diff-tree while doing this. Also diff-cache and read-tree usage text have been corrected to match their up-to-date features. Earlier, neither "--cached" form of diff-cache nor "-m single-merge" form of read-tree were described. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Linus Torvalds 提交于
-
由 Linus Torvalds 提交于
-
由 Linus Torvalds 提交于
The high-level helpers seem to have forgotten what to do with sha1 names.
-
由 Junio C Hamano 提交于
Updates read-tree to use read_tree_with_tree_or_commit_sha1() function. The command can take either tree or commit IDs with this patch. The change involves a slight modification of how it recurses down the tree. Earlier the caller only supplied SHA1 and the recurser read the object using it, but now it is the caller's responsibility to read the object and give it to the recurser. This matches the way recursive behaviour is done in other tree- related commands. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
Updates ls-tree.c to use read_tree_with_tree_or_commit_sha1() function. The command can take either tree or commit IDs with this patch. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
Updates diff-tree.c to use read_tree_with_tree_or_commit_sha1() function. The command can take either tree or commit IDs with this patch. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
Updates diff-cache.c to use read_tree_with_tree_or_commit_sha1() function. The end-user visible result is the same --- the command takes either tree or commit ID. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This patch implements read_tree_with_tree_or_commit_sha1(), which can be used when you are interested in reading an unpacked raw tree data but you do not know nor care if the SHA1 you obtained your user is a tree ID or a commit ID. Before this function's introduction, you would have called read_sha1_file(), examined its type, parsed it to call read_sha1_file() again if it is a commit, and verified that the resulting object is a tree. Instead, this function does that for you. It returns NULL if the given SHA1 is not either a tree or a commit. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Andre Noll 提交于
Use a generic rule for executables that depend only on the corresponding .o and on $(LIB_FILE). Signed-Off-By: NAndre Noll <maan@systemlinux.org> Signed-Off-By: NLinus Torvalds <torvalds@osdl.org>
-
由 Linus Torvalds 提交于
(Nobody should use -O3. It just makes bad inlining decisions).
-
由 Linus Torvalds 提交于
This allows us to both calculate it and verify it faster.
-
由 Linus Torvalds 提交于
No point in making 17,000 small writes when you can make just a couple of hundred nice 8kB writes instead and save a lot of time.
-
由 Linus Torvalds 提交于
Avoid the compression.
-
- 20 4月, 2005 16 次提交
-
-
由 Linus Torvalds 提交于
Happily, convert-cache just magically fixes all errors.
-
由 Linus Torvalds 提交于
And add a "convert-cache" program to convert from old-style to new-style.
-
由 Zach Welch 提交于
Factor mkdir calls into common safe_create_dir subroutine. Signed-Off-By: NZach Welch <zw@superlucidity.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Zach Welch 提交于
Normalize init-db environment variable handling, allowing the creation of object directories with something other than DEFAULT_DB_ENVIRONMENT. Signed-Off-By: NZach Welch <zw@superlucidity.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Zach Welch 提交于
Consolidate comments at top of main. Signed-Off-By: NZach Welch <zw@superlucidity.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Linus Torvalds 提交于
Sometimes it's just easier to not have to look up the "commit"->"tree" translation by hand first. It's trivial to do inside diff-tree, and it's just being polite.
-
由 Linus Torvalds 提交于
the current cache state and/or working directory. Very useful to see what has changed since the last commit, either in the index file or in the whole working directory. Also very possibly very buggy. Matching the two up is not entirely trivial.
-
由 Linus Torvalds 提交于
It's still just a guess, and the result is not a real email address anyway. If you want to, you can use COMMIT_AUTHOR_EMAIL to correct for any git guesses.
-
由 Linus Torvalds 提交于
Noted by Tony Luck.
-
由 Linus Torvalds 提交于
as a set of patches and commentary. You'd want something like this if you are tracking a git archive in another SCM format. Notably, we want something like that for BK users.
-
由 Linus Torvalds 提交于
Noted by Aaron Straus
-
由 Linus Torvalds 提交于
reading a single tree too. That should speed up a trivial merge noticeably. Also, don't bother reading back the tree we just wrote when we committed a real merge. It had better be the same one we still have..
-
由 Linus Torvalds 提交于
This one just reads one tree, but picks up any matching stat information from the old index.
-
由 Linus Torvalds 提交于
old index state if the result matches. This leaves the stat information in the result tree for any trivial merges, which is just the way we like it.
-
由 Linus Torvalds 提交于
Also exit gracefully if the HEAD pull failed, rather than use a possibly stale MERGE_HEAD.
-
由 Linus Torvalds 提交于
Yes, the "parse_commit()" already checks for this condition, but we need to check for it in rev-tree too, so that we don't start walking the parent chain unnecessarily.
-