gitweb.git
l10n: fr.po v2.8.0 round 3Jean-Noel Avila Tue, 15 Mar 2016 22:01:59 +0000 (23:01 +0100)

l10n: fr.po v2.8.0 round 3

Signed-off-by: Jean-Noel Avila <jn.avila@free.fr>

l10n: sv.po: Update Swedish translation (2530t0f0u)Peter Krefting Tue, 15 Mar 2016 21:37:55 +0000 (22:37 +0100)

l10n: sv.po: Update Swedish translation (2530t0f0u)

Signed-off-by: Peter Krefting <peter@softwolves.pp.se>

l10n: ru.po: update Russian translationDimitriy Ryazantcev Tue, 15 Mar 2016 18:55:36 +0000 (20:55 +0200)

l10n: ru.po: update Russian translation

Signed-off-by: Dimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>

RelNotes for 2.8.0: typofixJunio C Hamano Mon, 14 Mar 2016 18:11:25 +0000 (11:11 -0700)

RelNotes for 2.8.0: typofix

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

Merge branch 'svn-glob' of git://bogomips.org/git-svnJunio C Hamano Tue, 15 Mar 2016 17:32:20 +0000 (10:32 -0700)

Merge branch 'svn-glob' of git://bogomips.org/git-svn

* 'svn-glob' of git://bogomips.org/git-svn:
git-svn: shorten glob error message
git-svn: loosen config globs limitations

Merge tag 'l10n-2.8.0-rnd2' of git://github.com/git... Junio C Hamano Tue, 15 Mar 2016 17:13:15 +0000 (10:13 -0700)

Merge tag 'l10n-2.8.0-rnd2' of git://github.com/git-l10n/git-po

l10n-2.8.0-rnd2

* tag 'l10n-2.8.0-rnd2' of git://github.com/git-l10n/git-po: (22 commits)
l10n: zh_CN: for git v2.8.0 l10n round 3
l10n: git.pot: Add one new message for Git 2.8.0
l10n: zh_CN: for git v2.8.0 l10n round 2
l10n: fr.po v2.8.0 round 2
l10n: ru.po: update Russian translation
l10n: ko: Update Korean translation
l10n: git.pot: v2.8.0 round 2 (21 new, 1 removed)
l10n: zh_CN: for git v2.8.0 l10n round 1
l10n: de.po: translate 48 new messages
l10n: de.po: translate "command" as "Befehl"
l10n: de.po: fix interactive rebase message
l10n: de.po: add space to abbreviation "z. B."
l10n: de.po: fix typo
l10n: TEAMS: update Ralf Thielow's email address
l10n: sv.po: Update Swedish translation (2509t0f0u)
l10n: sv.po: Fix inconsistent translation of "progress meter"
l10n: ko.po: Update Korean translation
l10n: ru.po: update Russian translation
l10n: vi.po (2509t): Updated Vietnamese translation
l10n: fr.po v2.8.0 round 1 2509t
...

l10n: zh_CN: for git v2.8.0 l10n round 3Jiang Xin Tue, 15 Mar 2016 16:27:40 +0000 (00:27 +0800)

l10n: zh_CN: for git v2.8.0 l10n round 3

Update 1 new translations (2530t0f0u) for git v2.8.0-rc2.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>

l10n: git.pot: Add one new message for Git 2.8.0Jiang Xin Tue, 15 Mar 2016 16:20:14 +0000 (00:20 +0800)

l10n: git.pot: Add one new message for Git 2.8.0

Add one new message came from this commit:

* df22724 wt-status: allow "ahead " to be picked up by l10n

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>

Merge branch 'master' of git://github.com/git-l10n... Jiang Xin Tue, 15 Mar 2016 16:15:59 +0000 (00:15 +0800)

Merge branch 'master' of git://github.com/git-l10n/git-po

* 'master' of git://github.com/git-l10n/git-po:
l10n: zh_CN: for git v2.8.0 l10n round 2
l10n: fr.po v2.8.0 round 2
l10n: ru.po: update Russian translation
l10n: ko: Update Korean translation
l10n: git.pot: v2.8.0 round 2 (21 new, 1 removed)
l10n: zh_CN: for git v2.8.0 l10n round 1
l10n: de.po: translate 48 new messages
l10n: de.po: translate "command" as "Befehl"
l10n: de.po: fix interactive rebase message
l10n: de.po: add space to abbreviation "z. B."
l10n: de.po: fix typo
l10n: TEAMS: update Ralf Thielow's email address
l10n: sv.po: Update Swedish translation (2509t0f0u)
l10n: sv.po: Fix inconsistent translation of "progress meter"
l10n: ko.po: Update Korean translation
l10n: ru.po: update Russian translation
l10n: vi.po (2509t): Updated Vietnamese translation
l10n: fr.po v2.8.0 round 1 2509t
l10n: fr.po: Correct case in sentence
l10n: git.pot: v2.8.0 round 1 (48 new, 16 removed)

l10n: zh_CN: for git v2.8.0 l10n round 2Jiang Xin Sat, 12 Mar 2016 14:09:24 +0000 (22:09 +0800)

l10n: zh_CN: for git v2.8.0 l10n round 2

Update 21 new translations (2529t0f0u) for git v2.8.0-rc2.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>

git-svn: shorten glob error messageEric Wong Thu, 14 Jan 2016 03:59:48 +0000 (03:59 +0000)

git-svn: shorten glob error message

Error messages should attempt to fit within the confines of
an 80-column terminal to avoid compatibility and accessibility
problems. Furthermore the word "directories" can be misleading
when used in the context of git refnames.

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

git-svn: loosen config globs limitationsVictor Leschuk Mon, 11 Jan 2016 14:25:58 +0000 (17:25 +0300)

git-svn: loosen config globs limitations

Expand the area of globs applicability for branches and tags
in git-svn. It is now possible to use globs like 'a*e', or 'release_*'.
This allows users to avoid long lines in config like:

branches = branches/{release_20,release_21,release_22,...}

In favor of:

branches = branches/release_*

[ew: amended commit message, minor formatting and style fixes]

Signed-off-by: Victor Leschuk <vleschuk@accesssoftek.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>

l10n: fr.po v2.8.0 round 2Jean-Noel Avila Mon, 14 Mar 2016 19:26:53 +0000 (20:26 +0100)

l10n: fr.po v2.8.0 round 2

Signed-off-by: Jean-Noel Avila <jn.avila@free.fr>

Merge branch 'mg/wt-status-mismarked-i18n'Junio C Hamano Mon, 14 Mar 2016 17:46:17 +0000 (10:46 -0700)

Merge branch 'mg/wt-status-mismarked-i18n'

* mg/wt-status-mismarked-i18n:
wt-status: allow "ahead " to be picked up by l10n

wt-status: allow "ahead " to be picked up by l10nMichael J Gruber Mon, 14 Mar 2016 15:30:33 +0000 (16:30 +0100)

wt-status: allow "ahead " to be picked up by l10n

The extra pair of parentheses keeps the l10n engine from picking up the
string. Remove them so that "ahead " ends up in git.pot.

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

Merge branch 'russian-l10n' of https://github.com/DJm00... Jiang Xin Sun, 13 Mar 2016 13:41:46 +0000 (21:41 +0800)

Merge branch 'russian-l10n' of https://github.com/DJm00n/git-po-ru

* 'russian-l10n' of https://github.com/DJm00n/git-po-ru:
l10n: ru.po: update Russian translation

l10n: ru.po: update Russian translationDimitriy Ryazantcev Sun, 13 Mar 2016 00:07:09 +0000 (02:07 +0200)

l10n: ru.po: update Russian translation

Signed-off-by: Dimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>

l10n: ko: Update Korean translationChangwoo Ryu Sat, 12 Mar 2016 17:32:52 +0000 (02:32 +0900)

l10n: ko: Update Korean translation

Signed-off-by: Changwoo Ryu <cwryu@debian.org>

l10n: git.pot: v2.8.0 round 2 (21 new, 1 removed)Jiang Xin Sat, 12 Mar 2016 14:05:35 +0000 (22:05 +0800)

l10n: git.pot: v2.8.0 round 2 (21 new, 1 removed)

Generate po/git.pot from v2.8.0-rc2 for git v2.8.0 l10n round 2.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>

Merge branch 'master' of git://github.com/git-l10n... Jiang Xin Sat, 12 Mar 2016 14:04:39 +0000 (22:04 +0800)

Merge branch 'master' of git://github.com/git-l10n/git-po

* 'master' of git://github.com/git-l10n/git-po:
l10n: zh_CN: for git v2.8.0 l10n round 1
l10n: de.po: translate 48 new messages
l10n: de.po: translate "command" as "Befehl"
l10n: de.po: fix interactive rebase message
l10n: de.po: add space to abbreviation "z. B."
l10n: de.po: fix typo
l10n: TEAMS: update Ralf Thielow's email address
l10n: sv.po: Update Swedish translation (2509t0f0u)
l10n: sv.po: Fix inconsistent translation of "progress meter"
l10n: ko.po: Update Korean translation
l10n: ru.po: update Russian translation
l10n: vi.po (2509t): Updated Vietnamese translation
l10n: fr.po v2.8.0 round 1 2509t
l10n: fr.po: Correct case in sentence
l10n: git.pot: v2.8.0 round 1 (48 new, 16 removed)

l10n: zh_CN: for git v2.8.0 l10n round 1Jiang Xin Sun, 28 Feb 2016 12:35:55 +0000 (20:35 +0800)

l10n: zh_CN: for git v2.8.0 l10n round 1

Update 48 new translations (2509t0f0u) for git v2.8.0-rc0.

Reviewed-by: Ray Chen <oldsharp@gmail.com>
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
l10n: zh_CN: review for git v2.8.0 l10n round 1

verify_repository_format: mark messages for translationJeff King Fri, 11 Mar 2016 22:37:22 +0000 (17:37 -0500)

verify_repository_format: mark messages for translation

These messages are human-readable and should be translated.

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

setup: drop repository_format_version globalJeff King Fri, 11 Mar 2016 22:37:18 +0000 (17:37 -0500)

setup: drop repository_format_version global

Nobody reads this anymore, and they're not likely to; the
interesting thing is whether or not we passed
check_repository_format(), and possibly the individual
"extension" variables.

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

setup: unify repository version callbacksJeff King Fri, 11 Mar 2016 22:37:14 +0000 (17:37 -0500)

setup: unify repository version callbacks

Once upon a time, check_repository_format_gently would parse
the config with a single callback, and that callback would
set up a bunch of global variables. But now that we have
separate workdirs, we have to be more careful. Commit
31e26eb (setup.c: support multi-checkout repo setup,
2014-11-30) introduced a reduced callback which omits some
values like core.worktree. In the "main" callback we call
the reduced one, and then add back in the missing variables.

Now that we have split the config-parsing from the munging
of the global variables, we can do it all with a single
callback, and keep all of the "are we in a separate workdir"
logic together.

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

init: use setup.c's repo version verificationJeff King Fri, 11 Mar 2016 22:37:11 +0000 (17:37 -0500)

init: use setup.c's repo version verification

We check our templates to make sure they are from a
version of git we understand (otherwise we would init a
repository we cannot ourselves run in!). But our simple
integer check has fallen behind the times. Let's use the
helpers that setup.c provides to do it right.

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

setup: refactor repo format reading and verificationJeff King Fri, 11 Mar 2016 22:37:07 +0000 (17:37 -0500)

setup: refactor repo format reading and verification

When we want to know if we're in a git repository of
reasonable vintage, we can call check_repository_format_gently(),
which does three things:

1. Reads the config from the .git/config file.

2. Verifies that the version info we read is sane.

3. Writes some global variables based on this.

There are a few things we could improve here.

One is that steps 1 and 3 happen together. So if the
verification in step 2 fails, we still clobber the global
variables. This is especially bad if we go on to try another
repository directory; we may end up with a state of mixed
config variables.

The second is there's no way to ask about the repository
version for anything besides the main repository we're in.
git-init wants to do this, and it's possible that we would
want to start doing so for submodules (e.g., to find out
which ref backend they're using).

We can improve both by splitting the first two steps into
separate functions. Now check_repository_format_gently()
calls out to steps 1 and 2, and does 3 only if step 2
succeeds.

Note that the public interface for read_repository_format()
and what check_repository_format_gently() needs from it are
not quite the same, leading us to have an extra
read_repository_format_1() helper. The extra needs from
check_repository_format_gently() will go away in a future
patch, and we can simplify this then to just the public
interface.

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

config: drop git_config_earlyJeff King Fri, 11 Mar 2016 22:37:03 +0000 (17:37 -0500)

config: drop git_config_early

There are no more callers, and it's a rather confusing
interface. This could just be folded into
git_config_with_options(), but for the sake of readability,
we'll leave it as a separate (static) helper function.

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

check_repository_format_gently: stop using git_config_earlyJeff King Fri, 11 Mar 2016 22:36:59 +0000 (17:36 -0500)

check_repository_format_gently: stop using git_config_early

There's a chicken-and-egg problem with using the regular
git_config during the repository setup process. We get
around it here by using a special interface that lets us
specify the per-repo config, and avoid calling
git_pathdup().

But this interface doesn't actually make sense. It will look
in the system and per-user config, too; we definitely would
not want to accept a core.repositoryformatversion from
there.

The git_config_from_file interface is a better match, as it
lets us look at a single file.

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

lazily load core.sharedrepositoryJeff King Fri, 11 Mar 2016 22:36:53 +0000 (17:36 -0500)

lazily load core.sharedrepository

The "shared_repository" config is loaded as part of
check_repository_format_version, but it's not quite like the
other values we check there. Something like
core.repositoryformatversion only makes sense in per-repo
config, but core.sharedrepository can be set in a per-user
config (e.g., to make all "git init" invocations shared by
default).

So it would make more sense as part of git_default_config.
Commit 457f06d (Introduce core.sharedrepository, 2005-12-22)
says:

[...]the config variable is set in the function which
checks the repository format. If this were done in
git_default_config instead, a lot of programs would need
to be modified to call git_config(git_default_config)
first.

This is still the case today, but we have one extra trick up
our sleeve. Now that we have the git_configset
infrastructure, it's not so expensive for us to ask for a
single value. So we can simply lazy-load it on demand.

This should be OK to do in general. There are some problems
with loading config before setup_git_directory() is called,
but we shouldn't be accessing the value before then (if we
were, then it would already be broken, as the variable would
not have been set by check_repository_format_version!). The
trickiest caller is git-init, but it handles the values
manually itself.

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

wrap shared_repository global in get/set accessorsJeff King Fri, 11 Mar 2016 22:36:49 +0000 (17:36 -0500)

wrap shared_repository global in get/set accessors

It would be useful to control access to the global
shared_repository, so that we can lazily load its config.
The first step to doing so is to make sure all access
goes through a set of functions.

This step is purely mechanical, and should result in no
change of behavior.

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

setup: document check_repository_format()Jeff King Fri, 11 Mar 2016 22:36:45 +0000 (17:36 -0500)

setup: document check_repository_format()

This function's interface is rather enigmatic, so let's
document it further.

While we're here, let's also drop the return value. It will
always either be "0" or the function will die (consequently,
neither of its two callers bothered to check the return).

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

t/t7502 : drop duplicate testPranit Bauva Fri, 11 Mar 2016 00:49:58 +0000 (00:49 +0000)

t/t7502 : drop duplicate test

This extra test was introduced erroneously by
f9c0181 (t7502: test commit.status, --status and
--no-status, 2010-01-13)

Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

rebase-i: clarify "is this commit relevant?" testJunio C Hamano Tue, 8 Mar 2016 23:51:36 +0000 (15:51 -0800)

rebase-i: clarify "is this commit relevant?" test

While I was checking all the call sites of sane_grep and sane_egrep,
I noticed this one is somewhat strangely written. The lines in the
file sane_grep works on all begin with 40-hex object name, so there
is no real risk of confusing "test $(...) = ''" by finding something
that begins with a dash, but using the status from sane_grep makes
it a lot clearer what is going on.

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

sane_grep: pass "-a" if grep accepts itJunio C Hamano Tue, 8 Mar 2016 23:47:57 +0000 (15:47 -0800)

sane_grep: pass "-a" if grep accepts it

Newer versions of GNU grep is reported to be pickier when we feed a
non-ASCII input and break some Porcelain scripts. As we know we do
not feed random binary file to our own sane_grep wrapper, allow us
to always pass "-a" by setting SANE_TEXT_GREP=-a Makefile variable
to work it around.

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

mergetool: honor tempfile configuration when resolving... David Aguilar Thu, 10 Mar 2016 07:13:59 +0000 (23:13 -0800)

mergetool: honor tempfile configuration when resolving delete conflicts

Teach resolve_deleted_merge() to honor the mergetool.keepBackup and
mergetool.keepTemporaries configuration knobs.

This ensures that the worktree is kept pristine when resolving deletion
conflicts with the variables both set to false.

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

mergetool: support delete/delete conflictsDavid Aguilar Thu, 10 Mar 2016 07:13:58 +0000 (23:13 -0800)

mergetool: support delete/delete conflicts

If two branches each move a file into different directories then
mergetool will fail because it assumes that the file being merged, and
its parent directory, are present in the worktree.

Create the merge file's parent directory to allow using the
deleted base version of the file for merge resolution when
encountering a delete/delete conflict.

The end result is that a delete/delete conflict is presented for the
user to resolve.

Reported-by: Joe Einertson <joe@kidblog.org>
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Git 2.8-rc2 v2.8.0-rc2Junio C Hamano Thu, 10 Mar 2016 19:16:23 +0000 (11:16 -0800)

Git 2.8-rc2

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

Sync with 2.7.3Junio C Hamano Thu, 10 Mar 2016 19:15:50 +0000 (11:15 -0800)

Sync with 2.7.3

Git 2.7.3 v2.7.3Junio C Hamano Thu, 10 Mar 2016 19:13:13 +0000 (11:13 -0800)

Git 2.7.3

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

Merge branch 'ma/update-hooks-sample-typofix' into... Junio C Hamano Thu, 10 Mar 2016 19:13:50 +0000 (11:13 -0800)

Merge branch 'ma/update-hooks-sample-typofix' into maint

* ma/update-hooks-sample-typofix:
templates/hooks: fix minor typo in the sample update-hook

Merge branch 'dt/initial-ref-xn-commit-doc' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:49 +0000 (11:13 -0800)

Merge branch 'dt/initial-ref-xn-commit-doc' into maint

* dt/initial-ref-xn-commit-doc:
refs: document transaction semantics

Merge branch 'ps/plug-xdl-merge-leak' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:49 +0000 (11:13 -0800)

Merge branch 'ps/plug-xdl-merge-leak' into maint

* ps/plug-xdl-merge-leak:
xdiff/xmerge: fix memory leak in xdl_merge

Merge branch 'ak/git-strip-extension-from-dashed-comman... Junio C Hamano Thu, 10 Mar 2016 19:13:48 +0000 (11:13 -0800)

Merge branch 'ak/git-strip-extension-from-dashed-command' into maint

Code simplification.

* ak/git-strip-extension-from-dashed-command:
git.c: simplify stripping extension of a file in handle_builtin()

Merge branch 'ak/extract-argv0-last-dir-sep' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:47 +0000 (11:13 -0800)

Merge branch 'ak/extract-argv0-last-dir-sep' into maint

Code simplification.

* ak/extract-argv0-last-dir-sep:
exec_cmd.c: use find_last_dir_sep() for code simplification

Merge branch 'jk/pack-idx-corruption-safety' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:46 +0000 (11:13 -0800)

Merge branch 'jk/pack-idx-corruption-safety' into maint

The code to read the pack data using the offsets stored in the pack
idx file has been made more carefully check the validity of the
data in the idx.

* jk/pack-idx-corruption-safety:
sha1_file.c: mark strings for translation
use_pack: handle signed off_t overflow
nth_packed_object_offset: bounds-check extended offset
t5313: test bounds-checks of corrupted/malicious pack/idx files

Merge branch 'js/config-set-in-non-repository' into... Junio C Hamano Thu, 10 Mar 2016 19:13:45 +0000 (11:13 -0800)

Merge branch 'js/config-set-in-non-repository' into maint

"git config section.var value" to set a value in per-repository
configuration file failed when it was run outside any repository,
but didn't say the reason correctly.

* js/config-set-in-non-repository:
git config: report when trying to modify a non-existing repo config

Merge branch 'sb/submodule-module-list-fix' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:45 +0000 (11:13 -0800)

Merge branch 'sb/submodule-module-list-fix' into maint

A helper function "git submodule" uses since v2.7.0 to list the
modules that match the pathspec argument given to its subcommands
(e.g. "submodule add <repo> <path>") has been fixed.

* sb/submodule-module-list-fix:
submodule helper list: respect correct path prefix

Merge branch 'jk/grep-binary-workaround-in-test' into... Junio C Hamano Thu, 10 Mar 2016 19:13:45 +0000 (11:13 -0800)

Merge branch 'jk/grep-binary-workaround-in-test' into maint

Recent versions of GNU grep are pickier when their input contains
arbitrary binary data, which some of our tests uses. Rewrite the
tests to sidestep the problem.

* jk/grep-binary-workaround-in-test:
t9200: avoid grep on non-ASCII data
t8005: avoid grep on non-ASCII data

Merge branch 'mm/push-simple-doc' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:44 +0000 (11:13 -0800)

Merge branch 'mm/push-simple-doc' into maint

The documentation did not clearly state that the 'simple' mode is
now the default for "git push" when push.default configuration is
not set.

* mm/push-simple-doc:
Documentation/git-push: document that 'simple' is the default

Merge branch 'jk/tighten-alloc' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:43 +0000 (11:13 -0800)

Merge branch 'jk/tighten-alloc' into maint

* jk/tighten-alloc: (23 commits)
compat/mingw: brown paper bag fix for 50a6c8e
ewah: convert to REALLOC_ARRAY, etc
convert ewah/bitmap code to use xmalloc
diff_populate_gitlink: use a strbuf
transport_anonymize_url: use xstrfmt
git-compat-util: drop mempcpy compat code
sequencer: simplify memory allocation of get_message
test-path-utils: fix normalize_path_copy output buffer size
fetch-pack: simplify add_sought_entry
fast-import: simplify allocation in start_packfile
write_untracked_extension: use FLEX_ALLOC helper
prepare_{git,shell}_cmd: use argv_array
use st_add and st_mult for allocation size computation
convert trivial cases to FLEX_ARRAY macros
use xmallocz to avoid size arithmetic
convert trivial cases to ALLOC_ARRAY
convert manual allocations to argv_array
argv-array: add detach function
add helpers for allocating flex-array structs
harden REALLOC_ARRAY and xcalloc against size_t overflow
...

Merge branch 'jk/more-comments-on-textconv' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:42 +0000 (11:13 -0800)

Merge branch 'jk/more-comments-on-textconv' into maint

The memory ownership rule of fill_textconv() API, which was a bit
tricky, has been documented a bit better.

* jk/more-comments-on-textconv:
diff: clarify textconv interface

Merge branch 'jk/no-diff-emit-common' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:41 +0000 (11:13 -0800)

Merge branch 'jk/no-diff-emit-common' into maint

"git merge-tree" used to mishandle "both sides added" conflict with
its own "create a fake ancestor file that has the common parts of
what both sides have added and do a 3-way merge" logic; this has
been updated to use the usual "3-way merge with an empty blob as
the fake common ancestor file" approach used in the rest of the
system.

* jk/no-diff-emit-common:
xdiff: drop XDL_EMIT_COMMON
merge-tree: drop generate_common strategy
merge-one-file: use empty blob for add/add base

Merge branch 'jc/am-i-v-fix' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:40 +0000 (11:13 -0800)

Merge branch 'jc/am-i-v-fix' into maint

The "v(iew)" subcommand of the interactive "git am -i" command was
broken in 2.6.0 timeframe when the command was rewritten in C.

* jc/am-i-v-fix:
am -i: fix "v"iew
pager: factor out a helper to prepare a child process to run the pager
pager: lose a separate argv[]

Merge branch 'nd/git-common-dir-fix' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:39 +0000 (11:13 -0800)

Merge branch 'nd/git-common-dir-fix' into maint

"git rev-parse --git-common-dir" used in the worktree feature
misbehaved when run from a subdirectory.

* nd/git-common-dir-fix:
rev-parse: take prefix into account in --git-common-dir

Merge branch 'nd/dwim-wildcards-as-pathspecs' into... Junio C Hamano Thu, 10 Mar 2016 19:13:39 +0000 (11:13 -0800)

Merge branch 'nd/dwim-wildcards-as-pathspecs' into maint

"git show 'HEAD:Foo[BAR]Baz'" did not interpret the argument as a
rev, i.e. the object named by the the pathname with wildcard
characters in a tree object.

* nd/dwim-wildcards-as-pathspecs:
get_sha1: don't die() on bogus search strings
check_filename: tighten dwim-wildcard ambiguity
checkout: reorder check_filename conditional

Merge branch 'jk/epipe-in-async' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:38 +0000 (11:13 -0800)

Merge branch 'jk/epipe-in-async' into maint

Handling of errors while writing into our internal asynchronous
process has been made more robust, which reduces flakiness in our
tests.

* jk/epipe-in-async:
t5504: handle expected output from SIGPIPE death
test_must_fail: report number of unexpected signal
fetch-pack: ignore SIGPIPE in sideband demuxer
write_or_die: handle EPIPE in async threads

Merge branch 'ps/config-error' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:38 +0000 (11:13 -0800)

Merge branch 'ps/config-error' into maint

Many codepaths forget to check return value from git_config_set();
the function is made to die() to make sure we do not proceed when
setting a configuration variable failed.

* ps/config-error:
config: rename git_config_set_or_die to git_config_set
config: rename git_config_set to git_config_set_gently
compat: die when unable to set core.precomposeunicode
sequencer: die on config error when saving replay opts
init-db: die on config errors when initializing empty repo
clone: die on config error in cmd_clone
remote: die on config error when manipulating remotes
remote: die on config error when setting/adding branches
remote: die on config error when setting URL
submodule--helper: die on config error when cloning module
submodule: die on config error when linking modules
branch: die on config error when editing branch description
branch: die on config error when unsetting upstream
branch: report errors in tracking branch setup
config: introduce set_or_die wrappers

Merge branch 'mg/work-tree-tests' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:38 +0000 (11:13 -0800)

Merge branch 'mg/work-tree-tests' into maint

Traditionally, the tests that try commands that work on the
contents in the working tree were named with "worktree" in their
filenames, but with the recent addition of "git worktree"
subcommand, whose tests are also named similarly, it has become
harder to tell them apart. The traditional tests have been renamed
to use "work-tree" instead in an attempt to differentiate them.

* mg/work-tree-tests:
tests: rename work-tree tests to *work-tree*

Merge branch 'sp/remote-curl-ssl-strerror' into maintJunio C Hamano Thu, 10 Mar 2016 19:13:37 +0000 (11:13 -0800)

Merge branch 'sp/remote-curl-ssl-strerror' into maint

Help those who debug http(s) part of the system.

* sp/remote-curl-ssl-strerror:
remote-curl: include curl_errorstr on SSL setup failures

Merge branch 'jx/http-no-proxy'Junio C Hamano Thu, 10 Mar 2016 18:56:43 +0000 (10:56 -0800)

Merge branch 'jx/http-no-proxy'

* jx/http-no-proxy:
http: honor no_http env variable to bypass proxy

Merge branch 'jc/exclusion-doc'Junio C Hamano Thu, 10 Mar 2016 18:56:43 +0000 (10:56 -0800)

Merge branch 'jc/exclusion-doc'

* jc/exclusion-doc:
gitignore: document that unignoring a directory unignores everything in it

Merge branch 'js/close-packs-before-gc'Junio C Hamano Thu, 10 Mar 2016 18:56:42 +0000 (10:56 -0800)

Merge branch 'js/close-packs-before-gc'

A small future-proofing of a test added recently.

* js/close-packs-before-gc:
t5510: do not leave changed cwd

Merge branch 'sb/rebase-summary'Junio C Hamano Thu, 10 Mar 2016 18:56:41 +0000 (10:56 -0800)

Merge branch 'sb/rebase-summary'

* sb/rebase-summary:
Documentation: reword rebase summary

Disown ssh+git and git+sshCarlos Martín Nieto Mon, 15 Feb 2016 14:29:06 +0000 (15:29 +0100)

Disown ssh+git and git+ssh

Some people argue that these were silly from the beginning (see
http://thread.gmane.org/gmane.comp.version-control.git/285590/focus=285601
for example), but we have to support them for compatibility.

That doesn't mean we have to show them in the documentation. These
were already left out of the main list, but a reference in the main
manpage was left, so remove that.

Also add a note to discourage their use if anybody goes looking for them
in the source code.

Signed-off-by: Carlos Martín Nieto <cmn@dwim.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitignore: document that unignoring a directory unignor... Junio C Hamano Mon, 7 Mar 2016 23:27:27 +0000 (15:27 -0800)

gitignore: document that unignoring a directory unignores everything in it

Also document another limitation coming from a bug in handling the
basename match with a directory for 're-inclusion'.

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

use setup_git_directory() in test-* programsJeff King Sat, 5 Mar 2016 22:16:50 +0000 (17:16 -0500)

use setup_git_directory() in test-* programs

Some of the test-* programs rely on examining refs, but did
not bother to make sure we are actually in a git repository.
Let's have them call setup_git_directory() to do so.

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

grep: turn off gitlink detection for --no-indexJeff King Mon, 7 Mar 2016 15:51:21 +0000 (10:51 -0500)

grep: turn off gitlink detection for --no-index

If we are running "git grep --no-index" outside of a git
repository, we behave roughly like "grep -r", examining all
files in the current directory and its subdirectories.
However, because we use fill_directory() to do the
recursion, it will skip over any directories which look like
sub-repositories.

For a normal git operation (like "git grep" in a repository)
this makes sense; we do not want to cross the boundary out
of our current repository into a submodule. But for
"--no-index" without a repository, we should look at all
files, including embedded repositories.

There is one exception, though: we probably should _not_
descend into ".git" directories. Doing so is inefficient and
unlikely to turn up useful hits.

This patch drops our use of dir.c's gitlink-detection, but
we do still avoid ".git". That makes us more like tools such
as "ack" or "ag", which also know to avoid cruft in .git.

As a bonus, this also drops our usage of the ref code
when we are outside of a repository, making the transition
to pluggable ref backends cleaner.

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

Documentation: talk about pager in api-trace.txtChristian Couder Mon, 7 Mar 2016 10:38:53 +0000 (11:38 +0100)

Documentation: talk about pager in api-trace.txt

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

mailmap: do not resolve blobs in a non-repositoryJeff King Sat, 5 Mar 2016 22:13:29 +0000 (17:13 -0500)

mailmap: do not resolve blobs in a non-repository

The mailmap code may be triggered outside of a repository by
git-shortlog. There is no point in looking up a name like
"HEAD:.mailmap" there; without a repository, we have no
refs.

This is unlikely to matter much in practice for the current
code, as we would simply fail to find the ref. But as the
refs code learns about new backends, this is more important;
without a repository, we do not even know which backend to
look at.

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

remote: don't resolve HEAD in non-repositoryJeff King Sat, 5 Mar 2016 22:11:57 +0000 (17:11 -0500)

remote: don't resolve HEAD in non-repository

The remote-config code wants to look at HEAD to mark the
current branch specially. But if we are not in a repository
(e.g., running "git archive --remote"), this makes no sense;
there is no HEAD to look at, and we have no current branch.

This doesn't really cause any bugs in practice (if you are
not in a repo, you probably don't have a .git/HEAD file),
but we should be more careful about triggering the refs code
at all in a non-repo. As we grow new ref backends, we would
not even know which backend to use.

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

setup: set startup_info->have_repository more reliablyJeff King Sat, 5 Mar 2016 22:11:34 +0000 (17:11 -0500)

setup: set startup_info->have_repository more reliably

When setup_git_directory() is called, we set a flag in
startup_info to indicate we have a repository. But there are
a few other mechanisms by which we might set up a repo:

1. When creating a new repository via init_db(), we
transition from no-repo to being in a repo. We should
tweak this flag at that moment.

2. In enter_repo(), a stricter form of
setup_git_directory() used by server-side programs, we
check the repository format config. After doing so, we
know we're in a repository, and can set the flag.

With these changes, library code can now reliably tell
whether we are in a repository and act accordingly. We'll
leave the "prefix" field as NULL, which is what happens when
setup_git_directory() finds there is no prefix.

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

setup: make startup_info available everywhereJeff King Sat, 5 Mar 2016 22:10:27 +0000 (17:10 -0500)

setup: make startup_info available everywhere

Commit a60645f (setup: remember whether repository was
found, 2010-08-05) introduced the startup_info structure,
which records some parts of the setup_git_directory()
process (notably, whether we actually found a repository or
not).

One of the uses of this data is for functions to behave
appropriately based on whether we are in a repo. But the
startup_info struct is just a pointer to storage provided by
the main program, and the only program that sets it up is
the git.c wrapper. Thus builtins have access to
startup_info, but externally linked programs do not.

Worse, library code which is accessible from both has to be
careful about accessing startup_info. This can be used to
trigger a die("BUG") via get_sha1():

$ git fast-import <<-\EOF
tag foo
from HEAD:./whatever
EOF

fatal: BUG: startup_info struct is not initialized.

Obviously that's fairly nonsensical input to feed to
fast-import, but we should never hit a die("BUG"). And there
may be other ways to trigger it if other non-builtins
resolve sha1s.

So let's point the storage for startup_info to a static
variable in setup.c, making it available to all users of the
library code. We _could_ turn startup_info into a regular
extern struct, but doing so would mean tweaking all of the
existing use sites. So let's leave the pointer indirection
in place. We can, however, drop any checks for NULL, as
they will always be false (and likewise, we can drop the
test covering this case, which was a rather artificial
situation using one of the test-* programs).

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

strbuf_getwholeline: NUL-terminate getdelim buffer... Jeff King Sat, 5 Mar 2016 18:43:30 +0000 (13:43 -0500)

strbuf_getwholeline: NUL-terminate getdelim buffer on error

Commit 0cc30e0 (strbuf_getwholeline: use getdelim if it is
available, 2015-04-16) tries to clean up after getdelim()
returns EOF, but gets one case wrong, which can lead in some
obscure cases to us reading uninitialized memory.

After getdelim() returns -1, we re-initialize the strbuf
only if sb->buf is NULL. The thinking was that either:

1. We fed an existing allocated buffer to getdelim(), and
at most it would have realloc'd, leaving our NUL in
place.

2. We didn't have a buffer to feed, so we gave getdelim()
NULL; sb->buf will remain NULL, and we just want to
restore the empty slopbuf.

But that second case isn't quite right. getdelim() may
allocate a buffer, write nothing into it, and then return
EOF. The resulting strbuf rightfully has sb->len set to "0",
but is missing the NUL terminator in the first byte.

Most call-sites are fine with this. They see the EOF and
don't bother looking at the strbuf. Or they notice that
sb->len is empty, and don't look at the contents. But
there's at least one case that does neither, and relies on
parsing the resulting (possibly zero-length) string:
fast-import. You can see this in action with the new test
(though we probably only notice failure there when run with
--valgrind or ASAN).

We can fix this by unconditionally resetting the strbuf when
we have a buffer after getdelim(). That fixes case 2 above.
Case 1 is probably already fine in practice, but it does not
hurt for us to re-assert our invariants (especially because
we are relying on whatever getdelim() happens to do, which
may vary from platform to platform). Our fix covers that
case, too.

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

fetch-pack: update the documentation for "<refs>..... Gabriel Souza Franco Sat, 5 Mar 2016 01:11:38 +0000 (22:11 -0300)

fetch-pack: update the documentation for "<refs>..." arguments

When we started allowing an exact object name to be fetched from the
command line, we forgot to update the documentation.

Signed-off-by: Gabriel Souza Franco <gabrielfrancosouza@gmail.com>
--
Documentation/git-fetch-pack.txt | 4 ++++
1 file changed, 4 insertions(+)
Signed-off-by: Junio C Hamano <gitster@pobox.com>

l10n: de.po: translate 48 new messagesRalf Thielow Wed, 2 Mar 2016 17:13:32 +0000 (18:13 +0100)

l10n: de.po: translate 48 new messages

Translate 48 new messages came from git.pot update in
9eb3984 (l10n: git.pot: v2.8.0 round 1 (48 new, 16 removed)).

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Acked-by: Matthias Rüster <matthias.ruester@gmail.com>

l10n: de.po: translate "command" as "Befehl"Ralf Thielow Thu, 3 Mar 2016 18:00:35 +0000 (19:00 +0100)

l10n: de.po: translate "command" as "Befehl"

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Acked-by: Phillip Sz <phillip.szelat@gmail.com>

l10n: de.po: fix interactive rebase messageRalf Thielow Wed, 2 Mar 2016 17:34:19 +0000 (18:34 +0100)

l10n: de.po: fix interactive rebase message

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>

l10n: de.po: add space to abbreviation "z. B."Ralf Thielow Wed, 2 Mar 2016 17:27:42 +0000 (18:27 +0100)

l10n: de.po: add space to abbreviation "z. B."

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Acked-by: Phillip Sz <phillip.szelat@gmail.com>

l10n: de.po: fix typoChristoph Hoopmann Wed, 2 Mar 2016 11:46:26 +0000 (12:46 +0100)

l10n: de.po: fix typo

Signed-off-by: Christoph Hoopmann <christophhoopmann@gmail.com>
Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>

l10n: TEAMS: update Ralf Thielow's email addressRalf Thielow Thu, 3 Mar 2016 20:48:25 +0000 (21:48 +0100)

l10n: TEAMS: update Ralf Thielow's email address

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>

Merge branch 'master' of git://github.com/nafmo/git... Jiang Xin Sat, 5 Mar 2016 02:06:20 +0000 (10:06 +0800)

Merge branch 'master' of git://github.com/nafmo/git-l10n-sv

* 'master' of git://github.com/nafmo/git-l10n-sv:
l10n: sv.po: Update Swedish translation (2509t0f0u)
l10n: sv.po: Fix inconsistent translation of "progress meter"

Merge branch 'ko/merge-l10n' of https://github.com... Jiang Xin Sat, 5 Mar 2016 02:05:32 +0000 (10:05 +0800)

Merge branch 'ko/merge-l10n' of https://github.com/changwoo/git-l10n-ko

* 'ko/merge-l10n' of https://github.com/changwoo/git-l10n-ko:
l10n: ko.po: Update Korean translation

xdiff/xprepare: fix a memory leakRamsay Jones Fri, 4 Mar 2016 23:10:50 +0000 (23:10 +0000)

xdiff/xprepare: fix a memory leak

The xdl_prepare_env() function may initialise an xdlclassifier_t
data structure via xdl_init_classifier(), which allocates memory
to several fields, for example 'rchash', 'rcrecs' and 'ncha'.
If this function later exits due to the failure of xdl_optimize_ctxs(),
then this xdlclassifier_t structure, and the memory allocated to it,
is not cleaned up.

In order to fix the memory leak, insert a call to xdl_free_classifier()
before returning.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

xdiff/xprepare: use the XDF_DIFF_ALG() macro to access... Ramsay Jones Fri, 4 Mar 2016 23:09:36 +0000 (23:09 +0000)

xdiff/xprepare: use the XDF_DIFF_ALG() macro to access flag bits

Commit 307ab20b3 ("xdiff: PATIENCE/HISTOGRAM are not independent option
bits", 19-02-2012) introduced the XDF_DIFF_ALG() macro to access the
flag bits used to represent the diff algorithm requested. In addition,
code which had used explicit manipulation of the flag bits was changed
to use the macros.

However, one example of direct manipulation remains. Update this code to
use the XDF_DIFF_ALG() macro.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Git 2.8-rc1 v2.8.0-rc1Junio C Hamano Fri, 4 Mar 2016 21:48:55 +0000 (13:48 -0800)

Git 2.8-rc1

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

Merge branch 'nd/clear-gitenv-upon-use-of-alias'Junio C Hamano Fri, 4 Mar 2016 21:46:44 +0000 (13:46 -0800)

Merge branch 'nd/clear-gitenv-upon-use-of-alias'

Hotfix for a test breakage made between 2.7 and 'master'.

* nd/clear-gitenv-upon-use-of-alias:
t0001: fix GIT_* environment variable check under --valgrind

Merge branch 'js/pthread-exit-emu-windows'Junio C Hamano Fri, 4 Mar 2016 21:46:39 +0000 (13:46 -0800)

Merge branch 'js/pthread-exit-emu-windows'

* js/pthread-exit-emu-windows:
Mark win32's pthread_exit() as NORETURN

Merge branch 'sb/submodule-parallel-fetch'Junio C Hamano Fri, 4 Mar 2016 21:46:30 +0000 (13:46 -0800)

Merge branch 'sb/submodule-parallel-fetch'

Simplify the two callback functions that are triggered when the
child process terminates to avoid misuse of the child-process
structure that has already been cleaned up.

* sb/submodule-parallel-fetch:
run-command: do not pass child process data into callbacks

Merge branch 'jk/tighten-alloc'Junio C Hamano Fri, 4 Mar 2016 21:46:25 +0000 (13:46 -0800)

Merge branch 'jk/tighten-alloc'

* jk/tighten-alloc:
compat/mingw: brown paper bag fix for 50a6c8e

Merge branch 'nd/i18n-2.8.0'Junio C Hamano Fri, 4 Mar 2016 21:46:20 +0000 (13:46 -0800)

Merge branch 'nd/i18n-2.8.0'

* nd/i18n-2.8.0:
trailer.c: mark strings for translation
ref-filter.c: mark strings for translation
builtin/clone.c: mark strings for translation
builtin/checkout.c: mark strings for translation

Merge branch 'tb/avoid-gcc-on-darwin-10-6'Junio C Hamano Fri, 4 Mar 2016 21:46:08 +0000 (13:46 -0800)

Merge branch 'tb/avoid-gcc-on-darwin-10-6'

Out-of-maintenance gcc on OSX 10.6 fails to compile the code in
'master'; work it around by using clang by default on the platform.

* tb/avoid-gcc-on-darwin-10-6:
config.mak.uname: use clang for Mac OS X 10.6

Merge branch 'jk/pack-idx-corruption-safety'Junio C Hamano Fri, 4 Mar 2016 21:45:46 +0000 (13:45 -0800)

Merge branch 'jk/pack-idx-corruption-safety'

The code to read the pack data using the offsets stored in the pack
idx file has been made more carefully check the validity of the
data in the idx.

* jk/pack-idx-corruption-safety:
sha1_file.c: mark strings for translation
use_pack: handle signed off_t overflow
nth_packed_object_offset: bounds-check extended offset
t5313: test bounds-checks of corrupted/malicious pack/idx files

Merge branch 'mg/httpd-tests-update-for-apache-2.4'Junio C Hamano Fri, 4 Mar 2016 21:45:42 +0000 (13:45 -0800)

Merge branch 'mg/httpd-tests-update-for-apache-2.4'

The way the test scripts configure the Apache web server has been
updated to work also for Apache 2.4 running on RedHat derived
distros.

* mg/httpd-tests-update-for-apache-2.4:
t/lib-httpd: load mod_unixd

t5510: do not leave changed cwdMichael J Gruber Fri, 4 Mar 2016 10:53:50 +0000 (11:53 +0100)

t5510: do not leave changed cwd

t5510 carefully keeps the cwd at the test root by using either subshells
or explicit cd'ing back to the root. Use a subshell for the last
subtest, too.

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

Merge branch 'js/mingw-tests'Junio C Hamano Fri, 4 Mar 2016 18:14:39 +0000 (10:14 -0800)

Merge branch 'js/mingw-tests'

* js/mingw-tests:
t9700: fix test for perl older than 5.14

t9700: fix test for perl older than 5.14Jeff King Fri, 4 Mar 2016 11:43:21 +0000 (06:43 -0500)

t9700: fix test for perl older than 5.14

Commit d53c2c6 (mingw: fix t9700's assumption about
directory separators, 2016-01-27) uses perl's "/r" regex
modifier to do a non-destructive replacement on a string,
leaving the original unmodified and returning the result.

This feature was introduced in perl 5.14, but systems with
older perl are still common (e.g., CentOS 6.5 still has perl
5.10). Let's work around it by providing a helper function
that does the same thing using older syntax.

While we're at it, let's switch to using an alternate regex
separator, which is slightly more readable.

Reported-by: Christian Couder <christian.couder@gmail.com>
Helped-by: Dennis Kaarsemaker <dennis@kaarsemaker.net>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

l10n: sv.po: Update Swedish translation (2509t0f0u)Peter Krefting Fri, 4 Mar 2016 14:22:46 +0000 (15:22 +0100)

l10n: sv.po: Update Swedish translation (2509t0f0u)

Signed-off-by: Peter Krefting <peter@softwolves.pp.se>

l10n: sv.po: Fix inconsistent translation of "progress... Peter Krefting Wed, 3 Feb 2016 19:27:59 +0000 (20:27 +0100)

l10n: sv.po: Fix inconsistent translation of "progress meter"

Signed-off-by: Peter Krefting <peter@softwolves.pp.se>

documentation: fix some typosThomas Ackermann Thu, 3 Mar 2016 18:43:51 +0000 (19:43 +0100)

documentation: fix some typos

Signed-off-by: Thomas Ackermann <th.acker@arcor.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

index-pack: add a helper function to derive .idx/.keep... Junio C Hamano Thu, 3 Mar 2016 19:29:09 +0000 (11:29 -0800)

index-pack: add a helper function to derive .idx/.keep filename

These are automatically named by replacing .pack suffix in the
name of the packfile. Add a small helper to do so, as I'll be
adding another one soonish.

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