Re: [RFC/PATCH 0/1] cygwin: Remove the Win32 l/stat() functions

2013-06-25 Thread Torsten Bögershausen
On 25.06.13 21:23, Johannes Sixt wrote: > Am 25.06.2013 00:10, schrieb Junio C Hamano: >> Mark Levedahl writes: >> >>> On 06/22/2013 03:38 PM, Ramsay Jones wrote: Also, apart from running the git test-suite, I have the Win32 l/stat functions disabled on all of my repos. In particular, I

[PATCH] t7400: test of UTF-8 submodule names pass under Mac OS

2013-06-20 Thread Torsten Bögershausen
lled UTF-8, rephrase the heading Signed-off-by: Torsten Bögershausen --- I wasn't fast enough to catch it on pu: fg/submodule-non-ascii-path t/t7400-submodule-basic.sh | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule

[PATCH V2] t0070 "mktemp to unwritable directory" needs SANITY

2013-06-08 Thread Torsten Bögershausen
Use the SANITY prerequisite when testing if a temp file can be created in a read only directory. Skip the test under CYGWIN, or skip it under Unix/Linux when it is run as root. Signed-off-by: Torsten Bögershausen --- t/t0070-fundamental.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH V2] t0070 "mktemp to unwritable directory" needs SANITY

2013-06-08 Thread Torsten Bögershausen
Use the SANITY prerequisite when testing if a temp file can be created in a read only directory. Skip the test under CYGWIN, or skip it under Unix/Linux when it is run as root. Signed-off-by: Torsten Bögershausen --- t/t0070-fundamental.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] t0070: Use precondition CANNOTWRITE

2013-06-07 Thread Torsten Bögershausen
dows using NTFS. This TC has been disabled for MINGW, and needs to be disabled for CYGWIN. Use the precondition CANNOTWRITE which is probing the file system and works for MINGW, CYGWIN and even for Linux using VFAT. Signed-off-by: Torsten Bögershausen --- t/t0070-fundamental.sh | 19

t4015 broken on pu

2013-06-03 Thread Torsten Bögershausen
The new 4015 does not pass under Mac OS: a) The seq command, does not exits (we can use printf) b) One sed expression is not understood, sed exporst needed ;-) git diff diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh index b3c4fcc..f00d20b 100755 --- a/t/t4015-diff-whites

Re: [PATCH RESEND v2] path: Fix a sparse warning

2013-05-29 Thread Torsten Bögershausen
On 2013-05-28 19.04, Junio C Hamano wrote: > > Can you tell me what the conclusion on the discussion on your two > other patches on 'pu'? > > * rj/mingw-cygwin (2013-05-08) 2 commits > - cygwin: Remove the CYGWIN_V15_WIN32API build variable > - mingw: rename WIN32 cpp macro to GIT_WINDOWS_NATIV

Re: [PATCH v8 0/3] Begin replacing OpenSSL with CommonCrypto

2013-05-21 Thread Torsten Bögershausen
On 2013-05-21 00.52, Junio C Hamano wrote: > Thanks, will replace da/darwin with this round. (May be late response, not sure if this is the right email thread. I eventually managed to compile under 10.6, what we have on pu) One minor nit, or 2: imap-send.c: In function ‘cram’: imap-send.c:913: war

Re: [PATCH v5 1/2] cache.h: eliminate SHA-1 deprecation warnings on Mac OS X

2013-05-15 Thread Torsten Bögershausen
On 2013-05-15 09.11, David Aguilar wrote: > Mac OS X 10.8 Mountain Lion prints warnings when building git: > > warning: 'SHA1_Init' is deprecated > (declared at /usr/include/openssl/sha.h:121) > > Silence the warnings by using the CommonCrytpo SHA-1 > functions for SHA1_Init(), SHA1_U

Re: Problems with Windows, Was: What's cooking in git.git (May 2013, #01; Fri, 3)

2013-05-14 Thread Torsten Bögershausen
On 2013-05-09 19.18, Ramsay Jones wrote: > Torsten Bögershausen wrote: >> On 2013-05-04 01.14, Junio C Hamano wrote: >>> >>> Cygwin portability; both were reviewed by Jonathan, and the tip one >>> seems to want a bit further explanation. Needs positive report

Re: [PATCH] t5551: do not use unportable sed '\+'

2013-05-13 Thread Torsten Bögershausen
On 2013-05-13 18.30, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> On 2013-05-13 00.50, Junio C Hamano wrote: >>> Signed-off-by: Junio C Hamano >>> --- >>> t/t5551-http-fetch.sh | 8 ++-- >>> 1 file changed, 6 insertions(+),

Re: [PATCH] t5551: do not use unportable sed '\+'

2013-05-13 Thread Torsten Bögershausen
On 2013-05-13 00.50, Junio C Hamano wrote: > Signed-off-by: Junio C Hamano > --- > t/t5551-http-fetch.sh | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > Thanks, works like a charm, tested on Mac OS. /torsten -- To unsubscribe from this list: send the line "unsubscribe git" in

Re: [PATCH] test-bzr: Do not use unportable sed "\+"

2013-05-11 Thread Torsten Bögershausen
On 11.05.13 22:09, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> I did, >> the interesting thing is that the test passes with and without your patch. >> (After enabling GIT_TEST_LONG and GIT_TEST_HTTPD in both cases) > > Strange. Do you see differenc

RE: [PATCH] test-bzr: Do not use unportable sed "\+"

2013-05-11 Thread Torsten Bögershausen
On 05/11/2013 03:25 PM, Torsten Bögershausen wrote: Sorry, I forgot to mention that there is another test case that fails in test-bzr.sh (Both Linux and MacOS): Cloning into 'gitrepo'... --- ../expected 2013-05-11 20:07:17.678360248 + +++ actual 2013-05-11 20:07:21.51031

Re: [PATCH] test-bzr: Do not use unportable sed "\+"

2013-05-11 Thread Torsten Bögershausen
On 11.05.13 21:45, Junio C Hamano wrote: > Junio C Hamano writes: > >> Thanks. Is there another one in t/t5551-http-fetch.sh that checks >> the tags? > > I think your sed will see the same breakage for the one in 5551 (my > sed is unfortunately GNU and ".\+" does not break it). Could you > tes

[PATCH] test-bzr: Do not use unportable sed "\+"

2013-05-11 Thread Torsten Bögershausen
Using sed -e '/[0-9]\+//' to find "one ore more" digits is not portable. Use the Basic Regular Expression '/[0-9][0-9]*//' instead Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-bzr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: Problems with Windows, Was: What's cooking in git.git (May 2013, #01; Fri, 3)

2013-05-08 Thread Torsten Bögershausen
On 2013-05-08 02.30, Mark Levedahl wrote: > On 05/07/2013 10:27 AM, Torsten Bögershausen wrote: >> On 2013-05-04 01.14, Junio C Hamano wrote: >>> >>> Cygwin portability; both were reviewed by Jonathan, and the tip one >>> seems to want a bit further

Problems with Windows, Was: What's cooking in git.git (May 2013, #01; Fri, 3)

2013-05-07 Thread Torsten Bögershausen
On 2013-05-04 01.14, Junio C Hamano wrote: > > Cygwin portability; both were reviewed by Jonathan, and the tip one > seems to want a bit further explanation. Needs positive report > from Cygwin 1.7 users who have been on 1.7 to make sure it does not > regress for them. I was trying to verify

Re: [PATCH 2/6] path: Make the 'get_st_mode_bits' symbol a file static

2013-04-28 Thread Torsten Bögershausen
On 2013-04-28 08.02, Torsten Bögershausen wrote: > On 2013-04-27 20.42, Ramsay Jones wrote: >> >> On MinGW, sparse issues an "'get_st_mode_bits' not declared. Should >> it be static?" warning. The MinGW and MSVC builds do not see the >> declaration

Re: [PATCH 2/6] path: Make the 'get_st_mode_bits' symbol a file static

2013-04-27 Thread Torsten Bögershausen
On 2013-04-27 20.42, Ramsay Jones wrote: > > On MinGW, sparse issues an "'get_st_mode_bits' not declared. Should > it be static?" warning. The MinGW and MSVC builds do not see the > declaration of this function, within git-compat-util.h, due to it's > placement within an preprocessor conditional.

Re: [PATCH] t9501: Do not use export X=Y

2013-04-26 Thread Torsten Bögershausen
On 2013-04-25 22.46, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> Spilt lines like export X=Y into 2 lines: >> X=Y >> export X > > That can be read from the patch text. > > If you are going to spend three lines, please describe why it has to

[PATCH 5/5] t7409: do not use export X=Y

2013-04-26 Thread Torsten Bögershausen
The shell syntax "export X=Y A=B" is not understood by all shells. Split the non portable line into separate lines like this: A=B X=Y export A X Signed-off-by: Torsten Bögershausen --- t/t7409-submodule-detached-worktree.sh | 14 ++ 1 file changed, 10 insertions(+), 4

[PATCH 1/5] t9020: do not use export X=Y

2013-04-26 Thread Torsten Bögershausen
The shell syntax "export X=Y" is not understood by all shells. Split the non portable line into separate lines like this: X=Y export X Signed-off-by: Torsten Bögershausen --- t/t9020-remote-svn.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t9020-remote-

[PATCH 2/5] t9501: do not use export X=Y

2013-04-26 Thread Torsten Bögershausen
The shell syntax "export X=Y" is not understood by all shells. Split the non portable line into separate lines like this: X=Y export X Signed-off-by: Torsten Bögershausen --- t/t9501-gitweb-standalone-http-status.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletion

[PATCH 3/5] test-hg-bidi.sh: do not use export X=Y

2013-04-26 Thread Torsten Bögershausen
The shell syntax "export X=Y A=B" is not understood by all shells. Split the non portable line into separate lines like this: A=B X=Y export A X Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-hg-bidi.sh | 11 ++- 1 file changed, 6 insertions(+), 5 deletion

[PATCH 4/5] test-hg-hg-git.sh: do not use export X=Y

2013-04-26 Thread Torsten Bögershausen
The shell syntax "export X=Y" is not understood by all shells. Split the non portable line into separate lines like this: X=Y export X Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-hg-hg-git.sh | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) di

[PATCH] t9501: Do not use export X=Y

2013-04-25 Thread Torsten Bögershausen
Spilt lines like export X=Y into 2 lines: X=Y export X Signed-off-by: Torsten Bögershausen --- t/t9501-gitweb-standalone-http-status.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/t/t9501-gitweb-standalone-http-status.sh b/t/t9501-gitweb-standalone-http

[PATCH] t9501: Use PERL_PATH instead of perl

2013-04-25 Thread Torsten Bögershausen
The prerequisite checker for DATE_PARSER should use "$PERL_PATH" instead of perl Signed-off-by: Torsten Bögershausen --- t/t9501-gitweb-standalone-http-status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t9501-gitweb-standalone-http-status.sh b/t/t9

[PATCH] check-non-portable-shell: export X=Y usage

2013-04-25 Thread Torsten Bögershausen
The make test-lint could check for lines like export X=Y This is bash syntax and should be written in 2 lines: X=Y export X Signed-off-by: Torsten Bögershausen --- t/check-non-portable-shell.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/check-non-portable-shell.pl

[PATCH] test-lint-shell-syntax: Allow bash syntax in bash tests

2013-04-25 Thread Torsten Bögershausen
t/check-non-portable-sh.pl checks for bash only syntax like test $a == $b This is wrong when bash is used. Switch to bash mode and skip this test Signed-off-by: Torsten Bögershausen --- t/check-non-portable-shell.pl | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t

[PATCH] check-non-portable-shell: Check for non portable grep usage

2013-04-25 Thread Torsten Bögershausen
ned-off-by: Torsten Bögershausen --- t/check-non-portable-shell.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/check-non-portable-shell.pl b/t/check-non-portable-shell.pl index ff87611..58f8e2c 100755 --- a/t/check-non-portable-shell.pl +++ b/t/check-non-portable-shell.pl @@ -16,6 +1

[PATCH] check-non-portable-shell: echo -e is not portable

2013-04-25 Thread Torsten Bögershausen
parameter starting with a hyphen and recommend the usage of printf instead Signed-off-by: Torsten Bögershausen --- t/check-non-portable-shell.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/check-non-portable-shell.pl b/t/check-non-portable-shell.pl index 8b5a71d

Re: [PATCH] t5801: properly test the test shell

2013-04-25 Thread Torsten Bögershausen
On 25.04.13 12:09, Michael J Gruber wrote: > fc407f9 (Add new simplified git-remote-testgit, 2012-11-28) introduced a > test which was meant to skip the test unless the test shell is bash. > Unfortunately, it tests for the availability of bash only. But users can > opt to use a different shell (usi

[PATCH] contrib/test-hg*.sh: Do not use PYTHON_PATH

2013-04-17 Thread Torsten Bögershausen
check for installed modules. While at it, split exportX=Y into 2 lines Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-hg-bidi.sh | 14 +- contrib/remote-helpers/test-hg-hg-git.sh | 12 +++- contrib/remote-helpers/test-hg.sh| 2 +- 3 files ch

Re: [PATCH v3 00/13] nd/pretty-formats

2013-04-16 Thread Torsten Bögershausen
013 at 12:06 AM, Torsten Bögershausen wrote: > On 30.03.13 10:35, Nguyễn Thái Ngọc Duy wrote: > [...] > The short version of a review: > Would it make sense to leave reencode_string() as it is, > and add a new function reencode_string_len() Hmm.. yeah. /Torsten -- To unsubscri

[PATCH] test-bzr: portable shell and utf-8 strings for Mac OS

2013-04-12 Thread Torsten Bögershausen
points from unicode which can not be decomposed. In other words, the precompsed form use the same bytes as decomposed. Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-bzr.sh | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --

[PATCH] test-lint-duplicates: consider only numbered test cases

2013-04-10 Thread Torsten Bögershausen
ers/test-XX.sh" and "/contrib/remote-helpers/test-YY.sh" are both converted into "/contrib/remote", and reported as duplicate. Improve the regexp: - strip the leading path and look only at the basename - only look at files which have t- (where N stand for a digit

Re: [PATCH] test-lint-duplicates: Only check for numbered test cases

2013-04-10 Thread Torsten Bögershausen
On 03.04.13 16:28, Jeff King wrote: > On Wed, Apr 03, 2013 at 07:54:02AM +0200, Torsten Bögershausen wrote: > >> Running make inside contrib/remote-helpers fails in "test-lint-duplicates" >> >> This was because the regexp checking for duplicate numbers strips ev

Re: [PATCH v2 6/7] remote-bzr: add utf-8 support for fetching

2013-04-08 Thread Torsten Bögershausen
On 08.04.13 19:27, Felipe Contreras wrote: > From: Christophe Simonis > > Initial patch by Timotheus Pokorra. > > [fc: added tests] > > Signed-off-by: Felipe Contreras > --- > contrib/remote-helpers/git-remote-bzr | 15 +-- > contrib/remote-helpers/test-bzr.sh| 32

[PATCH V2] remote-helpers/test-bzr.sh: do not use grep \s

2013-04-07 Thread Torsten Bögershausen
Use a literal TAB followed by SPACE like this [ ] instead, which is more portable than [:space:] Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-hg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/

[PATCH] remote-helpers/test-bzr.sh: do not use grep \s

2013-04-07 Thread Torsten Bögershausen
ot a basic regular expression: use egrep instead of grep. Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/test-hg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index 5f81dfa..7bb81f2 100755

Re: [PATCH v2 0/4] remote-helpers: trivial test fixes

2013-04-06 Thread Torsten Bögershausen
On 06.04.13 19:58, Felipe Contreras wrote: > On Sat, Apr 6, 2013 at 11:45 AM, Torsten Bögershausen wrote: >> On 06.04.13 19:29, Felipe Contreras wrote: >>> On Sat, Apr 6, 2013 at 11:03 AM, Torsten Bögershausen wrote: > >>>> --- a/contrib/remote-helpers/tes

Re: [PATCH v2 0/4] remote-helpers: trivial test fixes

2013-04-06 Thread Torsten Bögershausen
On 06.04.13 19:29, Felipe Contreras wrote: > On Sat, Apr 6, 2013 at 11:03 AM, Torsten Bögershausen wrote: >> On 04.04.13 17:36, Felipe Contreras wrote: >>> Hi, >>> >>> A reroll, now we do some checks, just avoid test-lint-duplicates, and fix >>> th

Re: [PATCH v2 0/4] remote-helpers: trivial test fixes

2013-04-06 Thread Torsten Bögershausen
On 06.04.13 19:03, Torsten Bögershausen wrote: > On 04.04.13 17:36, Felipe Contreras wrote: >> Hi, >> >> A reroll, now we do some checks, just avoid test-lint-duplicates, and fix the >> outsanding shell portability issue. The rest is the same. >> >> Felip

Re: [PATCH v2 0/4] remote-helpers: trivial test fixes

2013-04-06 Thread Torsten Bögershausen
On 04.04.13 17:36, Felipe Contreras wrote: > Hi, > > A reroll, now we do some checks, just avoid test-lint-duplicates, and fix the > outsanding shell portability issue. The rest is the same. > > Felipe Contreras (4): > remote-bzr: avoid echo -n > remote-helpers: fix the run of all tests > r

[PATCH] test-lint-duplicates: Only check for numbered test cases

2013-04-02 Thread Torsten Bögershausen
rs/test-bzr.sh" and "/contrib/remote-helpers/test-hg-bidi.sh" are both converted into "/contrib/remote", and reported as duplicate. Improve the regexp: Remove everything after t- (where X stand for a digit) Signed-off-by: Torsten Bögershausen --- t/Makefile

Re: [PATCH 1/3] remote-helpers: fix the run of all tests

2013-04-02 Thread Torsten Bögershausen
On 02.04.13 19:36, Jeff King wrote: > On Tue, Apr 02, 2013 at 06:53:28PM +0200, Torsten Bögershausen wrote: > >>> I think the check for duplicate-numbers is the only one that does not >>> make sense. >> [] >> Not sure about that, I send a suggestion of a pa

[PATCH] test-lint-duplicates: check numbering in contrib/remote-helpers

2013-04-02 Thread Torsten Bögershausen
st-bzr.sh, t5820-test-hg-bidi.sh, t5821-test-hg-hg-git.sh, t5830-test-hg.sh Feed the numbers used in contrib/remote-helpers into t/Makefile and check that numbering is unique across both directories Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/Makefile

Re: [PATCH 1/3] remote-helpers: fix the run of all tests

2013-04-02 Thread Torsten Bögershausen
On 02.04.13 01:40, Jeff King wrote: > On Mon, Apr 01, 2013 at 11:46:00PM +0200, Antoine Pelisse wrote: > >> On Mon, Apr 1, 2013 at 11:14 PM, Felipe Contreras >> wrote: >>> +export TEST_LINT := >> >> I think "test-lint-executable" still makes sense here. > > Also test-lint-shell-syntax, which fin

Re: [PATCH v2 07/12] utf8: keep NULs in reencode_string()

2013-03-30 Thread Torsten Bögershausen
On 30.03.13 10:35, Nguyễn Thái Ngọc Duy wrote: [...] The short version of a review: Would it make sense to leave reencode_string() as it is, and add a new function reencode_string_len() +char *reencode_string_len(const char *in, int insz, + const char *out_encoding, const char

[PATCH 2/2] optimize adjust_shared_perm() in path.c:

2013-03-30 Thread Torsten Bögershausen
efs .git/refs/heads .git/refs/tags Signed-off-by: Torsten Bögershausen --- path.c | 42 +++--- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/path.c b/path.c index 427312e..33fa880 100644 --- a/path.c +++ b/path.c @@ -396,22 +396,14 @@ const c

[PATCH 1/2] optimize set_shared_perm() in path.c:

2013-03-30 Thread Torsten Bögershausen
path.c Signed-off-by: Torsten Bögershausen --- cache.h | 3 +-- path.c | 27 +++ 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/cache.h b/cache.h index c12957b..e1e8ce8 100644 --- a/cache.h +++ b/cache.h @@ -719,8 +719,7 @@ enum sharedrepo

Re: [PATCH 2/2] optimize set_shared_perm()

2013-03-30 Thread Torsten Bögershausen
On 29.03.13 22:20, Junio C Hamano wrote: [snip] > The last two points can become a separate "preparation" step. The > result would be easier to read. > > Your updated adjust_shared_perm() does not begin with: > > if (!shared_repository) > return 0; > > as the original, but i

Re: [PATCH 4/6] dir.c::match_pathname(): pay attention to the length of string parameters

2013-03-29 Thread Torsten Bögershausen
On 29.03.13 11:03, Duy Nguyen wrote: > On Fri, Mar 29, 2013 at 3:45 PM, Duy Nguyen wrote: >> On Fri, Mar 29, 2013 at 4:48 AM, Jeff King wrote: >>> - return fnmatch_icase(pattern, name, FNM_PATHNAME) == 0; >>> + return fnmatch_icase_mem(pattern, patternlen, >>> +

[PATCH 2/2] optimize set_shared_perm()

2013-03-25 Thread Torsten Bögershausen
ert adjust_shared_perm() from a macro into a function prototype Signed-off-by: Torsten Bögershausen --- cache.h | 3 +-- path.c | 71 +++-- 2 files changed, 39 insertions(+), 35 deletions(-) diff --git a/cache.h b/cache.h index 59e5b53..65a9db7 100

[PATCH 1/2] Make core.sharedRepository work under cygwin 1.7

2013-03-25 Thread Torsten Bögershausen
nized with the "read only" attribute of a file: $ chmod 444 x $ attrib x AR C:\temp\pt\x cygwin 1.7 would show A C:\temp\pt\x Signed-off-by: Torsten Bögershausen --- compat/cygwin.c | 13 + compat/cygwin.h | 5 + git-compat-util.h | 1 + pa

Re: [RFC] test-lib.sh: No POSIXPERM for cygwin

2013-03-25 Thread Torsten Bögershausen
On 24.03.13 03:49, Eric Sunshine wrote: > On Sat, Mar 23, 2013 at 8:40 AM, Torsten Bögershausen wrote: >> Subject: [PATCH] Make core.sharedRepository work under cygwin 1.7 [..] > > s/failes/fails/ > Thanks for review, I will send a new patch in a minute. It is actually 2 pat

Re: [PATCH 4/4] transport: drop "int cmp = cmp" hack

2013-03-24 Thread Torsten Bögershausen
On 24.03.13 10:32, Jeff King wrote: > On Sat, Mar 23, 2013 at 09:00:05PM -0700, Junio C Hamano wrote: > >> On Thu, Mar 21, 2013 at 4:13 AM, Jeff King wrote: >>> >>> According to 47ec794, this initialization is meant to >>> squelch an erroneous uninitialized variable warning from gcc >>> 4.0.1. T

Re: [PATCH 3/4] drop some obsolete "x = x" compiler warning hacks

2013-03-24 Thread Torsten Bögershausen
On 21.03.13 21:47, Jonathan Nieder wrote: > Jeff King wrote: > >> And 4.3 was old enough for me to say "I do not care if you can run with >> -Wall -Werror or not", let alone 4.2. > > Changes like this can only reveal bugs (in git or optimizers) that > were hidden before, without regressing actual

Re: [RFC] test-lib.sh: No POSIXPERM for cygwin

2013-03-23 Thread Torsten Bögershausen
On 19.03.13 22:03, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> Use a compile switch IGNORECYGWINFSTRICKS to disable the usage >> of cygwin_lstat_fn() only in path.c > > The analysis of the problem and the basic idea to disable the > fast-but-lying fstric

Re: Git on Mac OS and precomposed unicode

2013-03-21 Thread Torsten Bögershausen
On 21.03.13 14:00, Leo Koppelkamm wrote: > Torsten Bögershausen added a patch for this a while ago. > It seems it only works for files, not for folders with unicode in it. > > Eg. on ubuntu box: > git init > mkdir hä > touch hä/file > git add hä > git commit > > L

Re: [RFC] test-lib.sh: No POSIXPERM for cygwin

2013-03-19 Thread Torsten Bögershausen
On Friday 08 February 2013 07:08:14 Torsten Bögershausen wrote: > On 07.02.13 20:35, Junio C Hamano wrote: > > Ramsay Jones writes: > > > >> Torsten Bögershausen wrote: > >>> t0070 and t1301 fail when running the test suite under cygwin. > >>&g

Re: [PATCH] status: hint the user about -uno if read_directory takes too long

2013-03-16 Thread Torsten Bögershausen
On 15.03.13 22:59, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> Thanks, that looks good to me: >> >> # It took 2.58 seconds to enumerate untracked files. >> # Consider the -u option for a possible speed-up? >> >> But: >> If I foll

Re: [PATCH] status: hint the user about -uno if read_directory takes too long

2013-03-15 Thread Torsten Bögershausen
On 15.03.13 21:06, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> > Thanks, I like that much better than mine >> > (and expere is probably a word not yet invented) > OK, then how about redoing Duy's patch like this on top? > > I've mov

Re: [PATCH] status: hint the user about -uno if read_directory takes too long

2013-03-15 Thread Torsten Bögershausen
On 03/15/2013 05:53 PM, Junio C Hamano wrote: Torsten Bögershausen writes: [PATCH] git status: Document that git status -uno is faster In some repostories users expere that "git status" command takes long time. expere??? Certainly you did not mean "expect". "o

Re: [PATCH] status: hint the user about -uno if read_directory takes too long

2013-03-15 Thread Torsten Bögershausen
untracked file may take some time, and docuemnt the option -uno better. Signed-off-by: Torsten Bögershausen --- Documentation/git-status.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt index 0412c40..fd36bbd 100644

[PATCH] Make core.sharedRepository work under cygwin 1.7

2013-03-14 Thread Torsten Bögershausen
wrong in cygwin_lstat_fn(): The read-only attribute of a file is used to calculate the permissions, resulting in either rw-r--r-- or r--r--r-- Use a compile switch IGNORECYGWINFSTRICKS to disable the usage of cygwin_lstat_fn() only in path.c Signed-off-by: Torsten Bögershausen --- compat/cygwin.h

Re: [PATCH] status: hint the user about -uno if read_directory takes too long

2013-03-13 Thread Torsten Bögershausen
On 13.03.13 13:59, Nguyễn Thái Ngọc Duy wrote: > This patch attempts to advertise -uno to the users who tolerate slow > "git status" on large repositories (or slow machines/disks). The 2 > seconds limit is quite arbitrary but is probably long enough to start > using -uno. > > Signed-off-by: Nguyễn

Re: inotify to minimize stat() calls

2013-03-08 Thread Torsten Bögershausen
On 08.03.13 09:15, Junio C Hamano wrote: > Torsten Bögershausen writes: > >>> Doesn't this make one wonder why a separate bit and implementation >>> is necessary to say "I am not interested in untracked files" when >>> "-uno" option is al

Re: inotify to minimize stat() calls

2013-03-07 Thread Torsten Bögershausen
On 08.03.13 01:04, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> diff --git a/builtin/commit.c b/builtin/commit.c >> index d6dd3df..6a5ba11 100644 >> --- a/builtin/commit.c >> +++ b/builtin/commit.c >> @@ -1158,6 +1158,8 @@ int cmd_status(int

Re: inotify to minimize stat() calls

2013-03-07 Thread Torsten Bögershausen
d-only git status may be run faster if - we only check if files are changed which are already known to git. - we don't check if there are untracked files. "git status --changed-only" (or the short form "git status -c") will only check for changed files which are already kno

Re: "git commit" fails due to spurious file in index

2013-03-05 Thread Torsten Bögershausen
On 04.03.13 19:15, Robert Irelan wrote: > Hello all: > > This is my first time posting to this mailing list, but it appears to > me, through a Google search, that this is where you go to report what > might be bugs. I'm not sure if this is a bug or not, but it is > mysterious to me. > > My git re

[RFC] optimize set_shared_perm()

2013-02-28 Thread Torsten Bögershausen
o a function prototype Signed-off-by: Torsten Bögershausen --- cache.h | 3 +-- path.c | 75 +++-- 2 files changed, 41 insertions(+), 37 deletions(-) While investigating why cygwin 1.7 failes in t1301, and cygwin 1.5 passes, I came acros

Re: [PATCH/RFC] mingw: rename WIN32 cpp macro to NATIVE_WINDOWS

2013-02-26 Thread Torsten Bögershausen
On 26.02.13 05:08, Mark Levedahl wrote: > On 02/25/2013 01:44 AM, Junio C Hamano wrote: >> I was in "find leftover bits" mode today and found this thread hanging. Has >> anything come out of this thread, or there is nothing to improve in this >> area? > > The patch passed my simple tests (build

Re: [PATCH ] t4210-log-i18n: spell encoding name "UTF-8" correctly

2013-02-25 Thread Torsten Bögershausen
On 25.02.13 16:19, Jeff King wrote: > On Mon, Feb 25, 2013 at 09:37:50AM +0100, Johannes Sixt wrote: > >> From: Johannes Sixt >> >> iconv on Windows does not know the encoding name "utf8", and does not >> re-encode log messages when this name is given. Request "UTF-8" encoding. >> >> Signed-off-b

Re: [PATCH ] t4210-log-i18n: spell encoding name "UTF-8" correctly

2013-02-25 Thread Torsten Bögershausen
-- >8 -- [PATCH] iconv_open(): Use UTF-8 if UTF8 failes When iconv_open() failes with EINVAL, it may be that "UTF-8" is spelled wrong by mistake. For example, "UTF8" is used instead of "UTF-8". Some iconv implementations tolerate "UTF8" or "utf8&

Re: [PATH/RFC] parse-options: report invalid UTF-8 switches

2013-02-11 Thread Torsten Bögershausen
On 11.02.13 17:36, Erik Faye-Lund wrote: > On Mon, Feb 11, 2013 at 5:28 PM, Torsten Bögershausen wrote: >> On 11.02.13 14:34, Erik Faye-Lund wrote: >>> Even though parse-options doesn't support UTF-8 switches (which >>> makes sense; non-ascii switches would b

Re: [PATH/RFC] parse-options: report invalid UTF-8 switches

2013-02-11 Thread Torsten Bögershausen
On 11.02.13 14:34, Erik Faye-Lund wrote: > Even though parse-options doesn't support UTF-8 switches (which > makes sense; non-ascii switches would be difficult to enter on > some keyboard layouts), it can be useful to report incorrectly > entered UTF-8 switches to make the output somewhat less ugly

Re: [PATCH v4] Add utf8_fprintf helper which returns correct columns

2013-02-08 Thread Torsten Bögershausen
On 08.02.13 08:20, Jiang Xin wrote: > 2013/2/8 Torsten Bögershausen : >> On 08.02.13 03:10, Jiang Xin wrote: >>> + /* If no error occurs, returns columns really required with >>> utf8_strwidth. */ >>> + if (0 <= columns) >>&g

Re: [PATCH v4] Add utf8_fprintf helper which returns correct columns

2013-02-07 Thread Torsten Bögershausen
(Sorry for confusing: I should have written:) Please see below for specifications on fputs() Linux: RETURN VALUE fputc(), putc() and putchar() return the character written as an unsigned char cast to an int or EOF on error. puts() and fputs() return a nonnegative number on success, or EOF on err

Re: [RFC] test-lib.sh: No POSIXPERM for cygwin

2013-02-07 Thread Torsten Bögershausen
On 07.02.13 20:35, Junio C Hamano wrote: > Ramsay Jones writes: > >> Torsten Bögershausen wrote: >>> t0070 and t1301 fail when running the test suite under cygwin. >>> Skip the failing tests by unsetting POSIXPERM. >> t1301 does not fail for me. (WIN XP (SP

Re: [PATCH v4] Add utf8_fprintf helper which returns correct columns

2013-02-07 Thread Torsten Bögershausen
On 08.02.13 03:10, Jiang Xin wrote: > Since command usages can be translated, they may not align well especially > when they are translated to CJK. A wrapper utf8_fprintf can help to return > the correct columns required. > > Signed-off-by: Jiang Xin > Signed-off-by: Nguyễn Thái Ngọc Duy > --- >

Re: [RFC] test-lib.sh: No POSIXPERM for cygwin

2013-02-06 Thread Torsten Bögershausen
Am 2013-02-06 10:34, schrieb Erik Faye-Lund: On Sun, Jan 27, 2013 at 3:57 PM, Torsten Bögershausen wrote: t0070 and t1301 fail when running the test suite under cygwin. Skip the failing tests by unsetting POSIXPERM. But is this the real reason? I thought Cygwin implemented POSIX permissions

Re: [PATCH] tests: turn on test-lint-shell-syntax by default

2013-02-05 Thread Torsten Bögershausen
On 27.01.13 18:34, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> Back to the which: >> ... >> and running "make test" gives the following, at least in my system: >> ... > I think everybody involved in this discussion already knows that; &

[RFC] test-lib.sh: No POSIXPERM for cygwin

2013-01-27 Thread Torsten Bögershausen
t0070 and t1301 fail when running the test suite under cygwin. Skip the failing tests by unsetting POSIXPERM. Signed-off-by: Torsten Bögershausen --- t/test-lib.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 1a6c4ab..94b097e 100644 --- a/t/test-lib.sh

[PATCH v2] Reduce false positive in check-non-portable-shell.pl

2013-01-27 Thread Torsten Bögershausen
and 1 non whitespace "echo -n" must be followed by 1..n whitespace and 1 non whitespace "which": catch lines like "if which foo" Signed-off-by: Torsten Bögershausen --- t/check-non-portable-shell.pl | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

Re: [PATCH] tests: turn on test-lint-shell-syntax by default

2013-01-27 Thread Torsten Bögershausen
On 27.01.13 10:31, Jonathan Nieder wrote: > Hi, > > Torsten Bögershausen wrote: >> On 15.01.13 21:38, Junio C Hamano wrote: >>> Torsten Bögershausen writes: > >>>> What do we think about something like this for fishing for which: > [...] >>&g

[PATCH v2] Reduce false positive in check-non-portable-shell.pl

2013-01-26 Thread Torsten Bögershausen
and 1 non whitespace "echo -n" must be followed by 1..n whitespace and 1 non whitespace "which": catch lines like "if which foo" Signed-off-by: Torsten Bögershausen --- t/check-non-portable-shell.pl | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

Re: [PATCH] tests: turn on test-lint-shell-syntax by default

2013-01-26 Thread Torsten Bögershausen
On 26.01.13 22:43, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> Do we really need "which" to detect if frotz is installed? > I think we all know the answer to that question is no, but why is > that a relevant question in the context of this discussi

Re: [PATCH/RFC] mingw: rename WIN32 cpp macro to NATIVE_WINDOWS

2013-01-26 Thread Torsten Bögershausen
On 26.01.13 02:03, Jonathan Nieder wrote: > Throughout git, it is assumed that the WIN32 preprocessor symbol is > defined on native Windows setups (mingw and msvc) and not on Cygwin. > On Cygwin, most of the time git can pretend this is just another Unix > machine, and Windows-specific magic is gen

Re: [PATCH] tests: turn on test-lint-shell-syntax by default

2013-01-25 Thread Torsten Bögershausen
On 15.01.13 21:38, Junio C Hamano wrote: > Torsten Bögershausen writes: > >> What do we think about something like this for fishing for which: >> >> --- a/t/test-lib.sh >> +++ b/t/test-lib.sh >> @@ -644,6 +644,10 @@ yes () { >>

[RFC] test-lint-duplicates: check numbering in contrib/remote-helpers

2013-01-25 Thread Torsten Bögershausen
o t5810-test-bzr.sh, t5820-test-hg-bidi.sh, t5821-test-hg-hg-git.sh, t5830-test-hg.sh Feed the numbers used in contrib/remote-helpers into t/Makefile and check that the numbering is unique across both directories Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/Makefile

[RFC] test-lint-duplicates: check numbering in contrib/remote-helpers

2013-01-25 Thread Torsten Bögershausen
o t5810-test-bzr.sh, t5820-test-hg-bidi.sh, t5821-test-hg-hg-git.sh, t5830-test-hg.sh Feed the numbers used in contrib/remote-helpers into t/Makefile and check that the numbering is unique across both directories Signed-off-by: Torsten Bögershausen --- contrib/remote-helpers/Makefile

Re: Build broken for contrib/remote-helpers...

2013-01-22 Thread Torsten Bögershausen
On 22.01.13 20:41, Jeff King wrote: > On Tue, Jan 22, 2013 at 12:49:31AM -0500, John Szakmeister wrote: > >> I tried running make in contrib/remote-helpers and it died with: >> >> :: make >> make -e -C ../../t test >> rm -f -r test-results >> duplicate test numbers: /Users/jszakmei

Re: [PATCH v3] Enable minimal stat checking

2013-01-22 Thread Torsten Bögershausen
+core.checkstat:: + Determines which stat fields to match between the index + and work tree. The user can set this to 'default' or + 'minimal'. Default (or explicitly 'default'), is to check + all fields, including the sub-second part of mtime and ctime. + Setting 'minimal'

[PATCH v2 3/3] t0050: Use TAB for indentation

2013-01-21 Thread Torsten Bögershausen
Use one TAB for indentation and remove empty lines Signed-off-by: Torsten Bögershausen --- t/t0050-filesystem.sh | 48 +++- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index a6fa3c5

[PATCH v2 2/3] t0050: honor CASE_INSENSITIVE_FS in add (with different case)

2013-01-21 Thread Torsten Bögershausen
The test case "add (with different case)" indicates a known breakage when run on a case insensitive file system. The test is invalid for case sensitive file system, it will always fail. Check the precondition CASE_INSENSITIVE_FS before running it. Signed-off-by: Torsten Bö

[PATCH v2 1/3] t0050: known breakage vanished in merge (case change)

2013-01-21 Thread Torsten Bögershausen
: Torsten Bögershausen --- Changes since v1: Improved commit message t/t0050-filesystem.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index 78816d9..ccd685d 100755 --- a/t/t0050-filesystem.sh +++ b/t/t0050-filesystem.sh @@ -77,7

Re: [PATCH 2/3] t0050: honor CASE_INSENSITIVE_FS in add (with different case)

2013-01-21 Thread Torsten Bögershausen
Sorry for completely messing up the sensitvie/insensiteve Please discard my patch from pu, I'll send v2. Sorry for the confusion /Torsten -- 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.ke

Re: [msysGit] Re: Version 1.8.1 does not compile on Cygwin 1.7.14

2013-01-20 Thread Torsten Bögershausen
On 20.01.13 12:06, Jonathan Nieder wrote: > Torsten Bögershausen wrote: > >> I wonder, if if we can go one step further: >> >> Replace >> #ifdef WIN32 /* Both MinGW and MSVC */ > [...] >> with >> #if defined(_MSC_VER) > > I thought Git for

<    7   8   9   10   11   12   13   14   >