summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-04-24Merge branch 'master' into nextLibravatar Junio C Hamano1-18/+2
* master: gitk: Let git-rev-list do the argument list parsing
2006-04-24Merge branch 'ar/chmod-series'Libravatar Junio C Hamano1-7/+16
* ar/chmod-series: make update-index --chmod work with multiple files and --stdin
2006-04-24Merge branch 'sh/daemon'Libravatar Junio C Hamano1-1/+1
* sh/daemon: socksetup: don't return on set_reuse_addr() error
2006-04-24Merge branch 'jc/cc-stat'Libravatar Junio C Hamano1-1/+2
* jc/cc-stat: Fix "git show --stat"
2006-04-24Merge branch 'jc/unresolve'Libravatar Junio C Hamano1-0/+127
* jc/unresolve: git-update-index --unresolve Add git-unresolve <paths>...
2006-04-24Merge branch 'jc/color'Libravatar Junio C Hamano2-0/+198
* jc/color: Add colordiff for git to contrib/colordiff.
2006-04-24Merge git://git.kernel.org/pub/scm/gitk/gitkLibravatar Junio C Hamano1-18/+2
* git://git.kernel.org/pub/scm/gitk/gitk: gitk: Let git-rev-list do the argument list parsing
2006-04-24Merge part of 'jc/cache-tree'Libravatar Junio C Hamano8-140/+627
2006-04-24Use cache-tree in update-index.Libravatar Junio C Hamano1-2/+21
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-23Invalidate cache-tree entries for touched paths in git-apply.Libravatar Junio C Hamano1-3/+13
This updates git-apply to maintain cache-tree information. With this and the previous write-tree patch, repeated "apply --index" followed by "write-tree" on a huge tree will hopefully become faster. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-23Update write-tree to use cache-tree.Libravatar Junio C Hamano1-125/+12
The updated write-tree reads from $GIT_DIR/index.aux to pick up subtree objects information, updates the cache-tree with the index, and updates index.aux file after writing a tree out of the index file. Until update-index and other programs that modify the index are updated to maintain index.aux file, the index.aux file written by the last write-tree will become stale immediately after they update the index, which will result in the whole tree recomputation just like the original write-tree. The idea is to convert those commands to invalidate cache-tree whenever they touch the index entries, and write updated index.aux out. After the index is updated with them, write-tree will be able to reuse the parts of the cache-tree that have not been touched. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-23Add cache-tree.Libravatar Junio C Hamano3-1/+549
The cache_tree data structure is to cache tree object names that would result from the current index file. The idea is to have an optional file to record each tree object name that corresponds to a directory path in the cache when we run write_cache(), and read it back when we run read_cache(). During various index manupulations, we selectively invalidate the parts so that the next write-tree can bypass regenerating tree objects for unchanged parts of the directory hierarchy. We could perhaps make the cache-tree data an optional part of the index file, but that would involve the index format updates, so unless we need it for performance reasons, the current plan is to use a separate file, $GIT_DIR/index.aux to store this information and link it with the index file with the checksum that is already used for index file integrity check. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-23Merge branch 'ar/chmod-series' into nextLibravatar Junio C Hamano1-7/+16
* ar/chmod-series: make update-index --chmod work with multiple files and --stdin
2006-04-23read-cache/write-cache: optionally return cache checksum SHA1.Libravatar Junio C Hamano2-9/+31
read_cache_1() and write_cache_1() takes an extra parameter *sha1 that returns the checksum of the index file when non-NULL. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-23gitk: Let git-rev-list do the argument list parsingLibravatar Paul Mackerras1-18/+2
This is a fix for a problem reported by Jim Radford where an argument list somewhere overflows on repositories with lots of tags. In fact it's now unnecessary to use git-rev-parse since git-rev-list can take all the arguments that git-rev-parse can. This is inspired by but not the same as the solutions suggested by Jim Radford and Linus Torvalds. Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-04-23make update-index --chmod work with multiple files and --stdinLibravatar Alex Riesen1-7/+16
The patch makes "--chmod=-x" and "--chmod=+x" act like "--add" and "--remove" to affect the behaviour of the command for the rest of the path parameters, not just the following one. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-22Merge branch 'jc/diff' into nextLibravatar Junio C Hamano3-6/+12
* jc/diff: Libified diff-index: backward compatibility fix.
2006-04-22Libified diff-index: backward compatibility fix.Libravatar Junio C Hamano3-6/+12
"diff-index -m" does not mean "do not ignore merges", but means "pretend missing files match the index". The previous round tried to address this, but failed because setup_revisions() ate "-m" flag before the caller had a chance to intervene. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-22Merge branch 'jc/diff' into nextLibravatar Junio C Hamano9-2138/+2107
* jc/diff: Libify diff-index. Libify diff-files.
2006-04-22Merge branch 'jc/fmt-patch' into nextLibravatar Junio C Hamano1-2/+3
* jc/fmt-patch: git-fmt-patch: thinkofix to show [PATCH] properly.
2006-04-22git-fmt-patch: thinkofix to show [PATCH] properly.Libravatar Junio C Hamano1-2/+3
Updating "subject" variable without changing the hardcoded number of bytes to memcpy from it would not help much. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-22Libify diff-index.Libravatar Junio C Hamano4-238/+231
The second installment to libify diff brothers. The pathname arguments are checked more strictly than before because we now use the revision.c::setup_revisions() infrastructure. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-22Libify diff-files.Libravatar Junio C Hamano7-1953/+1929
This is the first installment to libify diff brothers. The updated diff-files uses revision.c::setup_revisions() infrastructure to parse its command line arguments, which means the pathname arguments are checked more strictly than before. The tests are adjusted to separate possibly missing paths from the rest of arguments with double-dashes, to show the kosher way. As Linus pointed out, renaming diff.c to diff-lib.c was simply stupid, so I am renaming it back. The new diff-lib.c is to contain pieces extracted from diff brothers. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-22Merge branch 'jc/cc-stat' into nextLibravatar Junio C Hamano1-1/+2
* jc/cc-stat: Fix "git show --stat"
2006-04-21Merge branch 'jc/color' into nextLibravatar Junio C Hamano3-0/+200
* jc/color: Add colordiff for git to contrib/colordiff. Makefile: dependency for builtin-help.o
2006-04-21Fix "git show --stat"Libravatar Junio C Hamano1-1/+2
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-21Add colordiff for git to contrib/colordiff.Libravatar Junio C Hamano2-0/+198
I hacked it up to teach it the git extended diff headers, made it not to read the whole patch in the array. Also, the original program, when arguments are given, ran "diff" with the given arguments and showed the output from it. Of course, I changed it to run "git diff" ;-). Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-21Merge branch 'jc/diff'Libravatar Junio C Hamano1-9/+68
* jc/diff: diff --stat: do not drop rename information.
2006-04-21Makefile: dependency for builtin-help.oLibravatar Junio C Hamano1-0/+2
builtin-help.c wants to include common-cmds.h which is a generated file. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-21Merge branch 'jc/fmt-patch' into nextLibravatar Junio C Hamano6-342/+384
* jc/fmt-patch: Split up builtin commands into separate files from git.c git-log produces no output
2006-04-21Merge branch 'master' into jc/fmt-patchLibravatar Junio C Hamano20-369/+514
* master: Split up builtin commands into separate files from git.c git-log produces no output fix pack-object buffer size mailinfo: decode underscore used in "Q" encoding properly. Reintroduce svn pools to solve the memory leak. pack-objects: do not stop at object that is "too small" git-commit --amend: two fixes. get_tree_entry(): make it available from tree-walk sha1_name.c: no need to include diff.h; tree-walk.h will do. sha1_name.c: prepare to make get_tree_entry() reusable from others. get_sha1() shorthands for blob/tree objects pre-commit hook: complain about conflict markers. git-merge: a bit more readable user guidance. diff: move diff.c to diff-lib.c to make room. git log: don't do merge diffs by default Allow "git repack" users to specify repacking window/depth Document git-clone --reference Fix filename scaling for binary files Fix uninteresting tags in new revision parsing Conflicts: Adjusted the addition of fmt-patch to match the recent split from git.c to builtin.log.c.
2006-04-21Split up builtin commands into separate files from git.cLibravatar Linus Torvalds5-305/+342
Right now it split it into "builtin-log.c" for log-related commands ("log", "show" and "whatchanged"), and "builtin-help.c" for the informational commands (usage printing and "help" and "version"). This just makes things easier to read, I find. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-21Merge branch 'fix'Libravatar Junio C Hamano1-0/+2
* fix: git-log produces no output
2006-04-21git-log produces no outputLibravatar Linus Torvalds1-0/+2
When $PAGER is set to 'less -i', we used to fail because we assumed the $PAGER is a command and simply exec'ed it. Try exec first, and then run it through shell if it fails. This allows even funkier PAGERs like these ;-): PAGER='sed -e "s/^/`date`: /" | more' PAGER='contrib/colordiff.perl | less -RS' Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-21Merge branch 'master' into nextLibravatar Junio C Hamano3-8/+12
* master: fix pack-object buffer size mailinfo: decode underscore used in "Q" encoding properly. Reintroduce svn pools to solve the memory leak. pack-objects: do not stop at object that is "too small"
2006-04-21Merge branch 'fix'Libravatar Junio C Hamano3-8/+12
* fix: fix pack-object buffer size mailinfo: decode underscore used in "Q" encoding properly. Reintroduce svn pools to solve the memory leak. pack-objects: do not stop at object that is "too small"
2006-04-21fix pack-object buffer sizeLibravatar Nicolas Pitre1-1/+1
The input line has 40 _chars_ of sha1 and no 20 _bytes_. It should also account for the space before the pathname, and the terminating \n and \0. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-21mailinfo: decode underscore used in "Q" encoding properly.Libravatar Junio C Hamano1-5/+7
Quoted-Printable (RFC 2045) and the "Q" encoding (RFC 2047) are subtly different; the latter is used on the mail header and an underscore needs to be decoded to 0x20. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-20Reintroduce svn pools to solve the memory leak.Libravatar Santi_Béjar1-1/+3
Introduced in 4802426. Signed-off-by: Santi Béjar <sbejar@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-20pack-objects: do not stop at object that is "too small"Libravatar Junio C Hamano1-1/+1
Because we sort the delta window by name-hash and then size, hitting an object that is too small to consider as a delta base for the current object does not mean we do not have better candidate in the window beyond it. Noticed by Shawn Pearce, analyzed by Nico, Linus and me. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-20Merge branch 'jc/fmt-patch' into nextLibravatar Junio C Hamano1-1/+1
* jc/fmt-patch: rename internal format-patch wip
2006-04-20rename internal format-patch wipLibravatar Junio C Hamano1-1/+1
Otherwise "git format-patch" would invoke unfinished internal one that does only --stdout Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-20Merge branch 'master' into nextLibravatar Junio C Hamano2-7/+16
* master: git-commit --amend: two fixes.
2006-04-20Merge branch 'fix'Libravatar Junio C Hamano2-7/+16
* fix: git-commit --amend: two fixes.
2006-04-20git-commit --amend: two fixes.Libravatar Junio C Hamano2-7/+16
When running "git commit --amend" only to fix the commit log message without any content change, we mistakenly showed the git-status output that says "nothing to commit" without commenting it out. If you have already run update-index but you want to amend the top commit, "git commit --amend --only" without any paths should have worked, because --only means "starting from the base commit, update-index these paths only to prepare the index to commit, and perform the commit". However, we refused -o without paths. Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-20Stop carrying Geert's similarity estimator.Libravatar Junio C Hamano0-0/+0
I tried the code with pack-objects.c::try_delta(), and was somewhat dissapointed. The current type-path based heuristics already limits the delta attempts to similar objects anyway, so it is not a good place to apply it. The Net never forgets, so we can resurrect it if we wanted to later.
2006-04-19Merge branch 'jc/unresolve' into nextLibravatar Junio C Hamano4-149/+128
* jc/unresolve: git-update-index --unresolve
2006-04-19git-update-index --unresolveLibravatar Junio C Hamano4-149/+128
Retire git-unresolve and make it into "git-update-index --unresolve". It processes all paths that follow. During a merge, you would mark a path that is dealt with with: $ git update-index hello and you would "undo" it with: $ git update-index --unresolve hello Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-04-19Merge branch 'jc/diff' into nextLibravatar Junio C Hamano1-9/+68
* jc/diff: diff --stat: do not drop rename information.
2006-04-19diff --stat: do not drop rename information.Libravatar Junio C Hamano1-9/+68
When a verbatim rename or copy is detected, we did not show anything on the "diff --stat" for the filepair. This makes it to show the rename information. Signed-off-by: Junio C Hamano <junkio@cox.net>