gitweb.git
read-tree --debug-unpackJunio C Hamano Mon, 14 Sep 2009 09:22:00 +0000 (02:22 -0700)

read-tree --debug-unpack

A debugging patch.

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

unpack-trees.c: look ahead in the indexJunio C Hamano Sun, 20 Sep 2009 07:03:39 +0000 (00:03 -0700)

unpack-trees.c: look ahead in the index

This makes the traversal of index be in sync with the tree traversal.
When unpack_callback() is fed a set of tree entries from trees, it
inspects the name of the entry and checks if the an index entry with
the same name could be hiding behind the current index entry, and

(1) if the name appears in the index as a leaf node, it is also
fed to the n_way_merge() callback function;

(2) if the name is a directory in the index, i.e. there are entries in
that are underneath it, then nothing is fed to the n_way_merge()
callback function;

(3) otherwise, if the name comes before the first eligible entry in the
index, the index entry is first unpacked alone.

When traverse_trees_recursive() descends into a subdirectory, the
cache_bottom pointer is moved to walk index entries within that directory.

All of these are omitted for diff-index, which does not even want to be
fed an index entry and a tree entry with D/F conflicts.

This fixes 3-way read-tree and exposes a bug in other parts of the system
in t6035, test #5. The test prepares these three trees:

O = HEAD^
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/b-2/c/d
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/b/c/d
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/x

A = HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/b-2/c/d
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/b/c/d
100644 blob 587be6b4c3f93f93c489c0111bba5596147a26cb a/x

B = master
120000 blob a36b77384451ea1de7bd340ffca868249626bc52 a/b
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/b-2/c/d
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a/x

With a clean index that matches HEAD, running

git read-tree -m -u --aggressive $O $A $B

now yields

120000 a36b77384451ea1de7bd340ffca868249626bc52 3 a/b
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 a/b-2/c/d
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 1 a/b/c/d
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 2 a/b/c/d
100644 587be6b4c3f93f93c489c0111bba5596147a26cb 0 a/x

which is correct. "master" created "a/b" symlink that did not exist,
and removed "a/b/c/d" while HEAD did not do touch either path.

Before this series, read-tree did not notice the situation and resolved
addition of "a/b" and removal of "a/b/c/d" independently. If A = HEAD had
another path "a/b/c/e" added, this merge should conflict but instead it
silently resolved "a/b" and then immediately overwrote it to add
"a/b/c/e", which was quite bogus.

Tests in t1012 start to work with this.

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

unpack-trees.c: prepare for looking ahead in the indexJunio C Hamano Thu, 7 Jan 2010 22:59:54 +0000 (14:59 -0800)

unpack-trees.c: prepare for looking ahead in the index

This prepares but does not yet implement a look-ahead in the index entries
when traverse-trees.c decides to give us tree entries in an order that
does not match what is in the index.

A case where a look-ahead in the index is necessary happens when merging
branch B into branch A while the index matches the current branch A, using
a tree O as their common ancestor, and these three trees looks like this:

O A B
t t
t-i t-i t-i
t-j t-j
t/1
t/2

The traverse_trees() function gets "t", "t-i" and "t" from trees O, A and
B first, and notices that A may have a matching "t" behind "t-i" and "t-j"
(indeed it does), and tells A to give that entry instead. After unpacking
blob "t" from tree B (as it hasn't changed since O in B and A removed it,
it will result in its removal), it descends into directory "t/".

The side that walked index in parallel to the tree traversal used to be
implemented with one pointer, o->pos, that points at the next index entry
to be processed. When this happens, the pointer o->pos still points at
"t-i" that is the first entry. We should be able to skip "t-i" and "t-j"
and locate "t/1" from the index while the recursive invocation of
traverse_trees() walks and match entries found there, and later come back
to process "t-i".

While that look-ahead is not implemented yet, this adds a flag bit,
CE_UNPACKED, to mark the entries in the index that has already been
processed. o->pos pointer has been renamed to o->cache_bottom and it
points at the first entry that may still need to be processed.

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

Aggressive three-way merge: fix D/F caseJunio C Hamano Sun, 11 Oct 2009 20:38:11 +0000 (13:38 -0700)

Aggressive three-way merge: fix D/F case

When the ancestor used to have a blob "P", your tree removed it, and the
tree you are merging with also removed it, the agressive three-way cleanly
merges to remove that blob. If the other tree added a new blob "P/Q"
while removing "P", it should also merge cleanly to remove "P" and create
"P/Q" (since neither the ancestor nor your tree could have had it, so it
is a typical "created in one").

The "aggressive" rule is not new anymore. Reword the stale comment.

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

traverse_trees(): handle D/F conflict case sanelyJunio C Hamano Sat, 19 Sep 2009 21:07:14 +0000 (14:07 -0700)

traverse_trees(): handle D/F conflict case sanely

traverse_trees() is supposed to call its callback with all the matching
entries from the given trees. The current algorithm keeps a pointer to
each of the tree being traversed, and feeds the entry with the earliest
name to the callback.

This breaks down if the trees being traversed looks like this:

A B
t-1 t
t-2 u
t/a v

When we are currently looking at an entry "t-1" in tree A, and tree B has
returned "t", feeding "t" from the B and not feeding anything from A, only
because "t-1" sorts later than "t", will miss an entry for a subtree "t"
behind the current entry in tree A.

This introduces extended_entry_extract() helper function that gives what
name is expected from the tree, and implements a mechanism to look-ahead
in the tree object using it, to make sure such a case is handled sanely.
Traversal in tree A in the above example will first return "t" to match
that of B, and then the next request for an entry to A then returns "t-1".

This roughly corresponds to what Linus's "prepare for one-entry lookahead"
wanted to do, but because this does implement look ahead, t6035 and one more
test in t1012 reveal that the approach would not work without adjusting the
side that walks the index in unpack_trees() as well.

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

more D/F conflict testsJunio C Hamano Sun, 20 Sep 2009 18:49:56 +0000 (11:49 -0700)

more D/F conflict tests

Before starting to muck with this code, let's expose the current
breakages that we intend to fix.

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

tests: move convenience regexp to match object names... Junio C Hamano Sun, 20 Sep 2009 18:10:14 +0000 (11:10 -0700)

tests: move convenience regexp to match object names to test-lib.sh

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

Git 1.6.6 v1.6.6Junio C Hamano Wed, 23 Dec 2009 19:58:52 +0000 (11:58 -0800)

Git 1.6.6

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

git svn: add test for a git svn gc followed by a git... Robert Zeh Wed, 23 Dec 2009 17:54:11 +0000 (11:54 -0600)

git svn: add test for a git svn gc followed by a git svn mkdirs

git svn gc will compress the unhandled.log files that git svn mkdirs reads,
causing git svn mkdirs to skip directory creation.

[ew: trivial whitespace cleanups]
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Robert Zeh <robert.a.zeh@gmail.com>

git svn: branch/tag commands detect username in URLsEric Wong Wed, 23 Dec 2009 06:40:18 +0000 (22:40 -0800)

git svn: branch/tag commands detect username in URLs

svn+ssh:// repositories often have userinfo embedded in the URL
which were stripped out of the "git-svn-id:" trailers. Since
the SVN::Client::copy function takes userinfo into account when
matching URLs for SVN repositories, we need to retrieve the full
URL with embedded userinfo in it to avoid mismatched URLs.

Tested-by: Florian Köberle <florian@fkoeberle.de>
Signed-off-by: Eric Wong <normalperson@yhbt.net>

Merge branch 'maint'Junio C Hamano Tue, 22 Dec 2009 20:32:39 +0000 (12:32 -0800)

Merge branch 'maint'

* maint:
Prevent git blame from segfaulting on a missing author name

git svn: lookup new parents correctly from svn:mergeinfoEric Wong Tue, 22 Dec 2009 20:15:40 +0000 (12:15 -0800)

git svn: lookup new parents correctly from svn:mergeinfo

This appears to be a trivial case where array indices were being
passed to git rev-list, instead of the contents stored in the
array itself.

Signed-off-by: Eric Wong <normalperson@yhbt.net>

Prevent git blame from segfaulting on a missing author... David Reiss Tue, 22 Dec 2009 18:51:41 +0000 (10:51 -0800)

Prevent git blame from segfaulting on a missing author name

The human-readable author and committer name can be missing from
commits imported from foreign SCM interfaces. Make sure we parse
the "author" and "committer" line a bit more leniently and avoid
segfaulting by assuming the name always exists.

Signed-off-by: David Reiss <dreiss@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-svn: Remove obsolete MAXPARENT checkAndrew Myrick Mon, 21 Dec 2009 22:22:54 +0000 (14:22 -0800)

git-svn: Remove obsolete MAXPARENT check

Change git-svn not to impose a limit of 16 parents on a merge.

This limit in git-svn artificially prevents cloning svn repositories
that contain commits with more than 16 merge parents.

The limit was removed from builtin-commit-tree.c for git v1.6.0 in commit
ef98c5cafb3e799b1568bb843fcd45920dc62f16, so there is no need to check for it
it in git-svn.

Signed-off-by: Andrew Myrick <amyrick@apple.com>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: detect cherry-picks correctly.Sam Vilain Sat, 19 Dec 2009 16:26:26 +0000 (05:26 +1300)

git-svn: detect cherry-picks correctly.

The old function was incorrect; in some instances it marks a cherry picked
range as a merged branch (because of an incorrect assumption that
'rev-list COMMIT --not RANGE' would work). This is replaced with a
function which should detect them correctly, memoized to limit the expense
of dealing with branches with many cherry picks to one 'merge-base' call
per merge, per branch which used cherry picking.

Signed-off-by: Sam Vilain <sam@vilain.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: exclude already merged tips using one rev... Sam Vilain Sat, 19 Dec 2009 16:25:31 +0000 (05:25 +1300)

git-svn: exclude already merged tips using one rev-list call

The old function would have to check all mentioned merge tips, every time
that the mergeinfo ticket changed. This involved 1-2 rev-list operation
for each listed mergeinfo line. If there are a lot of feature branches
being merged into a trunk, this makes for a very expensive operation for
detecting the new parents on every merge.

This new version first uses a single 'rev-list' to figure out which commit
ranges are already reachable from the parents. This is used to eliminate
the already merged branches from the list.

Signed-off-by: Sam Vilain <sam@vilain.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: fix some mistakes with interpreting SVN mergei... Sam Vilain Sat, 19 Dec 2009 16:22:42 +0000 (05:22 +1300)

git-svn: fix some mistakes with interpreting SVN mergeinfo commit ranges

SVN's list of commit ranges in mergeinfo tickets is inclusive, whereas
git commit ranges are exclusive on the left hand side. Also, the end
points of the commit ranges may not exist; they simply delineate
ranges of commits which may or may not exist. Fix these two mistakes.

Signed-off-by: Sam Vilain <sam@vilain.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: memoize conversion of SVN merge ticket info... Sam Vilain Sat, 19 Dec 2009 11:55:13 +0000 (00:55 +1300)

git-svn: memoize conversion of SVN merge ticket info to git commit ranges

Each time the svn mergeinfo ticket changes, we look it up in the rev_map;
when there are a lot of merged branches, this will result in many repeated
lookups of the same information for subsequent commits. Arrange the slow
part of the function so that it may be memoized, and memoize it. The more
expensive revision walking operation can be memoized separately.

[ew: changed "next" to "return" for function exit]

Signed-off-by: Sam Vilain <sam@vilain.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: expand the svn mergeinfo test suite, highlight... Sam Vilain Sat, 19 Dec 2009 16:20:30 +0000 (05:20 +1300)

git-svn: expand the svn mergeinfo test suite, highlighting some failures

As shown, git-svn has some problems; not all svn merges are correctly
detected, and cherry picks may incorrectly be detected as real merges.
These test cases will be marked as _success once the relevant fixes are in.

Signed-off-by: Sam Vilain <sam@vilain.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

update release notes for git svn in 1.6.6Eric Wong Mon, 21 Dec 2009 10:21:33 +0000 (02:21 -0800)

update release notes for git svn in 1.6.6

Signed-off-by: Eric Wong <normalperson@yhbt.net>

git svn: fix --revision when fetching deleted pathsEric Wong Mon, 21 Dec 2009 10:06:04 +0000 (02:06 -0800)

git svn: fix --revision when fetching deleted paths

When using the -r/--revision argument to fetch deleted history,
calling SVN::Ra::get_log() from an SVN::Ra object initialized
to track the deleted URL will fail.

This regression was introduced in:
commit 4aacaeb3dc82bb6479e70e120053dc27a399460e
"fix shallow clone when upstream revision is too new"

We now ignore errors from SVN::Ra::get_log() here because using
--revision will always override the value of $head here if
(and only if) we're tracking deleted directories.

Signed-off-by: Eric Wong <normalperson@yhbt.net>

Git 1.6.6-rc4 v1.6.6-rc4Junio C Hamano Sun, 20 Dec 2009 20:15:02 +0000 (12:15 -0800)

Git 1.6.6-rc4

Hopefully the last rc before the final one.

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

Merge branch 'maint'Junio C Hamano Sun, 20 Dec 2009 07:20:16 +0000 (23:20 -0800)

Merge branch 'maint'

* maint:
rebase -i: abort cleanly if the editor fails to launch
technical-docs: document hash API
api-strbuf.txt: fix typos and document launch_editor()

rebase -i: abort cleanly if the editor fails to launchBjörn Gustavsson Sat, 19 Dec 2009 12:04:03 +0000 (13:04 +0100)

rebase -i: abort cleanly if the editor fails to launch

If the user's configured editor is emacsclient, the editor
will fail to launch if emacs is not running and the git
command that tried to lanuch the editor will abort. For most
commands, all you have to do is to start emacs and repeat
the command.

The "git rebase -i" command, however, aborts without cleaning
the "$GIT_DIR/rebase-merge" directory if it fails to launch the
editor, so you'll need to do "git rebase --abort" before
repeating the rebase command.

Change "git rebase -i" to terminate using "die_abort" (instead of
with "die") if the initial launch of the editor fails.

Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t9146: use 'svn_cmd' wrapperEric Wong Sun, 20 Dec 2009 07:05:57 +0000 (23:05 -0800)

t9146: use 'svn_cmd' wrapper

Using 'svn' directly may not work for all users.

Signed-off-by: Eric Wong <normalperson@yhbt.net>

git svn: make empty directory creation gc-awareEric Wong Sat, 19 Dec 2009 21:49:00 +0000 (13:49 -0800)

git svn: make empty directory creation gc-aware

The "git svn gc" command creates and appends to unhandled.log.gz
files which should be parsed before the uncompressed
unhandled.log files.

Reported-by: Robert Zeh
Signed-off-by: Eric Wong <normalperson@yhbt.net>

technical-docs: document hash APIStephen Boyd Fri, 18 Dec 2009 00:05:29 +0000 (16:05 -0800)

technical-docs: document hash API

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

api-strbuf.txt: fix typos and document launch_editor()Stephen Boyd Fri, 18 Dec 2009 00:05:28 +0000 (16:05 -0800)

api-strbuf.txt: fix typos and document launch_editor()

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

Git 1.6.6-rc3 v1.6.6-rc3Junio C Hamano Wed, 16 Dec 2009 20:50:33 +0000 (12:50 -0800)

Git 1.6.6-rc3

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

Merge branch 'maint' to sync with 1.6.5.7Junio C Hamano Wed, 16 Dec 2009 19:09:31 +0000 (11:09 -0800)

Merge branch 'maint' to sync with 1.6.5.7

* maint:
Git 1.6.5.7
worktree: don't segfault with an absolute pathspec without a work tree
ignore unknown color configuration
help.autocorrect: do not run a command if the command given is junk
Illustrate "filter" attribute with an example

Git 1.6.5.7 v1.6.5.7Junio C Hamano Wed, 16 Dec 2009 18:23:54 +0000 (10:23 -0800)

Git 1.6.5.7

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

worktree: don't segfault with an absolute pathspec... Junio C Hamano Wed, 16 Dec 2009 18:50:09 +0000 (10:50 -0800)

worktree: don't segfault with an absolute pathspec without a work tree

If a command is run with an absolute path as a pathspec inside a bare
repository, e.g. "rev-list HEAD -- /home", the code tried to run strlen()
on NULL, which is the result of get_git_work_tree(), and segfaulted. It
should just fail instead.

Currently the function returns NULL even inside .git/ in a repository
with a work tree, but that is a separate issue.

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

ignore unknown color configurationJeff King Sat, 12 Dec 2009 12:25:24 +0000 (07:25 -0500)

ignore unknown color configuration

When parsing the config file, if there is a value that is
syntactically correct but unused, we generally ignore it.
This lets non-core porcelains store arbitrary information in
the config file, and it means that configuration files can
be shared between new and old versions of git (the old
versions might simply ignore certain configuration).

The one exception to this is color configuration; if we
encounter a color.{diff,branch,status}.$slot variable, we
die if it is not one of the recognized slots (presumably as
a safety valve for user misconfiguration). This behavior
has existed since 801235c (diff --color: use
$GIT_DIR/config, 2006-06-24), but hasn't yet caused a
problem. No porcelain has wanted to store extra colors, and
we once a color area (like color.diff) has been introduced,
we've never changed the set of color slots.

However, that changed recently with the addition of
color.diff.func. Now a user with color.diff.func in their
config can no longer freely switch between v1.6.6 and older
versions; the old versions will complain about the existence
of the variable.

This patch loosens the check to match the rest of
git-config; unknown color slots are simply ignored. This
doesn't fix this particular problem, as the older version
(without this patch) is the problem, but it at least
prevents it from happening again in the future.

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

help.autocorrect: do not run a command if the command... Johannes Sixt Tue, 15 Dec 2009 07:57:18 +0000 (08:57 +0100)

help.autocorrect: do not run a command if the command given is junk

If a given command is not found, then help.c tries to guess which one the
user could have meant. If help.autocorrect is 0 or unset, then a list of
suggestions is given as long as the dissimilarity between the given command
and the candidates is not excessively high. But if help.autocorrect was
non-zero (i.e., a delay after which the command is run automatically), the
latter restriction on dissimilarity was not obeyed.

In my case, this happened:

$ git ..daab02
WARNING: You called a Git command named '..daab02', which does not exist.
Continuing under the assumption that you meant 'read-tree'
in 4.0 seconds automatically...

The patch reuses the similarity limit that is also applied when the list of
suggested commands is printed.

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

Illustrate "filter" attribute with an exampleNanako Shiraishi Tue, 15 Dec 2009 03:11:10 +0000 (12:11 +0900)

Illustrate "filter" attribute with an example

The example was taken from aa4ed402c9721170fde2e9e43c3825562070e65e
(Add 'filter' attribute and external filter driver definition).

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

bash: Support new 'git fetch' optionsBjörn Gustavsson Sat, 12 Dec 2009 10:21:46 +0000 (11:21 +0100)

bash: Support new 'git fetch' options

Support the new options --all, --prune, and --dry-run for
'git fetch'.

As the --multiple option was primarily introduced to enable
'git remote update' to be re-implemented in terms of 'git fetch'
(16679e37) and is not likely to be used much from the command
line, it does not seems worthwhile to complicate the code
(to support completion of multiple remotes) to handle it.

Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Update Release Notes for 1.6.6 to remove old bugfixesJunio C Hamano Fri, 11 Dec 2009 00:22:42 +0000 (16:22 -0800)

Update Release Notes for 1.6.6 to remove old bugfixes

These three have already been backported to 1.6.5.5

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

Sync with 1.6.5.6Junio C Hamano Fri, 11 Dec 2009 00:20:59 +0000 (16:20 -0800)

Sync with 1.6.5.6

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

Git 1.6.5.6 v1.6.5.6Junio C Hamano Thu, 10 Dec 2009 23:42:30 +0000 (15:42 -0800)

Git 1.6.5.6

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

Fix archive format with -- on the command lineJunio C Hamano Thu, 10 Dec 2009 23:27:51 +0000 (15:27 -0800)

Fix archive format with -- on the command line

Giving --format from the command line, or using output file extention to
DWIM the output format, with a pathspec that is disambiguated with an
explicit double-dash on the command line, e.g.

git archive -o file --format=zip HEAD -- path
git archive -o file.zip HEAD -- path

didn't work correctly.

This was because the code reordered (when one was given) or added (when
the format was inferred) a --format argument at the end, effectively
making it to "archive HEAD -- path --format=zip", i.e. an extra pathspec
that is unlikely to match anything.

The command line argument list should always be "options, revs and then
paths", and we should set a good example by inserting the --format at the
beginning instead.

Reported-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Remove post-upload-hookJunio C Hamano Thu, 10 Dec 2009 20:17:11 +0000 (12:17 -0800)

Remove post-upload-hook

This hook runs after "git fetch" in the repository the objects are
fetched from as the user who fetched, and has security implications.

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

Git 1.6.6-rc2 v1.6.6-rc2Junio C Hamano Thu, 10 Dec 2009 00:21:36 +0000 (16:21 -0800)

Git 1.6.6-rc2

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

Merge git://repo.or.cz/git-guiJunio C Hamano Wed, 9 Dec 2009 23:38:51 +0000 (15:38 -0800)

Merge git://repo.or.cz/git-gui

* git://repo.or.cz/git-gui:
git-gui: suppress RenderBadPicture X error caused by Tk bug
git-gui: Increase blame viewer usability on MacOS.
git-gui: search 4 directories to improve statistic of gc hint
git gui: make current branch default in "remote delete branch" merge check

Merge git://git.kernel.org/pub/scm/gitk/gitkJunio C Hamano Wed, 9 Dec 2009 23:38:42 +0000 (15:38 -0800)

Merge git://git.kernel.org/pub/scm/gitk/gitk

* git://git.kernel.org/pub/scm/gitk/gitk:
gitk: Fix selection of tags
gitk: Default to the system colours on Windows
gitk: Update Japanese translation
gitk: Fix "git gui blame" invocation when called from top-level directory
gitk: Disable checkout of remote branches
gitk: Improve appearance of radiobuttons and checkbuttons
gitk: Skip translation of "wrong Tcl version" message
gitk: Add Japanese translation
gitk: Use the --submodule option for displaying diffs when available
gitk: Fix diffing committed -> staged (typo in diffcmd)
gitk: Add configuration for UI colour scheme
gitk: Don't compare fake children when comparing commits
gitk: Show diff of commits at end of compare-commits output
gitk: Add a user preference to enable/disable use of themed widgets
gitk: Fix errors in the theme patch
gitk: Use themed tk widgets
gitk: Restore scrolling position of diff pane on back/forward in history

Update draft release notes to 1.6.6 before -rc2Junio C Hamano Wed, 9 Dec 2009 21:38:52 +0000 (13:38 -0800)

Update draft release notes to 1.6.6 before -rc2

Reword the 1.7.0 warnings, and drop deprecation of "merge <msg> HEAD <commit>..."
syntax.

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

Merge branch 'maint'Junio C Hamano Wed, 9 Dec 2009 06:47:09 +0000 (22:47 -0800)

Merge branch 'maint'

* maint:
add-interactive: fix deletion of non-empty files
pull: clarify advice for the unconfigured error case

Merge branch 'mm/maint-merge-ff-error-message-fix'... Junio C Hamano Wed, 9 Dec 2009 06:42:23 +0000 (22:42 -0800)

Merge branch 'mm/maint-merge-ff-error-message-fix' into maint

* mm/maint-merge-ff-error-message-fix:
builtin-merge: show user-friendly error messages for fast-forward too.
merge-recursive: make the error-message generation an extern function

Conflicts:
merge-recursive.c

Merge branch 'jn/maint-pull-rebase-error-message' into... Junio C Hamano Wed, 9 Dec 2009 06:39:20 +0000 (22:39 -0800)

Merge branch 'jn/maint-pull-rebase-error-message' into maint

* jn/maint-pull-rebase-error-message:
pull: clarify advice for the unconfigured error case

Merge branch 'jk/maint-add-p-delete-fix' into maintJunio C Hamano Wed, 9 Dec 2009 06:37:50 +0000 (22:37 -0800)

Merge branch 'jk/maint-add-p-delete-fix' into maint

* jk/maint-add-p-delete-fix:
add-interactive: fix deletion of non-empty files

Merge git://git.bogomips.org/git-svnJunio C Hamano Wed, 9 Dec 2009 05:59:04 +0000 (21:59 -0800)

Merge git://git.bogomips.org/git-svn

* git://git.bogomips.org/git-svn:
git-svn: set svn.authorsfile earlier when cloning
git-svn: Set svn.authorsfile to an absolute path when cloning

git-svn: set svn.authorsfile earlier when cloningAlex Vandiver Tue, 8 Dec 2009 20:54:11 +0000 (15:54 -0500)

git-svn: set svn.authorsfile earlier when cloning

If a clone errors out because of a missing author, or user interrupt,
this allows `git svn fetch` to resume seamlessly, rather than forcing
the user to re-provide the path to the authors file.

[ew: shortened subject]
Signed-off-by: Alex Vandiver <alex@chmrr.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: Set svn.authorsfile to an absolute path when... Alex Vandiver Tue, 8 Dec 2009 20:54:10 +0000 (15:54 -0500)

git-svn: Set svn.authorsfile to an absolute path when cloning

If --authors-file is passed a relative path, cloning will work, but
future `git svn fetch`es will fail to locate the authors file
correctly. Thus, use File::Spec->rel2abs to determine an absolute
path for the authors file before setting it.

Signed-off-by: Alex Vandiver <alex@chmrr.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

Revert recent "git merge <msg> HEAD <commit>..." deprec... Junio C Hamano Tue, 8 Dec 2009 23:21:02 +0000 (15:21 -0800)

Revert recent "git merge <msg> HEAD <commit>..." deprecation

This reverts commit c0ecb07048ce2123589a2f077d296e8cf29a9570 "git-pull.sh:
Fix call to git-merge for new command format" and

commit b81e00a965c62ca72a4b9db425ee173de147808d "git-merge: a deprecation
notice of the ancient command line syntax".

They caused a "git pull" (without any arguments, and without any local
commits---only to update to the other side) to warn that commit log
message is ignored because the merge resulted in a fast-forward.

Another possible solution is to add an extra option to "git merge" so that
"git pull" can tell it that the message given is not coming from the end
user (the canned message is passed just in case the merge resulted in a
non-ff and caused commit), but I think it is easier _not_ to deprecate the
old syntax.

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

add-interactive: fix deletion of non-empty filesJeff King Tue, 8 Dec 2009 07:49:35 +0000 (02:49 -0500)

add-interactive: fix deletion of non-empty files

Commit 24ab81a fixed the deletion of empty files, but broke
deletion of non-empty files. The approach it took was to
factor out the "deleted" line from the patch header into its
own hunk, the same way we do for mode changes. However,
unlike mode changes, we only showed the special "delete this
file" hunk if there were no other hunks. Otherwise, the user
would annoyingly be presented with _two_ hunks: one for
deleting the file and one for deleting the content.

This meant that in the non-empty case, we forgot about the
deleted line entirely, and we submitted a bogus patch to
git-apply (with "/dev/null" as the destination file, but not
marked as a deletion).

Instead, this patch combines the file deletion hunk and the
content deletion hunk (if there is one) into a single
deletion hunk which is either staged or not.

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

git svn: log removals of empty directoriesEric Wong Tue, 8 Dec 2009 04:49:38 +0000 (20:49 -0800)

git svn: log removals of empty directories

This also adds a test case for:
"git svn: Don't create empty directories whose parents were deleted"
which was the reason we found this bug in the first place.

Signed-off-by: Eric Wong <normalperson@yhbt.net>

git svn: Don't create empty directories whose parents... Greg Price Tue, 8 Dec 2009 03:28:32 +0000 (22:28 -0500)

git svn: Don't create empty directories whose parents were deleted

Commit 6111b93 "git svn: attempt to create empty dirs on clone+rebase"
will create empty directories 'a/b' and 'a/c' if they were previously
created in SVN, even if their parent directory 'a' was deleted.

For example, unhandled.log may contain lines like this:

r32
+empty_dir: packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/sipb-xen-auto/acl
+empty_dir: packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/sipb-xen-auto/machine.d
+empty_dir: packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/sipb-xen-auto/moira-acl
[...]
r314
-empty_dir: packages/sipb-xen-remctl-auto

[ew: rewrote to be line-wrapped at <= 80-columns]

Reported-by: Evan Broder <broder@mit.edu>
Signed-off-by: Greg Price <price@ksplice.com>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-svn: sort svk merge tickets to account for minimal... Alex Vandiver Sun, 29 Nov 2009 07:20:21 +0000 (02:20 -0500)

git-svn: sort svk merge tickets to account for minimal parents

When merging branches based on svk:merge properties, a single merge
can have updated or added multiple svk:merge lines. Attempt to
include the minimal set of parents by sorting the merge properties in
order of revision, highest to lowest.

Signed-off-by: Alex Vandiver <alex@chmrr.net>
Acked-by: Sam Vilain <sam@vilain.net>
Acked-by: Eric Wong <normalperson@yhbt.net>

git-gui: suppress RenderBadPicture X error caused by... Jindrich Makovicka Fri, 4 Dec 2009 09:28:44 +0000 (10:28 +0100)

git-gui: suppress RenderBadPicture X error caused by Tk bug

Due to a bug in Tk, git-gui almost always (unless git-gui is closed
right after starting) produces an X window error message on exit,
something like:

X Error of failed request: RenderBadPicture (invalid Picture parameter)
Major opcode of failed request: 150 (RENDER)
Minor opcode of failed request: 7 (RenderFreePicture)
Picture id in failed request: 0x3a000dc
Serial number of failed request: 1965
Current serial number in output stream: 1980

Respective Tk bug report is here:

http://sourceforge.net/tracker/?func=detail&atid=112997&aid=1821174&group_id=12997

This bug is triggered only when the send command is blocked via
rename send {} . The following patch re-enables send just before
quiting git-gui to suppress the error.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

bash: update 'git commit' completionSZEDER Gábor Sat, 5 Dec 2009 00:51:41 +0000 (01:51 +0100)

bash: update 'git commit' completion

I just wanted to add the recently learnt '--reset-author' option, but
then noticed that there are many more options missing. This patch
adds support for all of 'git commit's options, except '--allow-empty',
because it is primarily there for foreign scm interfaces.

Furthermore, this patch also adds support for completing the arguments
of those options that take a non-filename argument: valid modes are
offered for '--cleanup' and '--untracked-files', while refs for
'--reuse-message' and '--reedit-message', because these two take a
commit as argument.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-gui: Increase blame viewer usability on MacOS.Alexander Gavrilov Thu, 13 Nov 2008 19:02:09 +0000 (22:02 +0300)

git-gui: Increase blame viewer usability on MacOS.

On MacOS raising a window causes the focus to be transferred
to it -- although it may actually be a bug in the Tcl/Tk port.
When this happens with the blame viewer tooltips, it makes
the interface less usable, because Entry and Leave handlers
on the text view cause the tip to disappear once the mouse
is moved even 1 pixel.

This commit makes the code raise the main window on MacOS
when Tk 8.5 is used. This version seems to properly support
wm transient by making the tip stay on top of the master,
so reraising the master does not cause it to disappear. Thus
the only remaining sign of problems is slight UI flicker
when focus is momentarily transferred to the tip and back.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: search 4 directories to improve statistic... Clemens Buchacher Sun, 13 Sep 2009 22:20:44 +0000 (00:20 +0200)

git-gui: search 4 directories to improve statistic of gc hint

On Windows, git-gui suggests running the garbage collector if it finds
1 or more files in .git/objects/42 (as opposed to 8 files on other
platforms). The probability of that happening if the repo contains
about 100 loose objects is 32%. The probability for the same to happen
when searching 4 directories is only 8%, which is bit more reasonable.

Also remove $objects_limit from the message, because we already know
that we are above (or close to) that limit. Telling the user about
that number does not really give him any useful information.

The following octave script shows the probability for at least m*q
objects to be found in q subdirectories of .git/objects if n is the
total number of objects.

q = 4;
m = [1 2 8];
n = 0:10:2000;

P = zeros(length(n), length(m));
for k = 1:length(n)
P(k, :) = 1-binocdf(q*m-1, n(k), q/(256-q));
end
plot(n, P);

n \ q 1 4
50 18% 1%
100 32% 8%
200 54% 39%
500 86% 96%

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git gui: make current branch default in "remote delete... Heiko Voigt Fri, 4 Dec 2009 21:26:48 +0000 (22:26 +0100)

git gui: make current branch default in "remote delete branch" merge check

We already do the same when locally deleting a branch.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Sync with 1.6.5.5Junio C Hamano Sat, 5 Dec 2009 19:39:13 +0000 (11:39 -0800)

Sync with 1.6.5.5

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

Git 1.6.5.5 v1.6.5.5Junio C Hamano Sat, 5 Dec 2009 19:08:35 +0000 (11:08 -0800)

Git 1.6.5.5

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

Fix diff -B/--dirstat miscounting of newly added contentsLinus Torvalds Fri, 4 Dec 2009 20:07:47 +0000 (12:07 -0800)

Fix diff -B/--dirstat miscounting of newly added contents

What used to happen is that diffcore_count_changes() simply ignored any
hashes in the destination that didn't match hashes in the source. EXCEPT
if the source hash didn't exist at all, in which case it would count _one_
destination hash that happened to have the "next" hash value. As a
consequence, newly added material was often undercounted, making output
from --dirstat and "complete rewrite" detection used by -B unrelialble.

This changes it so that:

- whenever it bypasses a destination hash (because it doesn't match a
source), it counts the bytes associated with that as "literal added"

- at the end (once we have used up all the source hashes), we do the same
thing with the remaining destination hashes.

- when hashes do match, and we use the difference in counts as a value,
we also use up that destination hash entry (the 'd++').

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

reset: improve worktree safety valvesJeff King Fri, 4 Dec 2009 11:11:58 +0000 (06:11 -0500)

reset: improve worktree safety valves

The existing code checked to make sure we were not in a bare
repository when doing a hard reset. However, we should take
this one step further, and make sure we are in a worktree.
Otherwise, we can end up munging files inside of '.git'.

Furthermore, we should do the same check for --merge resets,
which have the same properties. Actually, a merge reset of
HEAD^ would already complain, since further down in the code
we want a worktree. However, it is nicer to check up-front;
then we are sure we cover all cases ("git reset --merge"
would run, even though it wasn't doing anything) and we can
give a more specific message.

Add tests to t7103 to cover these cases and some missing ones.

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

Documentation: Avoid use of xmlto --stringparamTodd Zullinger Fri, 4 Dec 2009 17:53:21 +0000 (12:53 -0500)

Documentation: Avoid use of xmlto --stringparam

The --stringparam option is not available on older xmlto versions.
Instead, set man.base.url.for.relative.links via a .xsl file. Older
docbook versions will ignore this without causing grief to users of
older xmlto versions.

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

archive: clarify description of path parameterRené Scharfe Fri, 4 Dec 2009 23:11:01 +0000 (00:11 +0100)

archive: clarify description of path parameter

Mention that path parameters are based on the current working directory.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
--
Documentation/git-archive.txt | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Signed-off-by: Junio C Hamano <gitster@pobox.com>

rerere: don't segfault on failure to open rr-cacheJeff King Fri, 4 Dec 2009 10:35:57 +0000 (05:35 -0500)

rerere: don't segfault on failure to open rr-cache

The rr-cache directory should always exist if we are doing
garbage collection (earlier code paths check this
explicitly), but we may not necessarily succeed in opening
it (for example, due to permissions problems). In that case,
we should print an error message rather than simply
segfaulting.

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

Merge branch 'maint'Junio C Hamano Thu, 3 Dec 2009 22:07:46 +0000 (14:07 -0800)

Merge branch 'maint'

* maint:
Prepare for 1.6.5.5
Documentation: xmlto 0.0.18 does not know --stringparam
t4201: use ISO8859-1 rather than ISO-8859-1

Prepare for 1.6.5.5Junio C Hamano Thu, 3 Dec 2009 22:07:32 +0000 (14:07 -0800)

Prepare for 1.6.5.5

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

Merge branch 'uk/maint-shortlog-encoding' into maintJunio C Hamano Thu, 3 Dec 2009 21:56:50 +0000 (13:56 -0800)

Merge branch 'uk/maint-shortlog-encoding' into maint

* uk/maint-shortlog-encoding:
t4201: use ISO8859-1 rather than ISO-8859-1
shortlog: respect commit encoding

Merge branch 'fc/maint-format-patch-pathspec-dashes... Junio C Hamano Thu, 3 Dec 2009 21:54:25 +0000 (13:54 -0800)

Merge branch 'fc/maint-format-patch-pathspec-dashes' into maint

* fc/maint-format-patch-pathspec-dashes:
format-patch: add test for parsing of "--"
format-patch: fix parsing of "--" on the command line

Merge branch 'ap/maint-merge-strategy-list-fix' into... Junio C Hamano Thu, 3 Dec 2009 21:54:11 +0000 (13:54 -0800)

Merge branch 'ap/maint-merge-strategy-list-fix' into maint

* ap/maint-merge-strategy-list-fix:
builtin-merge.c: call exclude_cmds() correctly.

Merge branch 'jc/maint-am-keep' into maintJunio C Hamano Thu, 3 Dec 2009 21:54:03 +0000 (13:54 -0800)

Merge branch 'jc/maint-am-keep' into maint

* jc/maint-am-keep:
Remove dead code from "git am"

Merge branch 'rs/work-around-grep-opt-insanity' into... Junio C Hamano Thu, 3 Dec 2009 21:53:58 +0000 (13:53 -0800)

Merge branch 'rs/work-around-grep-opt-insanity' into maint

* rs/work-around-grep-opt-insanity:
Protect scripted Porcelains from GREP_OPTIONS insanity
mergetool--lib: simplify guess_merge_tool()

Merge branch 'rj/maint-cygwin-count-objects' into maintJunio C Hamano Thu, 3 Dec 2009 21:53:54 +0000 (13:53 -0800)

Merge branch 'rj/maint-cygwin-count-objects' into maint

* rj/maint-cygwin-count-objects:
git-count-objects: Fix a disk-space under-estimate on Cygwin

Merge branch 'mm/maint-hint-failed-merge' into maintJunio C Hamano Thu, 3 Dec 2009 21:52:54 +0000 (13:52 -0800)

Merge branch 'mm/maint-hint-failed-merge' into maint

* mm/maint-hint-failed-merge:
user-manual: Document that "git merge" doesn't like uncommited changes.
merge-recursive: point the user to commit when file would be overwritten.

Merge branch 'th/maint-remote-update-help-string' into... Junio C Hamano Thu, 3 Dec 2009 21:52:31 +0000 (13:52 -0800)

Merge branch 'th/maint-remote-update-help-string' into maint

* th/maint-remote-update-help-string:
Update 'git remote update' usage string to match man page.

Merge branch 'rj/maint-t9700' into maintJunio C Hamano Thu, 3 Dec 2009 21:52:22 +0000 (13:52 -0800)

Merge branch 'rj/maint-t9700' into maint

* rj/maint-t9700:
t9700-perl-git.sh: Fix a test failure on Cygwin

Merge branch 'ls/maint-mailinfo-no-inbody' into maintJunio C Hamano Thu, 3 Dec 2009 21:52:16 +0000 (13:52 -0800)

Merge branch 'ls/maint-mailinfo-no-inbody' into maint

* ls/maint-mailinfo-no-inbody:
git am/mailinfo: Don't look at in-body headers when rebasing

Merge branch 'mo/maint-crlf-doc' into maintJunio C Hamano Thu, 3 Dec 2009 21:52:11 +0000 (13:52 -0800)

Merge branch 'mo/maint-crlf-doc' into maint

* mo/maint-crlf-doc:
core.autocrlf documentation: mention the crlf attribute

Merge branch 'th/remote-usage' into maintJunio C Hamano Thu, 3 Dec 2009 21:51:53 +0000 (13:51 -0800)

Merge branch 'th/remote-usage' into maint

* th/remote-usage:
git remote: Separate usage strings for subcommands

Merge branch 'pb/maint-use-custom-perl' into maintJunio C Hamano Thu, 3 Dec 2009 21:51:41 +0000 (13:51 -0800)

Merge branch 'pb/maint-use-custom-perl' into maint

* pb/maint-use-custom-perl:
Make sure $PERL_PATH is defined when the test suite is run.

Merge branch 'mm/config-pathname-tilde-expand' into... Junio C Hamano Thu, 3 Dec 2009 21:51:36 +0000 (13:51 -0800)

Merge branch 'mm/config-pathname-tilde-expand' into maint

* mm/config-pathname-tilde-expand:
Documentation: avoid xmlto input error
expand_user_path: expand ~ to $HOME, not to the actual homedir.
Expand ~ and ~user in core.excludesfile, commit.template

Merge branch 'bc/grep-i-F' into maintJunio C Hamano Thu, 3 Dec 2009 21:51:26 +0000 (13:51 -0800)

Merge branch 'bc/grep-i-F' into maint

* bc/grep-i-F:
grep: Allow case insensitive search of fixed-strings

Merge branch 'jk/maint-break-rename-reduce-memory'... Junio C Hamano Thu, 3 Dec 2009 21:51:21 +0000 (13:51 -0800)

Merge branch 'jk/maint-break-rename-reduce-memory' into maint

* jk/maint-break-rename-reduce-memory:
diffcore-rename: reduce memory footprint by freeing blob data early
diffcore-break: save cnt_data for other phases
diffcore-break: free filespec data as we go

Merge branch 'rj/maint-simplify-cygwin-makefile' into... Junio C Hamano Thu, 3 Dec 2009 21:51:16 +0000 (13:51 -0800)

Merge branch 'rj/maint-simplify-cygwin-makefile' into maint

* rj/maint-simplify-cygwin-makefile:
Makefile: merge two Cygwin configuration sections into one

Merge branch 'rg/doc-workflow' into maintJunio C Hamano Thu, 3 Dec 2009 21:50:41 +0000 (13:50 -0800)

Merge branch 'rg/doc-workflow' into maint

* rg/doc-workflow:
Add branch management for releases to gitworkflows

Merge branch 'np/maint-sideband-favor-status' into... Junio C Hamano Thu, 3 Dec 2009 21:50:24 +0000 (13:50 -0800)

Merge branch 'np/maint-sideband-favor-status' into maint

* np/maint-sideband-favor-status:
give priority to progress messages

gitweb: Describe (possible) gitweb.js minification... Jakub Narebski Wed, 2 Dec 2009 21:14:36 +0000 (22:14 +0100)

gitweb: Describe (possible) gitweb.js minification in gitweb/README

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: xmlto 0.0.18 does not know --stringparamJunio C Hamano Thu, 3 Dec 2009 19:12:32 +0000 (11:12 -0800)

Documentation: xmlto 0.0.18 does not know --stringparam

Newer DocBook stylesheets want man.base.url.for.relative.links
parameter set when formatting manpages with external references
to turn them into full URLs, and leave a helpful "you should
set this parameter" message in the output. Earlier we added
the MAN_BASE_URL make variable to specify the value for it.

When MAN_BASE_URL is not given, it ought to be safe to set the
parameter to empty; it would result in an empty leading path for
older stylesheets that ignore the parameter, and newer ones
would produce the same "relative URL" without the message.

Unfortunately, older xmlto (at least version 0.0.18 released in
early 2004 that comes with RHEL/CentOS 5) does not understand
the --stringparam command line option, so we cannot add the
parameter definition unconditionally to the command line. Work
it around by passing the parameter only when set.

If you do not have a suitable URL prefix, you can pass a quoted empty
string to it, like so:

$ make MAN_BASE_URL='""'

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

Fix crasher on encountering SHA1-like non-note in notes... Johan Herland Thu, 3 Dec 2009 03:53:54 +0000 (04:53 +0100)

Fix crasher on encountering SHA1-like non-note in notes tree

When loading a notes tree, the code primarily looks for SHA1-like paths
whose total length (discounting directory separators) are 40 chars
(interpreted as valid note entries) or less (interpreted as subtree
entries that may in turn contain note entries when unpacked).

However, there is an additional condition that must hold for valid
subtree entries: They must be _tree_ objects (duh).

This patch adds an appropriate test for this condition, thereby fixing
the crash that occured when passing a non-tree object to the tree-walk
API.

The patch also adds another selftest verifying correct behaviour of
non-notes in note trees.

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

t9001: use older Getopt::Long boolean prefix '--no... Brandon Casey Thu, 3 Dec 2009 17:52:46 +0000 (11:52 -0600)

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

The '--no-chain-reply-to' option is a Getopt::Long boolean option. The
'--no-' prefix (as in --no-chain-reply-to) 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 '--nochain-reply-to'. 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>

t4201: use ISO8859-1 rather than ISO-8859-1Brandon Casey Thu, 3 Dec 2009 17:52:45 +0000 (11:52 -0600)

t4201: use ISO8859-1 rather than ISO-8859-1

Some ancient platforms do not have an extensive list of alternate names for
character encodings. For example, Solaris 7 and IRIX 6.5 do not know that
ISO-8859-1 is the same as ISO8859-1. Modern platforms do know this, so use
the older name.

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

pull: clarify advice for the unconfigured error caseJan Krüger Fri, 27 Nov 2009 14:17:05 +0000 (08:17 -0600)

pull: clarify advice for the unconfigured error case

When pull --rebase fails because it cannot find what branch to
merge against, the error message implies we are trying to merge.
Say "rebase against" instead of "merge with" to avoid confusion.

The configuration suggested to remedy the situation uses a
confusing syntax, with variables specified in the dotted form
accepted by 'git config' but separated from their values by the
'=' delimiter used by config files. Since the user will have to
edit this output anyway, it is more helpful to provide a config
file snippet to paste into an editor and modify.

Signed-off-by: Jan Krüger <jk@jk.gs>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge in 1.6.5.4Junio C Hamano Thu, 3 Dec 2009 08:37:56 +0000 (00:37 -0800)

Merge in 1.6.5.4

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

Git 1.6.5.4 v1.6.5.4Junio C Hamano Thu, 3 Dec 2009 08:08:16 +0000 (00:08 -0800)

Git 1.6.5.4

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

Unconditionally set man.base.url.for.relative.linksJunio C Hamano Thu, 3 Dec 2009 08:06:52 +0000 (00:06 -0800)

Unconditionally set man.base.url.for.relative.links

Even setting it to empty is better than leaving it unset as it
prevents the warning cruft from appearing in the output.

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

Merge branch 'maint'Junio C Hamano Thu, 3 Dec 2009 02:45:26 +0000 (02:45 +0000)

Merge branch 'maint'