summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Let merge set the default strategy.Mark Hollomon2006-03-151-7/+3
| | | | | | | | | | If the user does not set a merge strategy for git-pull, let git-merge calculate a default strategy. [jc: with minor stylistic tweaks] Signed-off-by: Mark Hollomon <markhollomon@comcast.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
* Fix broken slot reuse when fetching alternatesNick Hengeveld2006-03-151-0/+4
| | | | | | | | | | When fetching alternates, http-fetch may reuse the slot to fetch non-http alternates if http-alternates does not exist. When doing so, it now needs to update the slot's finished status so run_active_slot waits for the non-http alternates request to finish. Signed-off-by: Nick Hengeveld <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
* Merge branch 'jc/pack'Junio C Hamano2006-03-132-28/+30
|\ | | | | | | | | | | * jc/pack: pack-objects: simplify "thin" pack. verify-pack -v: show delta-chain histogram.
| * pack-objects: simplify "thin" pack.Junio C Hamano2006-03-061-27/+11
| | | | | | | | | | | | | | | | | | | | There was a misguided logic to overly prefer using objects that we are not going to pack as the base object. This was unnecessary. It does not matter to the unpacking side where the base object is -- it matters more to make the resulting delta smaller. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * verify-pack -v: show delta-chain histogram.Junio C Hamano2006-03-051-1/+19
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Merge branch 'jc/fsck'Junio C Hamano2006-03-132-26/+9
|\ \ | | | | | | | | | | | | * jc/fsck: fsck-objects: Remove --standalone
| * | fsck-objects: Remove --standaloneJunio C Hamano2006-03-092-26/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fsck-objects command (back then it was called fsck-cache) used to complain if objects referred to by files in .git/refs/ or objects stored in files under .git/objects/??/ were not found as stand-alone SHA1 files (i.e. found in alternate object pools or packed archives stored under .git/objects/pack). Back then, packs and alternates were new curiosity and having everything as loose objects were the norm. When we adjusted the behaviour of fsck-cache to consider objects found in packs are OK, we introduced the --standalone flag as a backward compatibility measure. It still correctly checks if your repository is complete and consists only of loose objects, so in that sense it is doing the "right" thing, but checking that is pointless these days. This commit removes --standalone flag. See also: 23676d407c63a6f67f8ce3ff192199bda03e6a03 8a498a05c3c6b2f53db669b24f36257ab213eb4c Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | Merge branch 'nh/http'Junio C Hamano2006-03-133-264/+796
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nh/http: http-push: cleanup http-push: support for updating remote info/refs http-push: improve remote lock management http-push: refactor remote file/directory processing HTTP slot reuse fixes http-push: fix revision walk
| * | | http-push: cleanupNick Hengeveld2006-03-101-24/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More consistent usage string, condense push output, remove extra slashes in URLs, fix unused variables, include HTTP method name in failure messages. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | http-push: support for updating remote info/refsNick Hengeveld2006-03-101-11/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If info/refs exists on the remote, get a lock on info/refs, make sure that there is a local copy of the object referenced in each remote ref (in case someone else added a tag we don't have locally), do all the refspec updates, and generate and send an updated info/refs file. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | http-push: improve remote lock managementNick Hengeveld2006-03-101-73/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Associate the remote locks with the remote repo, add a function to check and refresh all current locks. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | http-push: refactor remote file/directory processingNick Hengeveld2006-03-101-137/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace single-use functions with one that can get a list of remote collections and pass file/directory information to user-defined functions for processing. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | HTTP slot reuse fixesNick Hengeveld2006-03-103-20/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incorporate into http-push a fix related to accessing slot results after the slot was reused, and fix a case in run_active_slot where a finished slot wasn't detected if the slot was reused. Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | http-push: fix revision walkNick Hengeveld2006-03-101-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The revision walk was not including tags because setup_revisions zeroes out the revs flags. Pass --objects so it picks up all the necessary bits. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | | Merge branch 'fk/blame'Junio C Hamano2006-03-136-99/+318
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fk/blame: blame: Rename detection (take 2) rev-lib: Make it easy to do rename tracking (take 2) Make it possible to not clobber object.util in sort_in_topological_order (take 2)
| * | | | blame: Rename detection (take 2)Fredrik Kuivinen2006-03-101-40/+199
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | | rev-lib: Make it easy to do rename tracking (take 2)Fredrik Kuivinen2006-03-103-47/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prune_fn in the rev_info structure is called in place of try_to_simplify_commit. This makes it possible to do rename tracking with a custom try_to_simplify_commit-like function. This commit also introduces init_revisions which initialises the rev_info structure with default values. Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
| * | | | Make it possible to not clobber object.util in sort_in_topological_order ↵Fredrik Kuivinen2006-03-102-12/+44
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | (take 2) Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | | annotate-tests: override VISUAL when running tests.Mark Wooding2006-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests hang for me waiting for Emacs with its output directed somewhere strage, because I hedged my bets and set both EDITOR and VISUAL to run Emacs. Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | | imap-send: Add missing #include for macosxJohannes Schindelin2006-03-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a compile error without that. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | | git-diff: -p disables rename detection.Junio C Hamano2006-03-111-2/+2
| | | |
* | | | imap-send: cleanup execl() call to use NULL sentinel instead of 0Marco Roeland2006-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some versions of gcc check that calls to the exec() family have the proper sentinel for variadic calls. This should be (char *) NULL according to the man page. Although for all other purposes the 0 is equivalent, gcc nevertheless does emit a warning for 0 and not for NULL. This also makes the usage consistent throughout git. The whitespace in function calls throughout imap-send.c has its own style, so I left it that way. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | | annotate.perl triggers rpm bugsean2006-03-111-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPM, at least on Fedora boxes, automatically creates a dependency for any perl "use" lines, and one of the help text lines unfortunately begins like this: -S, --rev-file revs-file use revs from revs-file instead of calling git-rev-list RPM gets confused and creates a false dependecy for the nonexistent perl package "revs". Obviously this creates a problem when someone goes to install the git-core rpm. Since other help sentences all start with capital letter, make this one match them by upcasing "Use". As a side effect, RPM stops getting confused. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | Add git-imap-send, derived from isync 1.0.1.Mike McCormack2006-03-103-1/+1362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git-imap-send drops a patch series generated by git-format-patch into an IMAP folder. This allows patch submitters to send patches through their own mail program. git-imap-send uses the following values from the GIT repository configuration: The target IMAP folder: [imap] Folder = "INBOX.Drafts" A command to open an ssh tunnel to the imap mail server. [imap] Tunnel = "ssh -q user@imap.server.com /usr/bin/imapd ./Maildir 2> /dev/null" [imap] Host = imap.server.com User = bob Password = pwd Port = 143
* | | repack: prune loose objects when -d is givenJunio C Hamano2006-03-101-0/+1
| | | | | | | | | | | | | | | | | | | | | [jc: the request originally came from Martin Atukunda, which was improved further by Alex Riesen] Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | try_to_simplify_commit(): do not skip inspecting tree change at boundary.Junio C Hamano2006-03-101-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When git-rev-list (and git-log) collapsed ancestry chain to commits that touch specified paths, we failed to inspect and notice tree changes when we are about to hit uninteresting parent. This resulted in "git rev-list since.. -- file" to always show the child commit after the lower bound, even if it does not touch the file. This commit fixes it. Thanks for Catalin for reporting this. See also: 461cf59f8924f174d7a0dcc3d77f576d93ed29a4 Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | Fix t1200 test for breakage caused by removal of full-stop at the end of ↵Junio C Hamano2006-03-091-1/+1
| | | | | | | | | | | | | | | | | | fast-forward message. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | Describe how to add extra mail header lines in mail generated by ↵Mike McCormack2006-03-091-0/+9
| | | | | | | | | | | | git-format-patch.
* | | Document the --attach flag.Mike McCormack2006-03-091-1/+4
| | |
* | | allow double click on current HEAD id after git-pullOlaf Hering2006-03-092-2/+2
|/ / | | | | | | | | | | | | | | | | Double click on to current HEAD commit id is not possible, the dot has to go. [jc: by popular requests.] Signed-off-by: Junio C Hamano <junkio@cox.net>
* | refs.c::do_for_each_ref(): Finish error message lines with "\n"Junio C Hamano2006-03-091-3/+3
| | | | | | | | | | | | | | | | | | We used fprintf() to show an error message without terminating it with LF; use error() for that. cf. c401cb48e77459a4ccad76888ad31bef252facc5 Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Nicer output from 'git'Fredrik Kuivinen2006-03-095-18/+96
| | | | | | | | | | | | | | [jc: with suggestions by Jan-Benedict Glaw] Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))Junio C Hamano2006-03-095-7/+5
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Remove trailing dot after short descriptionFredrik Kuivinen2006-03-0953-53/+53
| | | | | | | | | | Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Fix some inconsistencies in the docsFredrik Kuivinen2006-03-093-3/+3
| | | | | | | | | | Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | contrib/git-svn: fix a harmless warning on rebuild (with old repos)Eric Wong2006-03-091-1/+1
| | | | | | | | | | | | | | | | | | It's only for repositories that were imported with very early versions of git-svn. Unfortunately, some of those repos are out in the wild already, so fix this warning. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | contrib/git-svn: remove the --no-stop-on-copy flagEric Wong2006-03-092-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Output a big warning if somebody actually has a pre-1.0 version of svn that doesn't support it. Thanks to Yann Dirson for reminding me it still existed and attempting to re-enable it :) I think I subconciously removed support for it earlier... Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | contrib/git-svn: fix svn compat and fetch argsEric Wong2006-03-092-20/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'svn info' doesn't work with URLs in svn <= 1.1. Now we only run svn info in local directories. As a side effect, this should also work better for 'init' off directories that are no longer in the latest revision of the repository. svn checkout -r<revision> arguments are fixed. Newer versions of svn (1.2.x) seem to need URL@REV as well as -rREV to checkout a particular revision... Add an example in the manpage of how to track directory that has been moved since its initial revision. A huge thanks to Yann Dirson for the bug reporting and testing my original patch. Thanks also to Junio C Hamano for suggesting a safer way to use git-rev-parse. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Don't recurse into parents marked uninteresting.Matthias Urlichs2006-03-091-12/+14
| | | | | | | | | | | | | | | | revision.c:make_parents_uninteresting() is exponential with the number of merges in the tree. That's fine -- unless some other part of git already has pulled the whole commit tree into memory ... Signed-off-by: Junio C Hamano <junkio@cox.net>
* | diff-delta: bound hash list length to avoid O(m*n) behaviorNicolas Pitre2006-03-091-30/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The diff-delta code can exhibit O(m*n) behavior with some patological data set where most hash entries end up in the same hash bucket. To prevent this, a limit is imposed to the number of entries that can exist in the same hash bucket. Because of the above the code is a tiny bit more expensive on average, even if some small optimizations were added as well to atenuate the overhead. But the problematic samples used to diagnoze the issue are now orders of magnitude less expensive to process with only a slight loss in compression. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | test-delta needs zlib to compileNicolas Pitre2006-03-091-1/+1
| | | | | | | | | | Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | git-fmt-merge-msg cleanupLinus Torvalds2006-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | Since I've started using the "merge.summary" flag in my repo, my merge messages look nicer, but I dislike how I get notifications of merges within merges. So I'd suggest this trivial change.. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | repo-config: give value_ a sane default so regexec won't segfaultJonas Fonseca2006-03-072-1/+12
| | | | | | | | | | Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Update http-push functionalityNick Hengeveld2006-03-072-335/+727
| | | | | | | | | | | | | | | | | | | | | | | | This brings http-push functionality more in line with the ssh/git version, by borrowing bits from send-pack and rev-list to process refspecs and revision history in more standard ways. Also, the status of remote objects is determined using PROPFIND requests for the object directory rather than HEAD requests for each object - while it may be less efficient for small numbers of objects, this approach is able to get the status of all remote loose objects in a maximum of 256 requests. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | cvsimport: Remove master-updating codeMatthias Urlichs2006-03-072-25/+8
| | | | | | | | | | | | | | | | The code which tried to update the master branch was somewhat broken. => People should do that manually, with "git merge". Signed-off-by: Matthias Urlichs <smurf@smurf.noris.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Merge branch 'sp/checkout'Junio C Hamano2006-03-067-27/+371
|\ \ | | | | | | | | | | | | * sp/checkout: Add --temp and --stage=all options to checkout-index.
| * | Add --temp and --stage=all options to checkout-index.Shawn Pearce2006-03-057-27/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it is convient for a Porcelain to be able to checkout all unmerged files in all stages so that an external merge tool can be executed by the Porcelain or the end-user. Using git-unpack-file on each stage individually incurs a rather high penalty due to the need to fork for each file version obtained. git-checkout-index -a --stage=all will now do the same thing, but faster. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | Merge branch 'fd/asciidoc'Junio C Hamano2006-03-061-0/+10
|\ \ \ | | | | | | | | | | | | | | | | * fd/asciidoc: Tweak asciidoc output to work with broken docbook-xsl
| * | | Tweak asciidoc output to work with broken docbook-xslFrancis Daly2006-03-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | docbook-xsl v1.68 incorrectly converts "<screen>" from docbook to manpage by not rendering it verbatim. v1.69 handles it correctly, but not many current popular distributions ship with it. asciidoc by default converts "listingblock" to "<screen>". This change causes asciidoc in git to convert "listingblock" to "<literallayout>", which both old and new docbook-xsl handle correctly. The difference can be seen in any manpage which includes a multi-line example, such as git-branch. [jc: the original patch was an disaster for html backends, so I made it apply only to docbook backends. ] Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | | Allow format-patch to attach patchesMike McCormack2006-03-061-7/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The --attach patch to git-format-patch to attach patches instead of inlining them. Some mailers linewrap inlined patches (eg. Mozilla). Signed-off-by: Junio C Hamano <junkio@cox.net>