gitweb.git
builtin-merge: fix a typo in an error messageAllan Caffee Mon, 13 Apr 2009 18:10:08 +0000 (14:10 -0400)

builtin-merge: fix a typo in an error message

Signed-off-by: Allan Caffee <allan.caffee@gmail.com>
Acked-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Add semicolon to curly brace group in main MakefileMark Drago Mon, 27 Apr 2009 02:36:48 +0000 (22:36 -0400)

Add semicolon to curly brace group in main Makefile

This semicolon is technically required by POSIX shell and indeed causes a
syntax error with e.g. bash-2.04.0. Cf.

http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_04_01

Signed-off-by: Mark Drago <markdrago@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

prune-packed: advanced progress even for non-existing... Johannes Sixt Mon, 27 Apr 2009 07:44:58 +0000 (09:44 +0200)

prune-packed: advanced progress even for non-existing fan-out directories

A progress indicator is used to count through the 256 object fan-out
directories while unused object files are removed. (However, it becomes
visible only if this process takes long enough.)

Previously, display_progress() was only called if object files were
actually removed. But if directories towards the end (fd/, fe/, ff/) did
not exist, this could leave a strange line

Removing duplicate objects: 99% (255/256), done.

in the terminal instead of the expected "100% (256/256)".

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t4202: fix typo v1.6.3-rc3Linus Torvalds Sun, 26 Apr 2009 19:29:13 +0000 (12:29 -0700)

t4202: fix typo

While I did a

make -j64 test > ~/t.out

to check my previous patch (in case some test actually tested 'trustctime'
or something), I noticed this one. Somebody has speeling trouble:

t4202-log.sh: line 345: test_expect_sucess: command not found

Fixed thus.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Add an option not to use link(src, dest) && unlink... Johannes Schindelin Sat, 25 Apr 2009 09:57:14 +0000 (11:57 +0200)

Add an option not to use link(src, dest) && unlink(src) when that is unreliable

It seems that accessing NTFS partitions with ufsd (at least on my EeePC)
has an unnerving bug: if you link() a file and unlink() it right away,
the target of the link() will have the correct size, but consist of NULs.

It seems as if the calls are simply not serialized correctly, as single-stepping
through the function move_temp_to_file() works flawlessly.

As ufsd is "Commertial software" (sic!), I cannot fix it, and have to work
around it in Git.

At the same time, it seems that this fixes msysGit issues 222 and 229 to
assume that Windows cannot handle link() && unlink().

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

connect: replace inet_ntop with getnameinfoBenjamin Kramer Fri, 24 Apr 2009 12:16:41 +0000 (14:16 +0200)

connect: replace inet_ntop with getnameinfo

inet_ntop is not protocol independent.
getnameinfo(3) is part of POSIX and is available when getaddrinfo(3) is.
This code is only compiled when NO_IPV6 isn't defined.

The old method was buggy anyway, not every ipv6 address was converted
properly because the buffer (addr) was too small.

Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: git-clean: make description more readableWesley J. Landaker Sat, 25 Apr 2009 15:13:41 +0000 (09:13 -0600)

Documentation: git-clean: make description more readable

The existing text is a little bit awkward. This rewrites the description
section to be more readable and friendly.

Signed-off-by: Wesley J. Landaker <wjl@icecavern.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: git-clean: fix minor grammatical errorsWesley J. Landaker Sat, 25 Apr 2009 15:13:40 +0000 (09:13 -0600)

Documentation: git-clean: fix minor grammatical errors

There were a few minor grammatical errors that made this paragraph hard
to read. This patch fixes the errors in a very minimal manner.

Signed-off-by: Wesley J. Landaker <wjl@icecavern.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Remove obsolete bug warning in man git-update-server... Sitaram Chamarty Sat, 25 Apr 2009 10:56:52 +0000 (16:26 +0530)

Remove obsolete bug warning in man git-update-server-info

The bug referred to was fixed in 60d0526

Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t7700-repack: repack -a now works properly, expect... Brandon Casey Fri, 24 Apr 2009 23:18:53 +0000 (18:18 -0500)

t7700-repack: repack -a now works properly, expect success from test

Since the recent rework of the object listing mechanism of
pack-objects/rev-list, git-repack now properly packs objects from alternate
repositories even when the local repository contains packs.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t9001: use older Getopt::Long boolean prefix '--no... Brandon Casey Fri, 24 Apr 2009 23:18:52 +0000 (18:18 -0500)

t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'

The '--no-thread' option is a Getopt::Long boolean option. The '--no-'
prefix (as in --no-thread) for boolean options is not supported in
Getopt::Long version 2.32 which was released with Perl 5.8.0. This version
only supports '--no' as in '--nothread'. More recent versions of
Getopt::Long, such as version 2.34, support either prefix. So use the older
form in the tests.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

progress bar: round to the nearest instead of truncatin... Nicolas Pitre Fri, 24 Apr 2009 21:46:15 +0000 (17:46 -0400)

progress bar: round to the nearest instead of truncating down

Often the throughput output is requested when the data read so far is
one smaller than multiple of 1024; because 1023/1024 is ~0.999, it often
shows up as 0.99 because the code currently truncates.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

bash completion: show-branch color supportMarkus Heidelberg Sat, 25 Apr 2009 11:46:14 +0000 (13:46 +0200)

bash completion: show-branch color support

This implements completion of --color and --no-color for "git
show-branch" and color.showbranch for "git config".

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

GIT 1.6.3-rc2 v1.6.3-rc2Junio C Hamano Sat, 25 Apr 2009 05:54:40 +0000 (22:54 -0700)

GIT 1.6.3-rc2

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint'Junio C Hamano Sat, 25 Apr 2009 05:59:08 +0000 (22:59 -0700)

Merge branch 'maint'

* maint:
test-genrandom: Add newline to usage string

Merge branch 'maint-1.6.1' into maintJunio C Hamano Sat, 25 Apr 2009 05:58:31 +0000 (22:58 -0700)

Merge branch 'maint-1.6.1' into maint

* maint-1.6.1:
test-genrandom: Add newline to usage string

Merge branch 'maint-1.6.0' into maint-1.6.1Junio C Hamano Sat, 25 Apr 2009 05:49:34 +0000 (22:49 -0700)

Merge branch 'maint-1.6.0' into maint-1.6.1

* maint-1.6.0:
test-genrandom: Add newline to usage string

t7800: respect NO_PERLJeff King Fri, 24 Apr 2009 13:56:14 +0000 (09:56 -0400)

t7800: respect NO_PERL

Difftool is written in perl, so we don't build it if NO_PERL
is set.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

remote.c: do not trigger remote.<name>.<var> codepath... Johannes Sixt Thu, 23 Apr 2009 13:49:05 +0000 (15:49 +0200)

remote.c: do not trigger remote.<name>.<var> codepath for two-level names

If the config file contains a section like this:

[remote]
default = foo

(it should be '[remotes]') then commands like

git status
git checkout
git branch -v

fail even though they are not obviously related to remotes. (These
commands write "ahead, behind" information and, therefore, access the
per-remote information).

Unknown configuration keys should be ignored, not trigger errors.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

builtin-help: silently tolerate unknown keysJohannes Sixt Thu, 23 Apr 2009 13:49:06 +0000 (15:49 +0200)

builtin-help: silently tolerate unknown keys

If for some reason the config file contains a key without a subkey like

[man]
foo = bar

then even a plain

git help

produces an error message. With this patch such an entry is ignored.

Additionally, the warning about unknown sub-keys is removed. It could
become annoying if new sub-keys are introduced in the future, and then
the configuration is read by an old version of git that does not know
about it.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Explain seemingly pointless use of system in difftoolAlex Riesen Thu, 23 Apr 2009 19:18:09 +0000 (21:18 +0200)

Explain seemingly pointless use of system in difftool

Portability reasons.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Makefile: ignore perl/ subdirectory under NO_PERLJunio C Hamano Thu, 23 Apr 2009 05:42:28 +0000 (22:42 -0700)

Makefile: ignore perl/ subdirectory under NO_PERL

The install target still descends into perl subdirectory when NO_PERL is
requested. Fix this.

Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: Make configuration paragraph more consistentStephen Boyd Thu, 23 Apr 2009 09:38:02 +0000 (02:38 -0700)

config.txt: Make configuration paragraph more consistent

By renaming 'information' to 'configuration' we capture more clearly
what a configuration file holds.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: clarify sentences in the configuration... Stephen Boyd Thu, 23 Apr 2009 09:38:01 +0000 (02:38 -0700)

config.txt: clarify sentences in the configuration and syntax sections

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: add missing 'the's and make words pluralStephen Boyd Thu, 23 Apr 2009 09:38:00 +0000 (02:38 -0700)

config.txt: add missing 'the's and make words plural

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-format-patch.txt: general rewordings and cleanupsStephen Boyd Thu, 23 Apr 2009 16:16:52 +0000 (09:16 -0700)

git-format-patch.txt: general rewordings and cleanups

Clarify --no-binary description using some words from the original
commit 37c22a4b (add --no-binary, 2008-05-9). Cleanup --suffix
description. Add --thread style option to synopsis and reorganize it a
bit. Clarify renaming patches example and the configuration paragraph.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-show-branch.txt: cleanup example descriptionStephen Boyd Thu, 23 Apr 2009 09:37:58 +0000 (02:37 -0700)

git-show-branch.txt: cleanup example description

Add a missing quote and properly escape the ' character so docs don't
look odd. Add 'the' to make some sentences more gramatically correct.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: use lowercase for shallow and deep threadingStephen Boyd Thu, 23 Apr 2009 09:37:57 +0000 (02:37 -0700)

Documentation: use lowercase for shallow and deep threading

Even when a sentence is started with 'shallow' or 'deep' use the
lowercase version to maintain consistency.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: add missing format.{subjectprefix,cc,attach... Stephen Boyd Thu, 23 Apr 2009 09:37:56 +0000 (02:37 -0700)

config.txt: add missing format.{subjectprefix,cc,attach} variables

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

test-genrandom: Add newline to usage stringStephen Boyd Thu, 23 Apr 2009 07:25:33 +0000 (00:25 -0700)

test-genrandom: Add newline to usage string

A minor fix to place the terminal input on a new line if test-genrandom
is run with no arguments.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'jc/maint-read-tree-multi'Junio C Hamano Thu, 23 Apr 2009 02:36:19 +0000 (19:36 -0700)

Merge branch 'jc/maint-read-tree-multi'

* jc/maint-read-tree-multi:
checkout branch: prime cache-tree fully
read-tree -m A B: prime cache-tree from the switched-to tree
Move prime_cache_tree() to cache-tree.c
read-tree A B: do not corrupt cache-tree

Add parsing of elm aliases to git-send-emailBill Pemberton Wed, 22 Apr 2009 13:41:29 +0000 (09:41 -0400)

Add parsing of elm aliases to git-send-email

elm stores a text file version of the aliases that is
<alias> = <comment> = <email address>

This adds the parsing of this file to git-send-email

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Convert to use quiet option when availableDan Loewenherz Thu, 23 Apr 2009 01:46:02 +0000 (21:46 -0400)

Convert to use quiet option when available

A minor fix that eliminates usage of "2>/dev/null" when --quiet or
-q has already been implemented.

Signed-off-by: Dan Loewenherz <daniel.loewenherz@yale.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fix more typos/spelling in commentsMichael J Gruber Wed, 22 Apr 2009 21:15:56 +0000 (23:15 +0200)

Fix more typos/spelling in comments

A few more fixes on top of the automatic spell checker generated ones.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fix typos / spelling in commentsMike Ralphson Fri, 17 Apr 2009 18:13:30 +0000 (19:13 +0100)

Fix typos / spelling in comments

Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: git-svn: fix a grammatical error without... Wesley J. Landaker Wed, 22 Apr 2009 15:48:58 +0000 (09:48 -0600)

Documentation: git-svn: fix a grammatical error without awkwardness

The way the sentence is currently written, there needs to be an "its",
but this leads to: "however the remote wildcard may be anywhere as long
as it's its own" which is awkward to read.

Instead, this patch fixes he grammar in a simpler way.

Signed-off-by: Wesley J. Landaker <wjl@icecavern.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: git-svn: fix spurious bolding that mangl... Wesley J. Landaker Wed, 22 Apr 2009 15:48:57 +0000 (09:48 -0600)

Documentation: git-svn: fix spurious bolding that mangles the output

Without this fix, the output looks like:

"Keep in mind that the (asterisk) wildcard of the local ref (right of
the :) *must be the ..." -- with half the sentence spuriously bold.

This fixes the problem by simply escaping asciidoc syntax as suggested
by Jeff King <peff@peff.net>.

Signed-off-by: Wesley J. Landaker <wjl@icecavern.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Wait for git diff to finish in git difftoolAlex Riesen Wed, 22 Apr 2009 07:27:22 +0000 (09:27 +0200)

Wait for git diff to finish in git difftool

In ActivetState Perl, exec does not wait for the started program. This
breaks difftool tests and may cause unexpected behaviour: git difftool
has returned, but the rest of code (diff and possibly the interactive
program are still running in the background.

Acked-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

show-branch: color the commit status signsMarkus Heidelberg Wed, 22 Apr 2009 21:41:25 +0000 (23:41 +0200)

show-branch: color the commit status signs

Make it possible to color the status character ('*' '!' '+' '-') of each
commit corresponding to the branch it's in. This makes it easier to
follow a particular branch, especially if there are larger gaps in the
output.

Add the config option color.showbranch and the command line options
--color and --no-color to control the colored output.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

graph API: fix a bug in the rendering of octopus mergesAllan Caffee Wed, 22 Apr 2009 21:27:59 +0000 (17:27 -0400)

graph API: fix a bug in the rendering of octopus merges

An off by one error was causing octopus merges with 3 parents to not be
rendered correctly. This regression was introduced by 427fc5.

Signed-off-by: Allan Caffee <allan.caffee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

graph API: fix extra space during pre_commit_line stateAllan Caffee Wed, 22 Apr 2009 19:52:13 +0000 (15:52 -0400)

graph API: fix extra space during pre_commit_line state

An extra space is being inserted between the "commit" column and all of
the successive edges. Remove this space. This regression was
introduced by 427fc5b.

Signed-off-by: Allan Caffee <allan.caffee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t4202-log: extend test coverage of graphingAllan Caffee Wed, 22 Apr 2009 21:27:15 +0000 (17:27 -0400)

t4202-log: extend test coverage of graphing

Extend this test to cover the rendering of graphs with octopus merges
and pre_commit lines.

Signed-off-by: Allan Caffee <allan.caffee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Revert "stat_tracking_info(): only count real commits"Junio C Hamano Tue, 21 Apr 2009 23:32:18 +0000 (16:32 -0700)

Revert "stat_tracking_info(): only count real commits"

This reverts commit 19de5d6913b9681d2bde533bccc8445c9236a648.
It produces a misleading output to decide if a merge can fast-forward.

test-lib.sh: Help test_create_repo() find the templates dirMichael J Gruber Tue, 21 Apr 2009 09:21:59 +0000 (11:21 +0200)

test-lib.sh: Help test_create_repo() find the templates dir

Currently, test_create_repo() expects that templates can be found below
`pwd`/.. This assumption fails when tests are run against a git
installed somewhere else or test_create_repo() is called from
subdirectiories (several tests do this).
Therefore, use $TEST_DIRECTORY as introduced in 2d84e9fb and expect
templates to be present in $TEST_DIRECTORY/.. which should be the root
dir of the git checkout.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitk: Fix compare-commits function when we have local... Paul Mackerras Tue, 21 Apr 2009 12:22:31 +0000 (22:22 +1000)

gitk: Fix compare-commits function when we have local changes

This fixes a bug in the compare-commits function added in commit
010509f2 ("gitk: Add a command to compare two strings of commits")
where gitk would show an error dialog if the comparison of commits
got to a fake commit (one showing local changes). It extends
getpatchid to handle these fake commits by using [diffcmd] to get
the git diff command variant to use, and also handles the situation
where an error occurs.

Now that we can have the fake commit IDs showing up, which are
00..00 and 00..01, the short ID is ambiguous. To make sure the links
point to the right commit, this adds a new [appendshortlink] procedure
which takes the full link destination, and uses that rather than
appendwithlinks.

Signed-off-by: Paul Mackerras <paulus@samba.org>

Merge branch 'mk/maint-apply-swap'Junio C Hamano Tue, 21 Apr 2009 07:16:09 +0000 (00:16 -0700)

Merge branch 'mk/maint-apply-swap'

* mk/maint-apply-swap:
tests: make test-apply-criss-cross-rename more robust
builtin-apply: keep information about files to be deleted
tests: test applying criss-cross rename patch

Conflicts:
t/t4130-apply-criss-cross-rename.sh

Merge branch 'maint'Junio C Hamano Tue, 21 Apr 2009 07:00:40 +0000 (00:00 -0700)

Merge branch 'maint'

* maint:
gitcvs-migration: Link to git-cvsimport documentation
Fix off-by-one in read_tree_recursive

grep: don't support "grep.color"-like config optionsMarkus Heidelberg Mon, 20 Apr 2009 22:58:15 +0000 (00:58 +0200)

grep: don't support "grep.color"-like config options

color.grep and color.grep.* is the official and documented way to
highlight grep matches. Comparable options like diff.color.* and
status.color.* exist for backward compatibility reasons only and are not
documented any more.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: fix typos / spelling mistakesMike Ralphson Fri, 17 Apr 2009 18:13:28 +0000 (19:13 +0100)

Documentation: fix typos / spelling mistakes

Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

builtin-remote: fix typo in option descriptionMike Ralphson Fri, 17 Apr 2009 18:13:29 +0000 (19:13 +0100)

builtin-remote: fix typo in option description

Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

clone: add test for push on an empty clone.Matthieu Moy Mon, 20 Apr 2009 11:09:37 +0000 (13:09 +0200)

clone: add test for push on an empty clone.

Commit 55f0566 (get_local_heads(): do not return random pointer if
there is no head, 2009-04-17) fixed a segfault for git push, this
patch adds a test-case to avoid future regressions.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

tests: make test-apply-criss-cross-rename more robustMichał Kiedrowicz Sat, 18 Apr 2009 21:03:57 +0000 (23:03 +0200)

tests: make test-apply-criss-cross-rename more robust

I realized that this test does check if git-apply succeeds, but doesn't
tell if it applies patches correctly. So I added test_cmp to check it.

I also added a test which checks swapping three files.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

builtin-apply: keep information about files to be deletedMichał Kiedrowicz Sat, 11 Apr 2009 19:31:00 +0000 (21:31 +0200)

builtin-apply: keep information about files to be deleted

Example correct diff generated by `diff -M -B' might look like this:

diff --git a/file1 b/file2
similarity index 100%
rename from file1
rename to file2
diff --git a/file2 b/file1
similarity index 100%
rename from file2
rename to file1

Information about removing `file2' comes after information about creation
of new `file2' (renamed from `file1'). Existing implementation isn't able to
apply such patch, because it has to know in advance which files will be
removed.

This patch populates fn_table with information about removal of files
before calling check_patch() for each patch to be applied.

Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

tests: test applying criss-cross rename patchMichał Kiedrowicz Sat, 11 Apr 2009 15:26:24 +0000 (17:26 +0200)

tests: test applying criss-cross rename patch

Originally reported by Linus in $gmane/116198

Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitcvs-migration: Link to git-cvsimport documentationFrank Lichtenheld Sat, 18 Apr 2009 14:38:42 +0000 (16:38 +0200)

gitcvs-migration: Link to git-cvsimport documentation

Signed-off-by: Frank Lichtenheld <flichtenheld@astaro.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fix off-by-one in read_tree_recursiveJohannes Schindelin Mon, 20 Apr 2009 17:44:53 +0000 (19:44 +0200)

Fix off-by-one in read_tree_recursive

Found by valgrind.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Windows: Skip fstat/lstat optimization in write_entry()Johannes Sixt Mon, 20 Apr 2009 08:17:00 +0000 (10:17 +0200)

Windows: Skip fstat/lstat optimization in write_entry()

Commit e4c72923 (write_entry(): use fstat() instead of lstat() when file
is open, 2009-02-09) introduced an optimization of write_entry().
Unfortunately, we cannot take advantage of this optimization on Windows
because there is no guarantee that the time stamps are updated before the
file is closed:

"The only guarantee about a file timestamp is that the file time is
correctly reflected when the handle that makes the change is closed."

(http://msdn.microsoft.com/en-us/library/ms724290(VS.85).aspx)

The failure of this optimization on Windows can be observed most easily by
running a 'git checkout' that has to update several large files. In this
case, 'git checkout' will report modified files, but infact only the
timestamps were incorrectly recorded in the index, as can be verified by a
subsequent 'git diff', which shows no change.

Dmitry Potapov reports the same fix needs on Cygwin; this commit contains
his updates for that.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

checkout branch: prime cache-tree fullyJunio C Hamano Mon, 20 Apr 2009 10:58:20 +0000 (03:58 -0700)

checkout branch: prime cache-tree fully

When switching to another branch, the earlier code relied on incremental
invalidation of cache-tree entries to degrade it. While it is not wrong
per-se, we know that the resulting index must fully match the branch we
are switching to unless the -m (merge) option is used.

We should simply fully re-prime the cache-tree using the new tree object
in such a case. And for safety, invalidate the cache-tree as a whole in
other cases.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

read-tree -m A B: prime cache-tree from the switched... Junio C Hamano Mon, 20 Apr 2009 10:58:19 +0000 (03:58 -0700)

read-tree -m A B: prime cache-tree from the switched-to tree

When switching to a new branch with "read-tree -m A B", the resulting
index must match tree B and we can prime the cache tree with it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Move prime_cache_tree() to cache-tree.cJunio C Hamano Mon, 20 Apr 2009 10:58:18 +0000 (03:58 -0700)

Move prime_cache_tree() to cache-tree.c

The interface to build cache-tree belongs there.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

read-tree A B: do not corrupt cache-treeJunio C Hamano Mon, 20 Apr 2009 10:58:17 +0000 (03:58 -0700)

read-tree A B: do not corrupt cache-tree

An earlier commit aab3b9a (read-tree A B C: do not create a bogus index
and do not segfault, 2009-03-12) resurrected the support for an obscure
(but useful) feature to read and overlay more than one tree into the index
without the -m (merge) option. But the fix was not enough.

Exercising this feature exposes a longstanding bug in the code that primes
the cache-tree in the index from the tree that was read. The intention
was that when we know that the index must exactly match the tree we just
read, we prime the entire cache-tree with it.

However, the logic to detect that case incorrectly triggered if you read
two trees without -m. This resulted in a corrupted cache-tree, and
write-tree would have produced an incorrect tree object out of such an
index.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Windows: Work around intermittent failures in mingw_renameJohannes Sixt Fri, 3 Apr 2009 06:49:59 +0000 (08:49 +0200)

Windows: Work around intermittent failures in mingw_rename

We have replaced rename() with a version that can rename a file to a
destination that already exists. Nevertheless, many users, the author
included, observe failures in the code that are not reproducible.

The theory is that the failures are due to some other process that happens
to have opened the destination file briefly at the wrong moment. (And there
is no way on Windows to delete or replace a file that is currently open.)
The most likely candidate for such a process is a virus scanner. The
failure is more often observed while there is heavy git activity (for
example while the test suite is running or during a rebase operation).

We work around the failure by retrying the rename operation if it failed
due to ERROR_ACCESS_DENIED. The retries are delayed a bit: The first only
by giving up the time slice, the next after the minimal scheduling
granularity, and if more retries are needed, then we wait some non-trivial
amount of time with exponential back-off.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitweb: Fix snapshots requested via PATH_INFOHolger Weiß Tue, 31 Mar 2009 16:16:36 +0000 (18:16 +0200)

gitweb: Fix snapshots requested via PATH_INFO

Fix the detection of the requested snapshot format, which failed for
PATH_INFO URLs since the references to the hashes which describe the
supported snapshot formats weren't dereferenced appropriately.

Signed-off-by: Holger Weiß <holger@zedat.fu-berlin.de>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'mm/maint-add-p-quit'Junio C Hamano Mon, 20 Apr 2009 10:39:38 +0000 (03:39 -0700)

Merge branch 'mm/maint-add-p-quit'

* mm/maint-add-p-quit:
git add -p: add missing "q" to patch prompt

git add -p: add missing "q" to patch promptWincent Colaiuta Mon, 20 Apr 2009 09:42:52 +0000 (11:42 +0200)

git add -p: add missing "q" to patch prompt

Commit cbd3a01 added a new "q" subcommand to the "git add -p"
command loop, but forgot to add it to the prompt.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sync with 1.6.2.4Junio C Hamano Mon, 20 Apr 2009 00:36:22 +0000 (17:36 -0700)

Sync with 1.6.2.4

Signed-off-by: Junio C Hamano <gitster@pobox.com>

GIT 1.6.2.4 v1.6.2.4Junio C Hamano Mon, 20 Apr 2009 00:34:26 +0000 (17:34 -0700)

GIT 1.6.2.4

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Makefile: remove {fetch,send}-pack from PROGRAMS as... Nguyễn Thái Ngọc Duy Mon, 20 Apr 2009 00:17:25 +0000 (10:17 +1000)

Makefile: remove {fetch,send}-pack from PROGRAMS as they are builtins

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'ef/maint-fast-export' into maintJunio C Hamano Sun, 19 Apr 2009 19:40:17 +0000 (12:40 -0700)

Merge branch 'ef/maint-fast-export' into maint

* ef/maint-fast-export:
builtin-fast-export.c: handle nested tags
builtin-fast-export.c: fix crash on tagged trees
builtin-fast-export.c: turn error into warning
test-suite: adding a test for fast-export with tag variants

Merge branch 'mm/maint-add-p-quit' into maintJunio C Hamano Sun, 19 Apr 2009 19:40:14 +0000 (12:40 -0700)

Merge branch 'mm/maint-add-p-quit' into maint

* mm/maint-add-p-quit:
Update git-add.txt according to the new possibilities of 'git add -p'.
add-interactive: refactor mode hunk handling
git add -p: new "quit" command at the prompt.

Merge branch 'lt/maint-reflog-expire' into maintJunio C Hamano Sun, 19 Apr 2009 19:40:11 +0000 (12:40 -0700)

Merge branch 'lt/maint-reflog-expire' into maint

* lt/maint-reflog-expire:
Speed up reflog pruning of unreachable commits
Clean up reflog unreachability pruning decision

Merge branch 'jc/maint-shared-literally' into maintJunio C Hamano Sun, 19 Apr 2009 19:40:05 +0000 (12:40 -0700)

Merge branch 'jc/maint-shared-literally' into maint

* jc/maint-shared-literally:
Update docs on behaviour of 'core.sharedRepository' and 'git init --shared'
t1301-shared-repo: fix forced modes test

Update git-add.txt according to the new possibilities... Matthieu Moy Thu, 16 Apr 2009 16:46:23 +0000 (18:46 +0200)

Update git-add.txt according to the new possibilities of 'git add -p'.

The text is merely cut-and-pasted from git-add--interactive.perl. The
cut-and-paste also fixes a typo.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

add-interactive: refactor mode hunk handlingJeff King Thu, 16 Apr 2009 07:14:15 +0000 (03:14 -0400)

add-interactive: refactor mode hunk handling

The original implementation considered the mode separately
from the rest of the hunks, asking about it outside the main
hunk-selection loop. This patch instead places a mode change
as the first hunk in the loop. This has two advantages:

1. less duplicated code (since we use the main selection
loop). This also cleans up an inconsistency, which is
that the main selection loop separates options with a
comma, whereas the mode prompt used slashes.

2. users can now skip the mode change and come back to it,
search for it (via "/mode"), etc, as they can with other
hunks.

To facilitate this, each hunk is now marked with a "type".
Mode hunks are not considered for splitting (which would
make no sense, and also confuses the split_hunk function),
nor are they editable. In theory, one could edit the mode
lines and change to a new mode. In practice, there are only
two modes that git cares about (0644 and 0755), so either
you want to move from one to the other or not (and you can
do that by staging or not staging).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git add -p: new "quit" command at the prompt.Matthieu Moy Fri, 10 Apr 2009 14:57:01 +0000 (16:57 +0200)

git add -p: new "quit" command at the prompt.

There's already 'd' to stop staging hunks in a file, but no explicit
command to stop the interactive staging (for the current files and the
remaining ones). Of course you can do 'd' and then ^C, but it would be
more intuitive to allow 'quit' action.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Speed up reflog pruning of unreachable commitsJunio Hamano Tue, 31 Mar 2009 04:34:14 +0000 (21:34 -0700)

Speed up reflog pruning of unreachable commits

Instead of doing the (potentially very expensive) "in_merge_base()"
check for each commit that might be pruned if it is unreachable, do a
preparatory reachability graph of the commit space, so that the common
case of being reachable can be tested directly.

[ Cleaned up a bit and tweaked to actually work. - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Clean up reflog unreachability pruning decisionLinus Torvalds Tue, 31 Mar 2009 16:45:22 +0000 (09:45 -0700)

Clean up reflog unreachability pruning decision

This clarifies the pruning rules for unreachable commits by having a
separate helpder function for the unreachability decision.

It's preparation for actual bigger changes to come to speed up the
decision when the reachability calculations become a bottleneck.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

builtin-fast-export.c: handle nested tagsErik Faye-Lund Mon, 23 Mar 2009 12:53:09 +0000 (12:53 +0000)

builtin-fast-export.c: handle nested tags

When tags that points to tags are passed to fast-export, an error is given,
saying "Tag [TAGNAME] points nowhere?". This fix calls parse_object() on the
object before referencing it's tag, to ensure the tag-info is fully initialized.
In addition, it inserts a comment to point out where nested tags are handled.
This is consistent with the comment for signed tags.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

builtin-fast-export.c: fix crash on tagged treesErik Faye-Lund Mon, 23 Mar 2009 12:53:08 +0000 (12:53 +0000)

builtin-fast-export.c: fix crash on tagged trees

If a tag object points to a tree (or another unhandled type), the commit-
pointer is left uninitialized and later dereferenced. This patch adds a
default case to the switch that issues a warning and skips the object.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

builtin-fast-export.c: turn error into warningErik Faye-Lund Mon, 23 Mar 2009 12:53:07 +0000 (12:53 +0000)

builtin-fast-export.c: turn error into warning

fast-import doesn't have a syntax to support tree-objects (and some other
object-types), so fast-export shouldn't handle them. However, aborting the
operation is a bit drastic. This patch turns the error into a warning instead.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

test-suite: adding a test for fast-export with tag... Erik Faye-Lund Mon, 23 Mar 2009 12:53:06 +0000 (12:53 +0000)

test-suite: adding a test for fast-export with tag variants

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Work around ash "alternate value" expansion bugBen Jackson Sun, 19 Apr 2009 03:42:07 +0000 (20:42 -0700)

Work around ash "alternate value" expansion bug

Ash (used as /bin/sh on many distros) has a shell expansion bug
for the form ${var:+word word}. The result is a single argument
"word word". Work around by using ${var:+word} ${var:+word} or
equivalent.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Update draft release notes to 1.6.3 v1.6.3-rc1Junio C Hamano Sat, 18 Apr 2009 21:32:02 +0000 (14:32 -0700)

Update draft release notes to 1.6.3

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'lt/bool-on-off'Junio C Hamano Sat, 18 Apr 2009 21:46:22 +0000 (14:46 -0700)

Merge branch 'lt/bool-on-off'

* lt/bool-on-off:
Documentation: boolean value may be given by on/off
Allow users to un-configure rename detection

Merge branch 'lt/pack-object-memuse'Junio C Hamano Sat, 18 Apr 2009 21:46:17 +0000 (14:46 -0700)

Merge branch 'lt/pack-object-memuse'

* lt/pack-object-memuse:
show_object(): push path_name() call further down
process_{tree,blob}: show objects without buffering

Conflicts:
builtin-pack-objects.c
builtin-rev-list.c
list-objects.c
list-objects.h
upload-pack.c

Merge branch 'nd/archive-attribute'Junio C Hamano Sat, 18 Apr 2009 21:46:08 +0000 (14:46 -0700)

Merge branch 'nd/archive-attribute'

* nd/archive-attribute:
archive test: attributes
archive: do not read .gitattributes in working directory
unpack-trees: do not muck with attributes when we are not checking out
attr: add GIT_ATTR_INDEX "direction"
archive tests: do not use .gitattributes in working directory

Merge branch 'maint'Junio C Hamano Sat, 18 Apr 2009 21:45:59 +0000 (14:45 -0700)

Merge branch 'maint'

* maint:
Describe fixes since 1.6.2.3
doc/git-daemon: add missing arguments to max-connections option
doc/git-daemon: add missing arguments to options
init: Do not segfault on big GIT_TEMPLATE_DIR environment variable
imap-send: use correct configuration variable in documentation

Describe fixes since 1.6.2.3Junio C Hamano Sat, 18 Apr 2009 21:01:50 +0000 (14:01 -0700)

Describe fixes since 1.6.2.3

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint-1.6.1' into maintJunio C Hamano Sat, 18 Apr 2009 21:43:39 +0000 (14:43 -0700)

Merge branch 'maint-1.6.1' into maint

* maint-1.6.1:

Merge branch 'maint-1.6.0' into maint-1.6.1Junio C Hamano Sat, 18 Apr 2009 21:43:24 +0000 (14:43 -0700)

Merge branch 'maint-1.6.0' into maint-1.6.1

* maint-1.6.0:
doc/git-daemon: add missing arguments to options
init: Do not segfault on big GIT_TEMPLATE_DIR environment variable

Merge branch 'bs/maint-1.6.0-tree-walk-prefix' into... Junio C Hamano Sat, 18 Apr 2009 21:18:32 +0000 (14:18 -0700)

Merge branch 'bs/maint-1.6.0-tree-walk-prefix' into maint

* bs/maint-1.6.0-tree-walk-prefix:
match_tree_entry(): a pathspec only matches at directory boundaries
tree_entry_interesting: a pathspec only matches at directory boundary

Merge branch 'js/maint-submodule-checkout' into maintJunio C Hamano Sat, 18 Apr 2009 21:18:29 +0000 (14:18 -0700)

Merge branch 'js/maint-submodule-checkout' into maint

* js/maint-submodule-checkout:
Fix 'git checkout <submodule>' to update the index

Merge branch 'cb/maint-merge-recursive-submodule-fix... Junio C Hamano Sat, 18 Apr 2009 21:18:25 +0000 (14:18 -0700)

Merge branch 'cb/maint-merge-recursive-submodule-fix' into maint

* cb/maint-merge-recursive-submodule-fix:
simplify output of conflicting merge
update cache for conflicting submodule entries
add tests for merging with submodules

doc/git-daemon: add missing arguments to max-connection... Markus Heidelberg Sat, 18 Apr 2009 09:46:06 +0000 (11:46 +0200)

doc/git-daemon: add missing arguments to max-connections option

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint-1.6.0' into maintJunio C Hamano Sat, 18 Apr 2009 20:39:52 +0000 (13:39 -0700)

Merge branch 'maint-1.6.0' into maint

* maint-1.6.0:
doc/git-daemon: add missing arguments to options
init: Do not segfault on big GIT_TEMPLATE_DIR environment variable

doc/git-daemon: add missing arguments to optionsMarkus Heidelberg Sat, 18 Apr 2009 09:46:06 +0000 (11:46 +0200)

doc/git-daemon: add missing arguments to options

Also fix some spellings and typos.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

init: Do not segfault on big GIT_TEMPLATE_DIR environme... Frank Lichtenheld Sat, 18 Apr 2009 14:14:02 +0000 (16:14 +0200)

init: Do not segfault on big GIT_TEMPLATE_DIR environment variable

Signed-off-by: Frank Lichtenheld <flichtenheld@astaro.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

imap-send: use correct configuration variable in docume... Paul Bolle Sat, 18 Apr 2009 11:26:42 +0000 (13:26 +0200)

imap-send: use correct configuration variable in documentation

It's imap.pass (not imap.password).

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Update docs on behaviour of 'core.sharedRepository... Johan Herland Tue, 14 Apr 2009 13:15:42 +0000 (15:15 +0200)

Update docs on behaviour of 'core.sharedRepository' and 'git init --shared'

This documentation update is needed to reflect the recent changes where
"core.sharedRepository = 0mode" was changed to set, not loosen, the
repository permissions.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'ac/color-graph'Junio C Hamano Sat, 18 Apr 2009 04:42:13 +0000 (21:42 -0700)

Merge branch 'ac/color-graph'

* ac/color-graph:
graph API: Added logic for colored edges