- 21 4月, 2005 4 次提交
-
-
由 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.
-
- 19 4月, 2005 20 次提交
-
-
由 James Bottomley 提交于
Doing the latest SCSI merge exposed two bugs in your merge script: 1) It doesn't like a completely new directory (the misc tree contains a new drivers/scsi/lpfc) 2) the merge testing logic is wrong. You only want to exit 1 if the merge fails.
-
由 Greg KH 提交于
Here's a small patch to commit-tree.c that does two things: - allows the committer email address and name to be overridden by environment variables (if you don't like the environment variable names I've used (COMMIT_AUTHOR_NAME, COMMIT_AUTHOR_EMAIL), feel free to change them.) - provide the proper domainname to the author/committer email address (otherwise, my address was only showing up as from the hostname.) This allows people to set sane values for the commit names and email addresses, preventing odd, private hostnames and domains from being exposed to the world. Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Linus Torvalds 提交于
This got lost when I updated to Daniel's new object model.
-
由 Junio C Hamano 提交于
Patch 1/6 in the series has already cleaned the interface to call sq_expand(), but the comment before that function still carries the stale interface warning. Remove it. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This adds -R option to obtain reverse diff. It may be useful in the merge workflow. After the base of the working directory is merged and commited, in the working directory: $ read-tree <tree-id-of-merged-tree> $ show-diff -R to re-validate if upstream changes make sense, and/or revert or conflict with local changes you have in the working files. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This makes the diff output formatting options customizable via the environment variables. The default is still the Linux kernel style. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This patch adjusts the default output format of show-diff to match the Linux kernel style, recommended in Documentation/SubmittingPatches. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This patch removes the custom diff generation code from the show_diff_empty() function. Instead, just use show_differences(). This reduces the code size; but more importantly, it is needed for the later patch to give diff options. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This patch fixes show-diff to detect unreadable blob and warn instead of going ahead and crashing. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Junio C Hamano 提交于
This patch fixes sq_expand() and show_differences() not to use and hold onto its privately allocated buffer, which was a misguided attempt to reduce calls to malloc but made later changes harder. Signed-off-by: NJunio C Hamano <junkio@cox.net> Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
-
由 Linus Torvalds 提交于
out index is all ready to go after a pull. Noted by Russell King
-
由 Linus Torvalds 提交于
instead of a checked-out temporary copy. If merging requires a checked-out-copy, we now do so with "unpack-file".
-
由 Linus Torvalds 提交于
-
由 Linus Torvalds 提交于
Yeah, my Makefiles are always a total disaster. Better this than autotools or some horror like that, though.
-
由 Linus Torvalds 提交于
Do the usage and error reporting in "usage.c", and the sha1 file accesses in "sha1_file.c". Small, nice, easily separated parts. Good.
-
由 Linus Torvalds 提交于
This introduces the concept of git "library" objects that the real programs use, and makes it easier to add such things to a "libgit.a". This will also make it trivial to split the current "read-cache.o" into more aptly named pieces (it does a lot more than just read the index file).
-
由 Linus Torvalds 提交于
They sure as hell aren't perfect, but they allow you to do: ./git-pull-script {other-git-directory} to do the initial merge, and if that had content clashes, you do merge-cache ./git-merge-one-file-script -a which tries to auto-merge. When/if the auto-merge fails, it will leave the last file in your working directory, and you can edit it and then when you're happy you can do "update-cache filename" on it. Re-do the merge-cache thing until there are no files left to be merged, and now you can write the tree and commit: write-tree commit-tree .... -p $(cat .git/HEAD) -p $(cat .git/MERGE_HEAD) and you're done.
-
由 Linus Torvalds 提交于
This was a real git merge with conflicts. I'll commit the scripts I used to do the merge next. Not pretty, but it's half-way functional.
-
由 James Bottomley 提交于
I noticed this when I tried a non-trivial scsi merge and checked the results against BK. The problem is that remove_entry_at() actually decrements active_nr, so decrementing it in add_cache_entry() before calling remove_entry_at() is a double decrement (hence we lose cache entries at the end).
-