Re: [PATCH v4] git_connect: set ssh shell command in GIT_SSH_COMMAND

2014-11-10 Thread Thomas Quinot
* Jeff King, 2014-11-10 : I think this version looks good. Thanks for working on it. Thanks! Two style micro-nits (that I do not think even merit a re-roll by themselves, but Junio may want to mark up as he applies): OK, committed locally, I can resend a PATCH v5 if that's more convenient

2.2.0-rc behavior changes (1/2)

2014-11-10 Thread Bryan Turner
I've been running a test suite we use to verify Git behaviors across versions, and the 2.2.0 RCs (0 and 1 both) have a couple of small behavioral differences. I'm sending them in separate e-mails just to make the contents easier to grok. Important: It's entirely possible neither of these is a

2.2.0-rc behavior changes (2/2)

2014-11-10 Thread Bryan Turner
I've been running a test suite we use to verify Git behaviors across versions, and the 2.2.0 RCs (0 and 1 both) have a couple of small behavioral differences. I'm sending them in separate e-mails just to make the contents easier to grok. Important: It's entirely possible neither of these is a

Re: 2.2.0-rc behavior changes (1/2)

2014-11-10 Thread Jeff King
On Mon, Nov 10, 2014 at 07:47:32PM +1100, Bryan Turner wrote: First change: git update-ref -d /refs/heads/nonexistent some-valid-sha1 now produces an error about ref locking that it didn't produce before Git 2.1.x and prior produced this output: error: unable to resolve reference

Re: 2.2.0-rc behavior changes (2/2)

2014-11-10 Thread Jeff King
On Mon, Nov 10, 2014 at 07:51:00PM +1100, Bryan Turner wrote: Second change: git gc --auto now fails if there are loose empty blobs. We have a test which just touched empty files in objects/17 to trigger the gc --auto preconditions (Note: I realize this is completely invalid, and I've

[PATCH] Custom prompt colors

2014-11-10 Thread Vanja Radovanović
From 41e9edae533306b4a50570e32dbbdd291a4a5fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vanja=20Radovanovi=C4=87?= elva...@gmail.com Date: Sun, 9 Nov 2014 20:05:48 +0100 Subject: [PATCH] contrib/completion: custom git prompt colors Allow git prompt colors to be customized. Accept globally set

Re: [PATCH] Custom prompt colors

2014-11-10 Thread Vanja Radovanović
http://git.661346.n2.nabble.com/PATCH-Custom-prompt-colors-td7620939.html “Art has no limits. Just like me!” by Ponce On Mon, Nov 10, 2014 at 10:42 AM, Vanja Radovanović elva...@gmail.com wrote: From 41e9edae533306b4a50570e32dbbdd291a4a5fbf Mon Sep 17 00:00:00 2001 From:

Re: 2.2.0-rc behavior changes (1/2)

2014-11-10 Thread Bryan Turner
On Mon, Nov 10, 2014 at 8:22 PM, Jeff King p...@peff.net wrote: On Mon, Nov 10, 2014 at 07:47:32PM +1100, Bryan Turner wrote: First change: git update-ref -d /refs/heads/nonexistent some-valid-sha1 now produces an error about ref locking that it didn't produce before Git 2.1.x and prior

Re: 2.2.0-rc behavior changes (2/2)

2014-11-10 Thread Bryan Turner
On Mon, Nov 10, 2014 at 8:31 PM, Jeff King p...@peff.net wrote: On Mon, Nov 10, 2014 at 07:51:00PM +1100, Bryan Turner wrote: Second change: git gc --auto now fails if there are loose empty blobs. We have a test which just touched empty files in objects/17 to trigger the gc --auto

Re: [PATCH 1/2] Add a few more values for receive.denyCurrentBranch

2014-11-10 Thread Johannes Schindelin
Hi Junio, On Fri, 7 Nov 2014, Junio C Hamano wrote: Johannes Schindelin johannes.schinde...@gmx.de writes: Under certain circumstances, it makes a *lot* of sense to allow pushing into the current branch. For example, when two machines with different Operating Systems are required for

Re: [PATCH 2/2] Let deny.currentBranch=updateInstead ignore submodules

2014-11-10 Thread Johannes Schindelin
Hi Junio, On Fri, 7 Nov 2014, Junio C Hamano wrote: Johannes Schindelin johannes.schinde...@gmx.de writes: Signed-off-by: Johannes Schindelin johannes.schinde...@gmx.de --- builtin/receive-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/2] Add a few more values for receive.denyCurrentBranch

2014-11-10 Thread Johannes Schindelin
Hi Peff, On Sat, 8 Nov 2014, Jeff King wrote: On Fri, Nov 07, 2014 at 02:58:17PM +0100, Johannes Schindelin wrote: Under certain circumstances, it makes a *lot* of sense to allow pushing into the current branch. For example, when two machines with different Operating Systems are

Re: [PATCH 2/2] Let deny.currentBranch=updateInstead ignore submodules

2014-11-10 Thread Johannes Schindelin
Hi Jens, On Sun, 9 Nov 2014, Jens Lehmann wrote: Am 07.11.2014 um 20:20 schrieb Junio C Hamano: Johannes Schindelin johannes.schinde...@gmx.de writes: Signed-off-by: Johannes Schindelin johannes.schinde...@gmx.de --- builtin/receive-pack.c | 2 +- 1 file changed, 1

[PATCH] graph.c: visual difference on subsequent series

2014-11-10 Thread Antoine Beaupré
For projects with separate history lines and, thus, multiple root-commits, the linear arrangement of `git log --graph --oneline` does not allow the user to spot where the sequence ends, giving the impression that it's a contiguous history. E.g. History sequence A: a1 -- a2 -- a3 (root-commit)

[PATCH v2 1/2] Clean stale environment pointer in finish_command()

2014-11-10 Thread Johannes Schindelin
In start_command(), unset env fields are initialized via env_array. In finish_command(), the env_array is cleared, therefore the env field will point to free()d data. However, start_command() will set env to env_array.argv only if env was unset to begin with, and if it was already set, the caller

[PATCH v2 0/2] Support updating working trees when pushing into non-bare repos

2014-11-10 Thread Johannes Schindelin
This patch series adds support for two new receive.denyCurrentBranch settings: one to update the working directory (which must be clean, i.e. there must not be any uncommitted changes) when pushing into the current branch, the other setting detaches the HEAD instead. The scenario in which in

[PATCH v2 2/2] Add a few more options for receive.denyCurrentBranch

2014-11-10 Thread Johannes Schindelin
When synchronizing between working directories, it can be handy to update the current branch via 'push' rather than 'pull', e.g. when pushing a fix from inside a VM, or when pushing a fix made on a user's machine (where the developer is not at liberty to install an ssh daemon let alone know the

Re: [PATCH v2 1/2] Clean stale environment pointer in finish_command()

2014-11-10 Thread Johannes Schindelin
Hi, On Mon, 10 Nov 2014, Johannes Schindelin wrote: In start_command(), unset env fields are initialized via env_array. In finish_command(), the env_array is cleared, therefore the env field will point to free()d data. However, start_command() will set env to env_array.argv only if env

Re: [PATCH 2/2] Let deny.currentBranch=updateInstead ignore submodules

2014-11-10 Thread Junio C Hamano
Johannes Schindelin johannes.schinde...@gmx.de writes: By the way, if the expected use case of updateInstead is what I outlined in the previous message, would it make more sense not to fail with update-index --refresh failure (i.e. the working tree files have no changes since the index)?

Re: [PATCH 1/2] Add a few more values for receive.denyCurrentBranch

2014-11-10 Thread Junio C Hamano
Johannes Schindelin johannes.schinde...@gmx.de writes: I do not think of a good justification of detachInstead offhand, but you must have thought things through a lot more than I did, so you can come up with a work flow description that is more usable by mere mortals to justify that mode.

[PATCH] Show number of commits being rebased interactively

2014-11-10 Thread Onno Kortmann
Hi again, oops, I realized that my MUA mangled the patch, even though it shouldn't. Here it is again, with a bit more description. --- During 'rebase -i', one wrong edit in a long rebase session might inadvertently drop commits. This change shows the total number of commits in the comments below

Re: [PATCH v4] git_connect: set ssh shell command in GIT_SSH_COMMAND

2014-11-10 Thread Junio C Hamano
Thomas Quinot tho...@quinot.org writes: * Jeff King, 2014-11-10 : I think this version looks good. Thanks for working on it. Thanks! Two style micro-nits (that I do not think even merit a re-roll by themselves, but Junio may want to mark up as he applies): OK, committed locally, I can

Re: What's cooking in git.git (Nov 2014, #01; Wed, 5)

2014-11-10 Thread Junio C Hamano
Torsten Bögershausen tbo...@web.de writes: * jt/timer-settime (2014-08-29) 6 commits - use timer_settime() for new platforms - autoconf: check for timer_settime() - autoconf: check for struct itimerspec - autoconf: check for struct sigevent - autoconf: check for struct timespec -

Re: [PATCH] git-imap-send: use libcurl for implementation

2014-11-10 Thread Junio C Hamano
Bernhard Reiter ock...@raz.or.at writes: Am 2014-11-09 um 14:00 schrieb Torsten Bögershausen: On 2014-08-27 00.40, Bernhard Reiter wrote: Use libcurl's high-level API functions to implement git-imap-send instead of the previous low-level OpenSSL-based functions. This doesn't seem to fully

Re: [PATCH v2 4/5] trailer: reuse ignore_non_trailer() to ignore conflict lines

2014-11-10 Thread Junio C Hamano
Christian Couder chrisc...@tuxfamily.org writes: Make sure we look for trailers before any conflict line by reusing the ignore_non_trailer() function. Helped-by: Junio C Hamano gits...@pobox.com Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- It makes sense to unify the logic

Re: [PATCH] config.txt: fix typo

2014-11-10 Thread Junio C Hamano
Thanks. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2 4/5] trailer: reuse ignore_non_trailer() to ignore conflict lines

2014-11-10 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH v2 4/5] trailer: reuse ignore_non_trailer() to ignore conflict lines Date: Mon, 10 Nov 2014 09:49:34 -0800 Christian Couder chrisc...@tuxfamily.org writes: Make sure we look for trailers before any conflict line by reusing the

Re: [PATCH 2/2] Let deny.currentBranch=updateInstead ignore submodules

2014-11-10 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: Dying when update-index --refresh signals a difference is an attempt to mimic #1, but it is in line with the spirit of the reason why a user would want to use updateInstead, I think. The situation is more like the person who pushed into your

Re: [PATCH v2 4/5] trailer: reuse ignore_non_trailer() to ignore conflict lines

2014-11-10 Thread Junio C Hamano
Christian Couder chrisc...@tuxfamily.org writes: From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH v2 4/5] trailer: reuse ignore_non_trailer() to ignore conflict lines Date: Mon, 10 Nov 2014 09:49:34 -0800 Christian Couder chrisc...@tuxfamily.org writes: Make sure we look for

Re: [PATCHv3 3/5] builtin/notes: Add --allow-empty, to allow storing empty notes

2014-11-10 Thread Junio C Hamano
Johan Herland jo...@herland.net writes: On Fri, Nov 7, 2014 at 7:04 PM, Junio C Hamano gits...@pobox.com wrote: In other words, I have this suspicion that create_note() that removes is a wrong interface in the first place, and giving it a new allow_empty parameter to conditionally perform

Re: [PATCHv4 5/9] builtin/notes: Simplify early exit code in add()

2014-11-10 Thread Junio C Hamano
Johan Herland jo...@herland.net writes: Signed-off-by: Johan Herland jo...@herland.net --- builtin/notes.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/builtin/notes.c b/builtin/notes.c index 1017472..f1480cf 100644 --- a/builtin/notes.c +++

Re: [PATCHv4 9/9] t3301: Modernize

2014-11-10 Thread Junio C Hamano
Johan Herland jo...@herland.net writes: Make this test script appear somewhat less old-fashioned: - Use test helper functions: - write_script - test_commit - test_write_lines - test_config - test_unconfig - test_path_is_missing - Remove whitespace between

Re: [PATCH v2 22/22] untracked cache: guard and disable on system changes

2014-11-10 Thread Torsten Bögershausen
On 11/10/2014 12:47 AM, Duy Nguyen wrote: Some updates from the test lab, Windows 7 Working means git update-index --untracked-cache reports Testing...OK Rejected means ..does not change.. cygwin + NTFS: Working cygwin + VFAT: Rejected The same good news for Msysgit, running your github branch

[PATCH] run-command: use void to declare that functions take no parameters

2014-11-10 Thread René Scharfe
Explicitly declare that git_atexit_dispatch() and git_atexit_clear() take no parameters instead of leaving their parameter list empty and thus unspecified. Signed-off-by: Rene Scharfe l@web.de --- run-command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 1/2] Clean stale environment pointer in finish_command()

2014-11-10 Thread Junio C Hamano
Johannes Schindelin johannes.schinde...@gmx.de writes: In start_command(), unset env fields are initialized via env_array. In finish_command(), the env_array is cleared, therefore the env field will point to free()d data. However, start_command() will set env to env_array.argv only if env

Re: [PATCH] run-command: use void to declare that functions take no parameters

2014-11-10 Thread Junio C Hamano
René Scharfe l@web.de writes: Explicitly declare that git_atexit_dispatch() and git_atexit_clear() take no parameters instead of leaving their parameter list empty and thus unspecified. Signed-off-by: Rene Scharfe l@web.de --- Thanks. I was kind of surprised after running a git

[PATCH] replace: fix replacing object with itself

2014-11-10 Thread Manzur Mukhitdinov
When object is replaced with itself git shows unhelpful messages like(git log): fatal: replace depth too high for object SHA1 Prevents user from replacing object with itself(with test for checking this case). --- builtin/replace.c | 8 +++- t/t6050-replace.sh | 8 2 files

mac test failure -- test 3301

2014-11-10 Thread Michael Blume
the commit modernizing test 3301 (https://github.com/git/git/commit/fbe4f74865acfd) appears to break it on my mac Verbose output follows: $ ./t3301-notes.sh -v Initialized empty Git repository in /Users/michael.blume/workspace/git/t/trash directory.t3301-notes/.git/ expecting success:

Re: mac test failure -- test 3301

2014-11-10 Thread Michael Blume
(to be clear: I ran git bisect, and traced the problem to the modernize commit) On Mon, Nov 10, 2014 at 4:17 PM, Michael Blume blume.m...@gmail.com wrote: the commit modernizing test 3301 (https://github.com/git/git/commit/fbe4f74865acfd) appears to break it on my mac Verbose output follows:

Re: mac test failure -- test 3301

2014-11-10 Thread Michael Blume
my first thought was that this might be a bash versioning issue, since the commit in question basically refactors the script, and macs ship with an archaic version of bash, but I have the same problem with bash 4.3.30 On Mon, Nov 10, 2014 at 4:23 PM, Michael Blume blume.m...@gmail.com wrote: (to

Re: [PATCHv4 5/9] builtin/notes: Simplify early exit code in add()

2014-11-10 Thread Johan Herland
On Mon, Nov 10, 2014 at 9:36 PM, Junio C Hamano gits...@pobox.com wrote: Johan Herland jo...@herland.net writes: Signed-off-by: Johan Herland jo...@herland.net --- builtin/notes.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/builtin/notes.c

Re: [PATCHv4 9/9] t3301: Modernize

2014-11-10 Thread Johan Herland
On Mon, Nov 10, 2014 at 9:42 PM, Junio C Hamano gits...@pobox.com wrote: Johan Herland jo...@herland.net writes: Make this test script appear somewhat less old-fashioned: - Use test helper functions: - write_script - test_commit - test_write_lines - test_config -

Re: [PATCHv4 9/9] t3301: Modernize

2014-11-10 Thread Eric Sunshine
On Mon, Nov 10, 2014 at 8:04 PM, Johan Herland jo...@herland.net wrote: On Mon, Nov 10, 2014 at 9:42 PM, Junio C Hamano gits...@pobox.com wrote: Johan Herland jo...@herland.net writes: Make this test script appear somewhat less old-fashioned: - Use test helper functions: - write_script

Re: mac test failure -- test 3301

2014-11-10 Thread Eric Sunshine
On Mon, Nov 10, 2014 at 7:17 PM, Michael Blume blume.m...@gmail.com wrote: the commit modernizing test 3301 (https://github.com/git/git/commit/fbe4f74865acfd) appears to break it on my mac $ ./t3301-notes.sh -v expecting success: MSG=b4 git notes add test_path_is_missing

Re: mac test failure -- test 3301

2014-11-10 Thread Johan Herland
On Tue, Nov 11, 2014 at 2:19 AM, Eric Sunshine sunsh...@sunshineco.com wrote: On Mon, Nov 10, 2014 at 7:17 PM, Michael Blume blume.m...@gmail.com wrote: the commit modernizing test 3301 (https://github.com/git/git/commit/fbe4f74865acfd) appears to break it on my mac $ ./t3301-notes.sh -v

Re: mac test failure -- test 3301

2014-11-10 Thread Michael Blume
If quoting is generally preferred as a best practice, we could force wc to behave more consistently before we start testing diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 0d93e33..57ed608 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -515,6 +515,14 @@

Re: [PATCHv4 9/9] t3301: Modernize

2014-11-10 Thread Johan Herland
On Tue, Nov 11, 2014 at 2:07 AM, Eric Sunshine sunsh...@sunshineco.com wrote: On Mon, Nov 10, 2014 at 8:04 PM, Johan Herland jo...@herland.net wrote: On Mon, Nov 10, 2014 at 9:42 PM, Junio C Hamano gits...@pobox.com wrote: Johan Herland jo...@herland.net writes: Make this test script appear

蜜袋鼯 原木傢俱 任2件打8折!!只在最多小蜜商品的寵物家族!!!

2014-11-10 Thread kidrgaqefd jhdrgfaqw
奇摩超級商城裡格最優惠的優良店家「寵物家族」再此為您服務 您需求的數千種寵物用品都在這裡,非常歡迎您的蒞臨 更多好康,請點擊下網址參觀(不定期超多優惠折扣快來搶購): http://ow.ly/DIjY5 pvxep樊珊芳 -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: mac test failure -- test 3301

2014-11-10 Thread Jeff King
On Tue, Nov 11, 2014 at 02:40:19AM +0100, Johan Herland wrote: This and all other failures are due to the output of 'wc -l', which on Mac is {whitespace}1 rather than just 1 as it is on other platforms. fbe4f748 added quotes around the $(... | wc -l) invocation which caused the whitespace

Re: [PATCH] run-command: use void to declare that functions take no parameters

2014-11-10 Thread Jeff King
On Mon, Nov 10, 2014 at 02:43:10PM -0800, Junio C Hamano wrote: Explicitly declare that git_atexit_dispatch() and git_atexit_clear() take no parameters instead of leaving their parameter list empty and thus unspecified. [...] I was kind of surprised after running a git blame to find

Re: [PATCH] replace: fix replacing object with itself

2014-11-10 Thread Jeff King
On Tue, Nov 11, 2014 at 12:20:56AM +0100, Manzur Mukhitdinov wrote: When object is replaced with itself git shows unhelpful messages like(git log): fatal: replace depth too high for object SHA1 Prevents user from replacing object with itself(with test for checking this case). Thanks,

Re: [PATCH v2 1/2] Clean stale environment pointer in finish_command()

2014-11-10 Thread Jeff King
On Mon, Nov 10, 2014 at 01:44:24PM -0800, Junio C Hamano wrote: Johannes Schindelin johannes.schinde...@gmx.de writes: In start_command(), unset env fields are initialized via env_array. In finish_command(), the env_array is cleared, therefore the env field will point to free()d data.

Re: [PATCH v2 1/2] Clean stale environment pointer in finish_command()

2014-11-10 Thread Jeff King
On Mon, Nov 10, 2014 at 03:41:09PM +0100, Johannes Schindelin wrote: However, start_command() will set env to env_array.argv only if env was unset to begin with, and if it was already set, the caller will need the original value. Therefore, we need to be very careful only to reset env in