summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GIT 0.99.9m aka 1.0rc5v1.0rc5v0.99.9mJunio C Hamano2005-12-1289-1259/+2611
|\ | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * t/t6022: a new test for renaming merge.Junio C Hamano2005-12-111-0/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a couple of tests to cover the following renaming merge cases: - one side renames and the other side does not, with and without content conflicts. - both side rename to the same path, with and without content conflicts. The test setup also prepares a case in which both side rename to different destination, but currently the code collapses these destination paths and removes the original path, which may be wrong. The outcome of this case is not checked by the tests in this round. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * merge-recursive: cleanup setIndexStagesJunio C Hamano2005-12-111-12/+5
| | | | | | | | | | | | | | | | | | Fredrik points out there is a useful wrapper runProgram() used everywhere that we can use to feed input into subprocess. Use it to catch errors from the subprocess; it is a good cleanup as well. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * merge-recursive: leave unmerged entries in the index.Junio C Hamano2005-12-111-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does two things. - When one branch renamed and the other branch did not, the resulting half-merged file in the working tree used to swap branches around and showed as if renaming side was "ours". This was confusing and inconsistent (even though the conflict markers were marked with branch names, it was not a good enough excuse). This changes the order of arguments to mergeFile in such a case to make sure we always see "our" change between <<< and ===, and "their" change between === and >>>. - When both branches renamed to the same path, and when one branch renamed and the other branch did not, we attempt mergeFile. When this automerge conflicted, we used to collapse the index. Now we use update-index --index-info to inject higher stage entries to leave the index in unmerged state for these two cases. What this still does _not_ do is to inject unmerged state into the index when the structural changes conflict. I have not thought things through what to do in each case yet, but the cases this commit cover are the most common ones, so this would be a good start. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * format-patch: use same number of digits in numbersJunio C Hamano2005-12-111-4/+10
| | | | | | | | | | | | | | This would help sorting by subject in MUA work saner even though MUA is too dumb to attempt sorting numbered subjects sanely. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * t0000: catch trivial pilot errors.Junio C Hamano2005-12-112-2/+36
| | | | | | | | | | | | | | | | People seem to be getting test failure from t6021 not becuase git is faulty but because they forgot to install "merge". Check this and other trivial pilot errors in the first test. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * t3300: funny name testJunio C Hamano2005-12-111-14/+14
| | | | | | | | | | | | Add double quote character to the test pattern. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Allow saving an object from a pipeDaniel Barkalow2005-12-114-3/+52
| | | | | | | | | | | | | | | | In order to support getting data into git with scripts, this adds a --stdin option to git-hash-object, which will make it read from stdin. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * archimport: fix a in new changeset applyer additionEric Wong2005-12-111-5/+1
| | | | | | | | | | | | | | | | | | | | Fix a stupid bug I introduced when splitting the accurate and fast changeset appliers. Also, remove an old debugging statement I added Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: Fix a bug I introduced in the new log parserEric Wong2005-12-111-2/+2
| | | | | | | | | | | | | | | | This fixes the case (that worked originally in Martin's version) where the only new/modified files are Arch control files. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: Add the accurate changeset applyerEric Wong2005-12-111-28/+171
| | | | | | | | | | | | | | | | And make it the default. This includes stats tracking to verbose mode Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: safer log file parsingEric Wong2005-12-111-98/+111
| | | | | | | | | | | | | | | | | | | | | | | | Better logfile parsing, no longer confused by 'headers' after the first blank line. Re-enabled tag-reading with abrowse (baz and tla compatible) Remove need to quote args to external processes Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: add -D <depth> and -a switchEric Wong2005-12-111-90/+135
| | | | | | | | | | | | | | | | | | | | add -D <depth> option to abrowse add -a switch to attempt to auto-register archives at mirrors.sourcecontrol.net (ML: Also removes some std libraries no longer in use) Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: remove git wrapper dependencyEric Wong2005-12-111-1/+1
| | | | | | | | | | | | | | | | | | use git-diff-files instead of git diff-files so we don't rely on the wrapper being installed (some people may have git as GNU interactive tools :) Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: fix -t tmpdir switchEric Wong2005-12-111-3/+2
| | | | | | | | | | | | | | | | set TMPDIR env correctly if -t <tmpdir> is passed from the command-line. setting TMPDIR => 1 as an argument to tempdir() has no effect otherwise Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: remove String::ShellQuote dependency.Eric Wong2005-12-111-23/+28
| | | | | | | | | | | | | | | | | | | | use safe_pipe_capture() or system() over backticks where shellquoting may have been necessary. More changes planned, so I'm not touching the parts I'm planning on replacing entirely. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * archimport: first, make sure it still compilesEric Wong2005-12-111-0/+16
| | | | | | | | | | | | | | (ML: And introduce safe_pipe_capture()) Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
| * Link Everyday GIT to main documentation tree.Junio C Hamano2005-12-102-10/+11
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Everyday GIT with 20 commandsJunio C Hamano2005-12-102-0/+139
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Use GIT_EXEC_PATH explicitly for initial git-init-db in tests.Junio C Hamano2005-12-101-3/+2
| | | | | | | | | | | | | | | | This is just a belts-and-suspenders check, but makes sure we have both "git" and "git-init-db" built, executable, and checking. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * use "git init-db" in testsAlex Riesen2005-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is to catch an error where tests are run without first building what are being tested. Relying on prefixing $PATH with the build directory and expect that the PATH mechanism would find what we just built would silently run an already installed binaries from the PATH. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * git-prune: never lose objects reachable from our refs.Junio C Hamano2005-12-092-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Explicit <head> arguments to git-prune replaces, instead of extends, the list of heads used for reachability analysis by fsck-objects. By giving a subset of heads by mistake, objects reachable only from other heads can be removed, resulting in a corrupted repository. This commit stops replacing the list of heads, and makes the command line arguments to add to them instead for safety. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * qsort(): ptrdiff_t may be larger than intJunio C Hamano2005-12-091-1/+6
| | | | | | | | | | | | | | | | | | This is a companion patch to e23eff8be92a2a2cb66b53deef020063cff285ed commit. The same logic, the same rationale that a comparison function that returns an int should not just compute a ptrdiff_t and return it. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation: git-pruneJunio C Hamano2005-12-091-1/+29
| | | | | | | | | | | | | | | | | | Not replacing but always including our own refs may be more desirable (and unarguably much safer), but at the same time I have a suspicion that that might be forbidding a useful usage I haven't thought of, so... Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-read-tree.txt: Add --reset to SYNOPSIS.Nikolai Weibull2005-12-091-1/+1
| | | | | | | | | | Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-tag.txt: Fix the order of sections (DESCRIPTION should ↵Nikolai Weibull2005-12-091-20/+20
| | | | | | | | | | | | | | come before OPTIONS). Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-update-server-info.txt: Add -f alias for --force to ↵Nikolai Weibull2005-12-091-1/+1
| | | | | | | | | | | | | | documentation. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-http-fetch.txt: Document the commit-id argument.Nikolai Weibull2005-12-091-0/+6
| | | | | | | | | | Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-repack.txt: Add -l and -n.Nikolai Weibull2005-12-091-1/+8
| | | | | | | | | | | | | | This adds documentation for the -l and -n options to git-repack. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-ls-remote.txt: Add -h and -t.Nikolai Weibull2005-12-091-1/+1
| | | | | | | | | | | | | | -h and -t are aliases for --heads and --tags to git-ls-remote. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-format-patch.txt: Add --signoff, --check, and long ↵Nikolai Weibull2005-12-091-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | option-names. The documentation was lacking descriptions for the --signoff and --check options to git-format-patch. It was also missing the following long option-names: --output-directory (-o), --numbered (-n), --keep-subject (-k), --author (-a), --date (-d), and --mbox (-m). Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Add documentation for the --topo-order option to git-show-branch.Nikolai Weibull2005-12-092-2/+8
| | | | | | | | | | Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Add documentation for git-revert and git-cherry-pick.Nikolai Weibull2005-12-093-4/+4
| | | | | | | | | | | | | | | | | | | | * Added the -e option to the documentation of git-cherry-pick. * Added the -e and --no-commit option to git-revert. * Removed redundant case expression for -n as --no-edit (already taken by --no-commit). Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-cherry-pick: Add --replay and --no-commit.Nikolai Weibull2005-12-091-2/+2
| | | | | | | | | | Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-cvsimport.txt: Fix a slight glitch in description heading.Nikolai Weibull2005-12-091-1/+1
| | | | | | | | | | Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-verify-pack.txt: added documentation for --.Nikolai Weibull2005-12-091-1/+3
| | | | | | | | | | | | | | The -- option has been added to the documentation of git-verify-pack. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation/git-commit.txt: Add long options and -- to documentation.Nikolai Weibull2005-12-091-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the following long options to documentation: * --all * --signoff * --verify * --no-verify * --edit Also added documentation for the -- option for terminating option parsing. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Use uniform description for the '--' option.Nikolai Weibull2005-12-091-1/+1
| | | | | | | | | | | | | | | | All descriptions of the '--' option were the same except for that in Documentation/git-merge-index.txt. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Fix the description of --utf8 and --keep to git-am.Nikolai Weibull2005-12-091-1/+1
| | | | | | | | | | | | | | | | The git-am script actually transform --utf8 and --keep to -u and -k when sent to git-mailinfo. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Document the --non-empty command-line option to git-pack-objects.Nikolai Weibull2005-12-092-2/+6
| | | | | | | | | | | | | | | | This provides (minimal) documentation for the --non-empty command-line option to the pack-objects command. Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * show-branch: comment typoJunio C Hamano2005-12-081-1/+1
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation: recursive is the default strategy these days.Junio C Hamano2005-12-083-7/+7
| | | | | | | | | | | | We still said resolve was the default in handful places. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Make sure we use compat/subprocess.py with Python 2.3 while running tests.Junio C Hamano2005-12-081-1/+12
| | | | | | | | | | | | Otherwise the test will not succeed without installing. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Clean up file descriptors when calling hooks.Daniel Barkalow2005-12-083-3/+17
| | | | | | | | | | | | | | | | When calling post-update hook, don't leave stdin and stdout connected to the pushing connection. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * refs.c: make sure leading directories exist before writing a ref.Junio C Hamano2005-12-081-0/+4
| | | | | | | | | | | | | | Otherwise cloning a repository with hierarchical branch/tag over http would fail. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation(tutorial): adjust merge example to the new merge world order.Junio C Hamano2005-12-081-11/+12
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation(cvs-migration): minor cleanups.Junio C Hamano2005-12-081-1/+2
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation(glossary): minor formatting clean-ups.Junio C Hamano2005-12-082-7/+6
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Documentation: git.html/git.7Junio C Hamano2005-12-082-87/+104
| | | | | | | | | | | | | | | | | | Finish each sentence with a full stop. Instead of saying 'directory index' 'directory cache' etc, consistently say 'index'. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * Merge http://www.kernel.org/pub/scm/gitk/gitkJunio C Hamano2005-12-071-67/+469
| |\