gitweb.git
Preparation to call determine_author_info from prepare_... Santi Béjar Sun, 4 May 2008 16:04:49 +0000 (18:04 +0200)

Preparation to call determine_author_info from prepare_to_commit

Reorder functions definitions such that determine_author_info is
defined before prepare_to_commit. No code changes.

Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'jc/lstat'Junio C Hamano Tue, 6 May 2008 02:16:26 +0000 (19:16 -0700)

Merge branch 'jc/lstat'

* jc/lstat:
diff-files: mark an index entry we know is up-to-date as such
write_index(): optimize ce_smudge_racily_clean_entry() calls with CE_UPTODATE

Merge branch 'bc/filter-branch'Junio C Hamano Tue, 6 May 2008 02:16:20 +0000 (19:16 -0700)

Merge branch 'bc/filter-branch'

* bc/filter-branch:
filter-branch.sh: support nearly proper tag name filtering

Merge branch 'lh/git-file'Junio C Hamano Tue, 6 May 2008 02:16:16 +0000 (19:16 -0700)

Merge branch 'lh/git-file'

* lh/git-file:
Teach GIT-VERSION-GEN about the .git file
Teach git-submodule.sh about the .git file
Teach resolve_gitlink_ref() about the .git file
Add platform-independent .git "symlink"

Merge branch 'jk/fetch-status'Junio C Hamano Tue, 6 May 2008 02:16:12 +0000 (19:16 -0700)

Merge branch 'jk/fetch-status'

* jk/fetch-status:
git-fetch: always show status of non-tracking-ref fetches

Merge branch 'lh/branch-merged'Junio C Hamano Tue, 6 May 2008 02:16:06 +0000 (19:16 -0700)

Merge branch 'lh/branch-merged'

* lh/branch-merged:
Add tests for `branch --[no-]merged`
git-branch.txt: compare --contains, --merged and --no-merged
git-branch: add support for --merged and --no-merged

Merge branch 'pb/remote-mirror-config'Junio C Hamano Tue, 6 May 2008 02:15:39 +0000 (19:15 -0700)

Merge branch 'pb/remote-mirror-config'

* pb/remote-mirror-config:
Add a remote.*.mirror configuration option

graph API: eliminate unnecessary indentationAdam Simpkins Mon, 5 May 2008 07:57:03 +0000 (00:57 -0700)

graph API: eliminate unnecessary indentation

This change improves the calculation of the amount of horizontal
padding, so that there is always exactly 1 space of padding.
Previously, most commits had 3 spaces of padding, but commits that
didn't have any children in the graph had only 1 space of padding.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

log and rev-list: add --graph optionAdam Simpkins Sun, 4 May 2008 10:36:54 +0000 (03:36 -0700)

log and rev-list: add --graph option

This new option causes a text-based representation of the history to be
printed to the left of the normal output.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Add history graph APIAdam Simpkins Sun, 4 May 2008 10:36:53 +0000 (03:36 -0700)

Add history graph API

This new API allows the commit history to be displayed as a text-based
graphical representation.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

revision API: split parent rewriting and parent printin... Adam Simpkins Sun, 4 May 2008 10:36:52 +0000 (03:36 -0700)

revision API: split parent rewriting and parent printing options

This change allows parent rewriting to be performed without causing
the log and rev-list commands to print the parents.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

post-merge: Add it's not executed if merge failed.Jörg Sommer Mon, 5 May 2008 09:06:49 +0000 (11:06 +0200)

post-merge: Add it's not executed if merge failed.

Signed-off-by: J��rg Sommer <joerg@alea.gnuu.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-bisect.sh: don't accidentally override existing... Gerrit Pape Mon, 5 May 2008 07:43:00 +0000 (07:43 +0000)

git-bisect.sh: don't accidentally override existing branch "bisect"

If a branch named "bisect" or "new-bisect" already was created in the
repo by other means than git bisect, doing a git bisect used to override
the branch without a warning. Now if the branch "bisect" or
"new-bisect" already exists, and it was not created by git bisect itself,
git bisect start fails with an appropriate error message. Additionally,
if checking out a new bisect state fails due to a merge problem, git
bisect cleans up the temporary branch "new-bisect".

The accidental override has been noticed by Andres Salomon, reported
through
http://bugs.debian.org/478647

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: Add create-ignore to git svn manualGustaf Hendeby Sun, 4 May 2008 22:33:10 +0000 (00:33 +0200)

Documentation: Add create-ignore to git svn manual

Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-svn: Make create-ignore use git add -fGustaf Hendeby Sun, 4 May 2008 22:33:09 +0000 (00:33 +0200)

git-svn: Make create-ignore use git add -f

When having a svn:ignore that ignores the .gitignore file the -f
option to git add must be used to avoid git complaining about adding
an ignored file and hence stop the process of creating .gitignores.

Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

INSTALL: add a note about GNU interactive tools has... Miklos Vajna Sun, 4 May 2008 14:55:11 +0000 (16:55 +0200)

INSTALL: add a note about GNU interactive tools has been renamed

In recent versions GNU's git has been renamed to gnuit, document this
while talking about how to resolve the conflict.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Rename the test trash directory to contain spaces.Bryan Donlan Sun, 4 May 2008 05:38:00 +0000 (01:38 -0400)

Rename the test trash directory to contain spaces.

In order to help prevent regressions in the future, rename the trash directory
for all tests to contain spaces. This patch also corrects two failures that
were caused or exposed by this change.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fix tests breaking when checkout path contains shell... Bryan Donlan Sun, 4 May 2008 05:37:59 +0000 (01:37 -0400)

Fix tests breaking when checkout path contains shell metacharacters

This fixes the remainder of the issues where the test script itself is at
fault for failing when the git checkout path contains whitespace or other
shell metacharacters.

The majority of git svn tests used the idiom

test_expect_success "title" "test script using $svnrepo"

These were changed to have the test script in single-quotes:

test_expect_success "title" 'test script using "$svnrepo"'

which unfortunately makes the patch appear larger than it really is.

One consequence of this change is that in the verbose test output the
value of $svnrepo (and in some cases other variables, too) is no
longer expanded, i.e. previously we saw

* expecting success:
test script using /path/to/git/t/trash/svnrepo

but now it is:

* expecting success:
test script using "$svnrepo"

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Don't use the 'export NAME=value' in the test scripts.Bryan Donlan Sun, 4 May 2008 05:37:58 +0000 (01:37 -0400)

Don't use the 'export NAME=value' in the test scripts.

This form is not portable across all shells, so replace instances of:

export FOO=bar

with:

FOO=bar
export FOO

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

lib-git-svn.sh: Fix quoting issues with paths containin... Bryan Donlan Sun, 4 May 2008 05:37:57 +0000 (01:37 -0400)

lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

test-lib.sh: Fix some missing path quotingBryan Donlan Sun, 4 May 2008 05:37:56 +0000 (01:37 -0400)

test-lib.sh: Fix some missing path quoting

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Use test_set_editor in t9001-send-email.shBryan Donlan Sun, 4 May 2008 05:37:55 +0000 (01:37 -0400)

Use test_set_editor in t9001-send-email.sh

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

test-lib.sh: Add a test_set_editor function to safely... Bryan Donlan Sun, 4 May 2008 05:37:54 +0000 (01:37 -0400)

test-lib.sh: Add a test_set_editor function to safely set $VISUAL

In particular, this function correctly handles cases where the pwd contains
spaces, quotes, and other troublesome metacharacters.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-send-email.perl: Handle shell metacharacters in... Bryan Donlan Sun, 4 May 2008 05:37:53 +0000 (01:37 -0400)

git-send-email.perl: Handle shell metacharacters in $EDITOR properly

This fixes the git-send-perl semantics for launching an editor when
$GIT_EDITOR (or friends) contains shell metacharacters to match
launch_editor() in builtin-tag.c. If we use the current approach
(sh -c '$0 $@' "$EDITOR" files ...), we see it fails when $EDITOR has
shell metacharacters:

$ sh -x -c '$0 $@' "$VISUAL" "foo"
+ "$FAKE_EDITOR" foo
"$FAKE_EDITOR": 1: "$FAKE_EDITOR": not found

Whereas builtin-tag.c will invoke sh -c "$EDITOR \"$@\"".

Thus, this patch changes git-send-email.perl to use the same method as the
C utilities, and additionally updates t/t9001-send-email.sh to test for
this bug.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.c: Escape backslashes in section names properlyBryan Donlan Sun, 4 May 2008 05:37:52 +0000 (01:37 -0400)

config.c: Escape backslashes in section names properly

If an element of the configuration key name other than the first or last
contains a backslash, it is not escaped on output, but is treated as an
escape sequence on input. Thus, the backslash is lost when re-loading
the configuration.

This patch corrects this by having backslashes escaped properly, and
introduces a new test for this bug.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-rebase.sh: Fix --merge --abort failures when path... Bryan Donlan Sun, 4 May 2008 05:37:51 +0000 (01:37 -0400)

git-rebase.sh: Fix --merge --abort failures when path contains whitespace

Also update t/t3407-rebase-abort.sh to expose the bug.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: rename "hooks.txt" to "githooks.txt... Christian Couder Fri, 2 May 2008 03:30:47 +0000 (05:30 +0200)

Documentation: rename "hooks.txt" to "githooks.txt" and make it a man page

Also now "gitcli(5)" becomes "gitcli(7)".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

is_racy_timestamp(): do not check timestamp for gitlinksJunio C Hamano Sun, 4 May 2008 00:24:28 +0000 (17:24 -0700)

is_racy_timestamp(): do not check timestamp for gitlinks

Because we do not even check the timestamp to determie if a gitlink
is up to date or not, triggering the racy-timestamp check for gitlinks
does not make sense.

This fixes the recently added test in t7506.

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

diff-lib.c: rename check_work_tree_entity()Junio C Hamano Sun, 4 May 2008 00:23:46 +0000 (17:23 -0700)

diff-lib.c: rename check_work_tree_entity()

The function is about checking for removed work tree item, so name it
accordingly to avoid future confusion.

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

diff: a submodule not checked out is not modifiedJunio C Hamano Sun, 4 May 2008 00:04:42 +0000 (17:04 -0700)

diff: a submodule not checked out is not modified

948dd34 (diff-index: careful when inspecting work tree items, 2008-03-30)
made the work tree check careful not to be fooled by a new directory that
exists at a place the index expects a blob. For such a change to be a
typechange from blob to submodule, the new directory has to be a
repository.

However, if the index expects a submodule there, we should not insist the
work tree entity to be a repository --- a simple directory that is not a
full fledged repository (even an empty directory would do) should be
considered an unmodified subproject, because that is how a superproject
with a submodule is checked out sparsely by default.

This makes the function check_work_tree_entity() even more careful not to
report a submodule that is not checked out as removed. It fixes the
recently added test in t4027.

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

Add t7506 to test submodule related functions for git... Ping Yin Fri, 2 May 2008 13:35:34 +0000 (21:35 +0800)

Add t7506 to test submodule related functions for git-status

Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t4027: test diff for submodule with empty directoryPing Yin Fri, 2 May 2008 13:35:33 +0000 (21:35 +0800)

t4027: test diff for submodule with empty directory

Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Cleanup xread() loops to use read_in_full()Heikki Orsila Sat, 3 May 2008 13:27:26 +0000 (16:27 +0300)

Cleanup xread() loops to use read_in_full()

Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint'Junio C Hamano Sun, 4 May 2008 05:15:09 +0000 (22:15 -0700)

Merge branch 'maint'

* maint:
checkout: don't rfc2047-encode oneline on detached HEAD
filter-branch: Documentation fix.

Merge branch 'maint-1.5.4' into maintJunio C Hamano Sun, 4 May 2008 01:55:33 +0000 (18:55 -0700)

Merge branch 'maint-1.5.4' into maint

* maint-1.5.4:
filter-branch: Documentation fix.

checkout: don't rfc2047-encode oneline on detached... Jeff King Fri, 2 May 2008 14:05:36 +0000 (10:05 -0400)

checkout: don't rfc2047-encode oneline on detached HEAD

When calling pretty_print_commit, there is an implicit
assumption that passing in a non-NULL "subject" variable
for oneline or email formats means that the output is part
of a subject and therefore "subject" to rfc2047 encoding.
This is not the desired effect when reporting the movement
of detached HEAD.

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

pack-objects: fix early eviction for max depth delta... Nicolas Pitre Fri, 2 May 2008 19:11:51 +0000 (15:11 -0400)

pack-objects: fix early eviction for max depth delta objects

The 'depth' variable doesn't reflect the actual maximum depth used
when other objects already depend on the current one.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

pack-objects: allow for early delta deflatingNicolas Pitre Fri, 2 May 2008 19:11:50 +0000 (15:11 -0400)

pack-objects: allow for early delta deflating

When the delta data is cached in memory until it is written to a pack
file on disk, it is best to compress it right away in find_deltas() for
the following reasons:

- we have to compress that data anyway;

- this allows for caching more deltas with the same cache size limit;

- compression is potentially threaded.

This last point is especially relevant for SMP run time. For example,
repacking the Linux repo on a quad core processor using 4 threads with
all default settings produce the following results before this change:

real 2m27.929s
user 4m36.492s
sys 0m3.091s

And with this change applied:

real 2m13.787s
user 4m37.486s
sys 0m3.159s

So the actual execution time stayed more or less the same but the
wall clock time is shorter.

This is however not a good thing to do when generating a pack for
network transmission. In that case, the network is most likely to
throttle the data throughput, so it is best to make find_deltas()
faster in order to start writing data ASAP since we can afford
spending more time between writes to compress the data
at that point.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

pack-objects: move compression code in a separate functionNicolas Pitre Fri, 2 May 2008 19:11:49 +0000 (15:11 -0400)

pack-objects: move compression code in a separate function

A later patch will make use of that code too.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

pack-objects: clean up write_object() a bitNicolas Pitre Fri, 2 May 2008 19:11:48 +0000 (15:11 -0400)

pack-objects: clean up write_object() a bit

... for improved readability. No functional changes.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

pack-objects: simplify the condition associated with... Nicolas Pitre Fri, 2 May 2008 19:11:47 +0000 (15:11 -0400)

pack-objects: simplify the condition associated with --all-progress

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

pack-objects: remove some double negative logicNicolas Pitre Fri, 2 May 2008 19:11:46 +0000 (15:11 -0400)

pack-objects: remove some double negative logic

Parsing !no_reuse_delta everywhere makes my brain spend extra
cycles wondering each time.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

pack-objects: small cleanupNicolas Pitre Fri, 2 May 2008 19:11:45 +0000 (15:11 -0400)

pack-objects: small cleanup

Better encapsulate delta creation for writing.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Documentation: hooks: fix missing verb in pre-applypatc... Christian Couder Fri, 2 May 2008 03:30:41 +0000 (05:30 +0200)

Documentation: hooks: fix missing verb in pre-applypatch description

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

diff: make "too many files" rename warning optionalJeff King Wed, 30 Apr 2008 17:25:53 +0000 (13:25 -0400)

diff: make "too many files" rename warning optional

In many cases, the warning ends up as clutter, because the
diff is being done "behind the scenes" from the user (e.g.,
when generating a commit diffstat), and whether we show
renames or not is not particularly interesting to the user.

However, in the case of a merge (which is what motivated the
warning in the first place), it is a useful hint as to why a
merge with renames might have failed.

This patch makes the warning optional based on the code
calling into diffcore. We default to not showing the
warning, but turn it on for merges.

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

bump rename limit defaultsJeff King Wed, 30 Apr 2008 17:24:43 +0000 (13:24 -0400)

bump rename limit defaults

The current rename limit default of 100 was arbitrarily
chosen. Testing[1] has shown that on modern hardware, a
limit of 200 adds about a second of computation time, and a
limit of 500 adds about 5 seconds of computation time.

This patch bumps the default limit to 200 for viewing diffs,
and to 500 for performing a merge. The limit for generating
git-status templates is set independently; we bump it up to
200 here, as well, to match the diff limit.

[1]: See <20080211113516.GB6344@coredump.intra.peff.net>

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

add merge.renamelimit config optionJeff King Wed, 30 Apr 2008 17:23:55 +0000 (13:23 -0400)

add merge.renamelimit config option

The point of rename limiting is to bound the amount of time
we spend figuring out inexact renames. Currently we use a
single value, diff.renamelimit, for all situations. However,
it is probably the case that a user is willing to spend more
time finding renames during a merge than they are while
looking at git-log.

This patch provides a way of setting those values separately
(though for backwards compatibility, merge still falls back
on the diff renamelimit).

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

Merge commit 'sg/merge-options^' into jk/renamelimitJunio C Hamano Sat, 3 May 2008 20:18:20 +0000 (13:18 -0700)

Merge commit 'sg/merge-options^' into jk/renamelimit

* commit 'sg/merge-options^':
merge, pull: add '--(no-)log' command line option
fmt-merge-msg: add '--(no-)log' options and 'merge.log' config variable
add 'merge.stat' config variable
merge, pull: introduce '--(no-)stat' option
doc: moved merge.* config variables into separate merge-config.txt

filter-branch: Documentation fix.Florian Ragwitz Wed, 30 Apr 2008 07:47:43 +0000 (09:47 +0200)

filter-branch: Documentation fix.

It's --msg-filter, not --message-filter.

Signed-off-by: Florian Ragwitz <rafl@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

log: print log entry terminator even if the message... Adam Simpkins Tue, 29 Apr 2008 08:33:00 +0000 (01:33 -0700)

log: print log entry terminator even if the message is empty

This eliminates a special case in the show_log() function, to help
simplify the terminator semantics. Now show_log() always prints a
newline after the log entry when use_terminator is set, even if the log
message is empty.

This change should only affect the --pretty=tformat output, since that
was the only way to trigger this special case.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Remove dead code: show_log() sep argument and diff_opti... Adam Simpkins Tue, 29 Apr 2008 08:32:59 +0000 (01:32 -0700)

Remove dead code: show_log() sep argument and diff_options.msg_sep

These variables were made unnecessary by commit
3969cf7db1a13a78f3b7a36d8c1084bbe0a53459.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitk: Disable "Reset %s branch to here" when on a detac... Michele Ballabio Fri, 2 May 2008 15:46:20 +0000 (17:46 +0200)

gitk: Disable "Reset %s branch to here" when on a detached head

When we are on a detached head - since gitk does not display where
we are - reset has no sense, so disable the relevant line on the
context menu, and point out to the user that we are on a detached head.

Otherwise, a reset from gitk when on a detached head returns the
error:

can't read "headids()": no such element in array
can't read "headids()": no such element in array
while executing
"removehead $headids($name) $name"
(procedure "movehead" line 4)
invoked from within
"movehead $newhead $mainhead"
(procedure "readresetstat" line 20)
invoked from within
"readresetstat file4"
("eval" body line 1)
invoked from within
"eval $script"
(procedure "dorunq" line 9)
invoked from within
"dorunq"
("after" script)

[paulus@samba.org: changed menu item to "Detached head: can't reset"]

Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

gitk: German translation again updatedChristian Stimming Fri, 2 May 2008 19:33:34 +0000 (21:33 +0200)

gitk: German translation again updated

This includes suggestions by Stephan Beyer.

Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>

gitk: Update German translationChristian Stimming Thu, 1 May 2008 19:38:37 +0000 (21:38 +0200)

gitk: Update German translation

Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>

gitk: Makefile/install: force permissions when installi... Gerrit Pape Mon, 14 Apr 2008 08:27:09 +0000 (08:27 +0000)

gitk: Makefile/install: force permissions when installing files and dirs

The msg-files msgs/*.msg used to be installed with mode 755 although
they're not executables. With this commit, files are forced to be
installed with mode 644, directories and executables with mode 755.

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

gitk: Initial Swedish translation.Peter Karlsson Fri, 14 Mar 2008 15:13:17 +0000 (16:13 +0100)

gitk: Initial Swedish translation.

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

gitk: Spanish translation of gitkSantiago Gala Tue, 25 Mar 2008 10:48:22 +0000 (11:48 +0100)

gitk: Spanish translation of gitk

I copied the Italian translation and translated the strings
to Spanish starting from there. This incorporates suggestions
from Wincent Colaiuta and Carlos Rica.

Signed-off-by: Santiago Gala <sgala@apache.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>

git-gui: Update German translationChristian Stimming Thu, 1 May 2008 09:51:47 +0000 (11:51 +0200)

git-gui: Update German translation

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-svn: Same default as cvsimport when using --use... Stephen R. van den Berg Tue, 29 Apr 2008 21:20:32 +0000 (23:20 +0200)

git-svn: Same default as cvsimport when using --use-log-author

When using git-cvsimport, the author is inferred from the cvs commit,
e.g. cvs commit logname is foobaruser, then the author field in git
results in:

Author: foobaruser <foobaruser>

Which is not perfect, but perfectly acceptable given the circumstances.

The default git-svn import however, results in:

Author: foobaruser <foobaruser@acf43c95-373e-0410-b603-e72c3f656dc1>

When using mixes of imports, from CVS and SVN into the same git
repository, you'd like to harmonise the imports to the format cvsimport
uses.
git-svn supports an experimental option --use-log-author which currently
results in the same logentry as without that option when no From: or
Signed-off-by: is found in the logentry ($email currently ends up empty,
and hence is generated again).

This patches harmonises the result with cvsimport, and makes
git-svn --use-log-author produce:

Author: foobaruser <foobaruser>

Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint'Junio C Hamano Wed, 30 Apr 2008 18:43:37 +0000 (11:43 -0700)

Merge branch 'maint'

* maint:
fetch-pack: brown paper bag fix

fetch-pack: brown paper bag fixJunio C Hamano Wed, 30 Apr 2008 18:42:05 +0000 (11:42 -0700)

fetch-pack: brown paper bag fix

When I applied Linus's patch from the list by hand somehow I ended
up reversing the logic by mistake. This fixes it.

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

Documentation: point git-prune users to git-gcJeff King Tue, 29 Apr 2008 20:45:14 +0000 (16:45 -0400)

Documentation: point git-prune users to git-gc

Most users should be using git-gc instead of directly
calling prune. For those who really do want more information
on pruning, let's point them at git-fsck, which goes into
slightly more detail on reachability.

And since we're pointing users there, let's make sure
reflogs are mentioned in git-fsck(1).

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

Documentation on --git-dir and --work-treeLiu Yubao Mon, 28 Apr 2008 20:09:20 +0000 (04:09 +0800)

Documentation on --git-dir and --work-tree

Make read_in_full() and write_in_full() consistent... Heikki Orsila Sun, 27 Apr 2008 18:21:58 +0000 (21:21 +0300)

Make read_in_full() and write_in_full() consistent with xread() and xwrite()

xread() and xwrite() return ssize_t values as their native POSIX
counterparts read(2) and write(2).

To be consistent, read_in_full() and write_in_full() should also return
ssize_t values.

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

Documentation gitk: Describe what --merge doesRichard Quirk Mon, 28 Apr 2008 20:58:35 +0000 (22:58 +0200)

Documentation gitk: Describe what --merge does

Signed-off-by: Richard Quirk <richard.quirk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Use the modern syntax of git-diff-files in t2002-checko... Alex Riesen Sun, 27 Apr 2008 11:31:23 +0000 (13:31 +0200)

Use the modern syntax of git-diff-files in t2002-checkout-cache-u.sh

As a nice side effect it also fixes t2002-checkout-cache-u.sh on FreeBSD 4,
/bin/sh of which has problems interpreting "! command" construction.

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

Add otherwise missing --strict option to unpack-objects... Jon Loeliger Wed, 23 Apr 2008 21:14:30 +0000 (16:14 -0500)

Add otherwise missing --strict option to unpack-objects summary.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-svn: detect and fail gracefully when dcommitting... Matthieu Moy Thu, 24 Apr 2008 18:06:36 +0000 (20:06 +0200)

git-svn: detect and fail gracefully when dcommitting to a void

The command

git svn clone (URL of an empty SVN repo here)

works, creates an empty git repository. I can perform the initial
commit there, but then, "git svn dcommit" says :

Use of uninitialized value in concatenation (.) or string at .../git-svn line 414.
Committing to ...
Unable to determine upstream SVN information from HEAD history

I guess a correct management of the initial commit in git-svn would be
hard to implement, but at least, the error message can be improved.
First step is something like the patch below, and better would be for
"git svn clone" to warn that it won't be able to do much with the
cloned repo.

Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

make git-status use a pagerBart Trojanowski Thu, 24 Apr 2008 00:57:48 +0000 (20:57 -0400)

make git-status use a pager

make git status act similar to git log and git diff by presenting long
output in a pager.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint'Junio C Hamano Wed, 30 Apr 2008 06:06:30 +0000 (23:06 -0700)

Merge branch 'maint'

* maint:
cvsimport: always pass user data to "system" as a list
fix reflog approxidate parsing bug
Fix use after free() in builtin-fetch
fetch-pack: do not stop traversing an already parsed commit
Use "=" instead of "==" in condition as it is more portable

Merge branch 'maint-1.5.4' into maintJunio C Hamano Wed, 30 Apr 2008 05:55:07 +0000 (22:55 -0700)

Merge branch 'maint-1.5.4' into maint

* maint-1.5.4:
cvsimport: always pass user data to "system" as a list
fix reflog approxidate parsing bug

cvsimport: always pass user data to "system" as a listJeff King Wed, 30 Apr 2008 04:36:14 +0000 (00:36 -0400)

cvsimport: always pass user data to "system" as a list

This avoids invoking the shell. Not only is it faster, but
it prevents the possibility of interpreting our arguments in
the shell.

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

fix reflog approxidate parsing bugJeff King Wed, 30 Apr 2008 04:13:58 +0000 (00:13 -0400)

fix reflog approxidate parsing bug

In get_sha1_basic, we parse a string like

HEAD@{10 seconds ago}:path/to/file

into its constituent ref, reflog date, and path components.
We never actually munge the string itself, but instead keep
offsets into the string with their associated lengths.

When we call approxidate on the contents inside braces,
however, we pass just a string without a length. This means
that approxidate could sometimes look past the closing brace
and (erroneously) interpret the rest of the string as part
of the date.

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

Add tests for sendemail.cc configuration variableMiklos Vajna Tue, 29 Apr 2008 10:56:47 +0000 (12:56 +0200)

Add tests for sendemail.cc configuration variable

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-send-email: add a new sendemail.cc configuration... Miklos Vajna Sun, 27 Apr 2008 12:14:58 +0000 (14:14 +0200)

git-send-email: add a new sendemail.cc configuration variable

Some projects prefer to always CC patches to a given mailing list. In
these cases, it's handy to configure that address once.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-format-patch: add a new format.cc configuration... Miklos Vajna Sat, 26 Apr 2008 21:19:06 +0000 (23:19 +0200)

git-format-patch: add a new format.cc configuration variable

Some projects prefer to always CC patches to a given mailing list. In
these cases, it's handy to configure that address once.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Simplify and fix --first-parent implementationStephen R. van den Berg Sun, 27 Apr 2008 17:32:46 +0000 (19:32 +0200)

Simplify and fix --first-parent implementation

The purpose of --first-parent is to view the tree without looking at
side branche. This is accomplished by pretending there are no other
parents than the first parent when encountering a merge.

The current code marks the other parents as seen, which means that the tree
traversal will behave differently depending on the order merges are handled.

When a fast forward is artificially recorded as a merge,

-----
/ \
D---E---F---G master

the current first-parent code considers E to be seen and stops the
traversal after showing G and F.

Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fix use after free() in builtin-fetchAlex Riesen Mon, 28 Apr 2008 20:23:35 +0000 (22:23 +0200)

Fix use after free() in builtin-fetch

As reported by Dave Jones:

Since master.kernel.org updated to latest, I noticed that I could crash
git-fetch by doing this..

export KERNEL=/pub/scm/linux/kernel/git/
git fetch $KERNEL/torvalds/linux-2.6 master:linus

(gdb) bt
0 0x000000349fd6d44b in free () from /lib64/libc.so.6
1 0x000000000048f4eb in transport_unlock_pack (transport=0x7ce530) at transport.c:811
2 0x000000349fd31b25 in exit () from /lib64/libc.so.6
3 0x00000000004043d8 in handle_internal_command (argc=3, argv=0x7fffea4449f0) at git.c:379
4 0x0000000000404547 in main (argc=3, argv=0x7fffea4449f0) at git.c:443
5 0x000000349fd1c784 in __libc_start_main () from /lib64/libc.so.6
6 0x0000000000403ef9 in ?? ()
7 0x00007fffea4449d8 in ?? ()
8 0x0000000000000000 in ?? ()

I then remembered, my .bashrc has this..

export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

which is handy for showing up such bugs.

More info on this glibc feature is at http://udrepper.livejournal.com/11429.html

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

fetch-pack: do not stop traversing an already parsed... Linus Torvalds Mon, 28 Apr 2008 23:27:49 +0000 (16:27 -0700)

fetch-pack: do not stop traversing an already parsed commit

f3ec549 (fetch-pack: check parse_commit/object results, 2008-03-03)
broke common ancestor computation by stopping traversal when it sees
an already parsed commit. This should fix it.

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

Use "=" instead of "==" in condition as it is more... Alex Riesen Mon, 28 Apr 2008 21:09:55 +0000 (23:09 +0200)

Use "=" instead of "==" in condition as it is more portable

At least the dash from Ubuntu's /bin/sh says:

test: 233: ==: unexpected operator

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

Die for an early EOF in a file reading loopHeikki Orsila Sun, 27 Apr 2008 14:07:24 +0000 (17:07 +0300)

Die for an early EOF in a file reading loop

The resulting data is zero terminated after the read loop, but
the subsequent loop that scans for '\n' will overrun the buffer.

Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Document functions xmemdupz(), xread() and xwrite()Heikki Orsila Sun, 27 Apr 2008 09:48:30 +0000 (12:48 +0300)

Document functions xmemdupz(), xread() and xwrite()

Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'maint'Junio C Hamano Mon, 28 Apr 2008 04:47:51 +0000 (21:47 -0700)

Merge branch 'maint'

* maint:
clone: detect and fail on excess parameters
Remove 'header' from --signoff option description

clone: detect and fail on excess parametersJunio C Hamano Wed, 23 Apr 2008 17:53:47 +0000 (10:53 -0700)

clone: detect and fail on excess parameters

"git clone [options] $src $dst excess-garbage" simply ignored
excess-garbage without giving any diagnostic message. Fix it.

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

Merge branch 'maint-1.5.4' into maintJunio C Hamano Mon, 28 Apr 2008 04:47:38 +0000 (21:47 -0700)

Merge branch 'maint-1.5.4' into maint

* maint-1.5.4:
Remove 'header' from --signoff option description

Remove 'header' from --signoff option descriptionDan McGee Sun, 27 Apr 2008 00:43:20 +0000 (19:43 -0500)

Remove 'header' from --signoff option description

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

bash: Add completion for gitk --mergeRichard Quirk Sun, 27 Apr 2008 15:35:10 +0000 (17:35 +0200)

bash: Add completion for gitk --merge

Option is only completed when .git/MERGE_HEAD is present.

Signed-off-by: Richard Quirk <richard.quirk@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitk: Fix handling of tree file list with special chars... Paul Mackerras Sun, 27 Apr 2008 23:40:50 +0000 (09:40 +1000)

gitk: Fix handling of tree file list with special chars in names

Alex Riesen pointed out that displaying a commit in 'tree' mode fails
if some files have names with special characters such as '{' or '}' in
them, due to the fact that we treat the line returned from git ls-tree
as a Tcl list at one point.

This fixes it by doing what I originally intended but didn't quite
get right. We split the line from git ls-tree at the first tab and
treat the part before the tab as a list (which is OK since it doesn't
have special characters in it) and the part after the tab as the
filename.

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

rev-parse: fix --verify to error out when passed junk... Christian Couder Sat, 26 Apr 2008 13:19:29 +0000 (15:19 +0200)

rev-parse: fix --verify to error out when passed junk after a good rev

Before this patch something like:

$ git rev-parse --verify <good-rev> <junk>

worked whatever junk was as long as <good-rev> could be parsed
correctly.

This patch makes "git rev-parse --verify" error out when passed
any junk after a good rev.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git checkout: add -t alias for --trackMiklos Vajna Wed, 23 Apr 2008 23:04:48 +0000 (01:04 +0200)

git checkout: add -t alias for --track

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

rev-parse: teach "--verify" to be quiet when using... Christian Couder Sat, 26 Apr 2008 11:57:23 +0000 (13:57 +0200)

rev-parse: teach "--verify" to be quiet when using "-q" or "--quiet"

Currently "git rev-parse --verify <something>" is often used with
its error output redirected to /dev/null. This patch makes it
easier to do that.

The -q|--quiet option is designed to work the same way as it does
for "git symbolic-ref".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitweb: Use feed link according to current viewJakub Narebski Sun, 20 Apr 2008 20:09:48 +0000 (22:09 +0200)

gitweb: Use feed link according to current view

Michael G. Noll said in comments to the "Switching my code repository from
Subversion (SVN) to git" article (http://tinyurl.com/37v67l) in his "My
digital moleskine" blog, that one of the things he is missing in gitweb
from SVN::Web is an RSS feed with news/information of the current view
(including RSS feed for single file or directory).

This is not exactly true, as since refactoring feed generation in af6feeb
(gitweb: Refactor feed generation, make output prettier, add Atom feed,
2006-11-19), gitweb can generate feeds (RSS or Atom) for history of a
given branch, history limited to a given directory, or history of a given
file. Nevertheless this required handcrafting the URL to get wanted RSS
feed.

This commit makes gitweb select feed links in the HTML header and in
page footer depending on current view (action). It is more elaborate,
and I guess more correct, than simple patch adding $hash ('h')
parameter to *all* URLs, including feed links, by Jean-Baptiste Quenot

Subject: [PATCH] gitweb: Add hash parameter in feed URL when a hash
is specified in the current request
Message-ID: <ae63f8b50803211138y6355fd11pa64cda50a1f53011@mail.gmail.com>

If $hash ('h') or $hash_base ('hb') parameter is a branch name
(i.e. it starts with 'refs/heads/'; all generated URLs use this form
to discriminate between tags and heads), it is used in feed URLs; if
$file_name ('f') is defined, it is used in feed URLs. Feed title is
set according to the kind of web feed: it is either 'log' for generic
feed, 'log of <branch>', 'history of <filename>' for generic history
(using implicit or explicit HEAD, i.e. current branch) or 'history of
<filename> on <branch>'.

There are special cases: 'heads' and 'forks' views should use OPML
providing list of available feeds; 'tags' probably also should use
OPML; there is no web feed equivalent to 'search' view. Currently all
those cases fallback to (show) default feed. Such feed link uses
"generic" class, and is shown in slightly lighter color for
distinction.

Currently feed can have but one starting point, and does not support
negative (exclude) commit arguments. Therefore for now for *diff
views it is chosen that feed follow the "to" part: to-name, to-commit
for 'blobdiff', 'treediff' and 'commitdiff' views.

Generating parameters for href() for feed link was separated
(refactored) into get_feed_info() subroutine.

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

Optimize match_pathspec() to avoid fnmatch()Linus Torvalds Sat, 19 Apr 2008 21:22:38 +0000 (14:22 -0700)

Optimize match_pathspec() to avoid fnmatch()

"git add *" is actually fundamentally different from "git add .", and
yeah, you should generally use the latter.

The reason? The argument list is actually something different from what
you think it is. For git, it's a "pathspec", so what actualy happens is
that in *both* cases, it will really traverse the whole tree, and then
match every file it finds against the pathspec.

So think of the arguments not as a file list, but as a random bunch of
patterns to match against the files you have!

Which is why the cost is actually approximately O(n*m), where "n" is the
size of the working tree, and "m" is the number of pathspecs.

So the reason "git add ." is fast is actually that "m" in that case is
just 1 (just one trivial pattern), and then "git add *" is slow because
"m" is large (lots of complicated patterns). In both cases, 'n' is the
same (== the whole set of files in your working tree).

Anyway, here's a trivial patch that doesn't change this fundamental fact,
but that avoids doing anything *expensive* until we've done some cheap
initial tests. It may or may not help your test-case, but it's pretty
simple and it matches the other git optimizations in this area (ie
"conceptually handle the general case, but optimize the simple cases where
we can exit early")

Notice how this patch doesn' actually change the fundamental O(n^2)
behaviour, but it makes it much cheaper by generally avoiding the
expensive 'fnmatch' and 'strlen/strncmp' when they are obviously not
needed.

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

Make ls-remote ... list HEAD, like for git://...Daniel Barkalow Sat, 26 Apr 2008 19:53:12 +0000 (15:53 -0400)

Make ls-remote ... list HEAD, like for git://...

This makes a struct ref able to represent a symref, and makes http.c
able to recognize one, and makes transport.c look for "HEAD" as a ref
in the list, and makes it dereference symrefs for the resulting ref,
if any.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Make walker.fetch_ref() take a struct ref.Daniel Barkalow Sat, 26 Apr 2008 19:53:09 +0000 (15:53 -0400)

Make walker.fetch_ref() take a struct ref.

This simplifies a few things, makes a few things slightly more
complicated, but, more importantly, allows that, when struct ref can
represent a symref, http_fetch_ref() can return one.

Incidentally makes the string that http_fetch_ref() gets include "refs/"
(if appropriate), because that's how the name field of struct ref works.
As far as I can tell, the usage in walker:interpret_target() wouldn't have
worked previously, if it ever would have been used, which it wouldn't
(since the fetch process uses the hash instead of the name of the ref
there).

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

documentation: web--browse: add a note about konquerorChristian Couder Fri, 25 Apr 2008 06:25:41 +0000 (08:25 +0200)

documentation: web--browse: add a note about konqueror

This note explains how to work around the fact that we try to use
kfmclient to launch konqueror.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

documentation: help: add info about "man.<tool>.cmd... Christian Couder Fri, 25 Apr 2008 06:25:35 +0000 (08:25 +0200)

documentation: help: add info about "man.<tool>.cmd" config var

This patch also describes the current behavior for "konqueror" and
how to modify it using "man.<tool>.cmd" if needed.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

help: use "man.<tool>.cmd" as custom man viewer commandChristian Couder Fri, 25 Apr 2008 06:24:58 +0000 (08:24 +0200)

help: use "man.<tool>.cmd" as custom man viewer command

Currently "git help -m GITCMD" is restricted to a set of man viewers
defined at compile time. You can subvert the "man.<tool>.path" to
force "git help -m" to use a different man, viewer, but if you have a
man viewer whose invocation syntax does not match one of the current
tools then you would have to write a wrapper script for it.

This patch adds a git config variable "man.<tool>.cmd" which allows a
more flexible man viewer choice.

If you run "git help -m GITCMD" with the "man.viewer" config variable
set to an unrecognized tool then it will query the "man.<tool>.cmd"
config variable. If this variable exists, then the specified tool will
be treated as a custom man viewer and it will be run in a shell with
the man page name of the GITCMD added as extra parameter.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

documentation: help: add "man.<tool>.path" config variableChristian Couder Fri, 25 Apr 2008 06:24:41 +0000 (08:24 +0200)

documentation: help: add "man.<tool>.path" config variable

This patch documents the "man.<tool>.path" configuration
variable.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

help: use man viewer path from "man.<tool>.path" config varChristian Couder Fri, 25 Apr 2008 06:24:22 +0000 (08:24 +0200)

help: use man viewer path from "man.<tool>.path" config var

This patch implements reading values from "man.<tool>.path"
configuration variables, and using these values as pathes to
the man viewer <tool>s when lauching them.

This makes it possible to use different version of the tools
than the one on the current PATH, or maybe a custom script.

In this patch we also try to launch "konqueror" using
"kfmclient" even if a path to a konqueror binary is given
in "man.konqueror.path".

The "man_viewer_list" becomes a simple string list to simplify
things for the following patches.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>