Re: git_inetd_server: run git-http-backend using inetd

2014-07-17 Thread Kyle J. McKay
On Jul 17, 2014, at 19:22, Jonathan Nieder wrote: Thanks for these details. I'll file a bug and mull it over some more. RFC 6762 makes it clear that what the package is currently doing is wrong. Given that Debian's libc knows nothing about mdns on its own, I think I'll need to parse resolv.co

Re: [PATCH] git-svn: doublecheck if really file or dir

2014-07-17 Thread Andrej Manduch
I'm sorry, i've made mistake in this one. Please ingnore it. Correct patch is on the way. kind regards, b. On Fri, Jul 18, 2014 at 6:05 AM, Andrej Manduch wrote: > * this fixes 'git svn info `pwd`' buggy behaviour > > Signed-off-by: Andrej Manduch > --- > git-svn.perl | 2 +- > 1 file changed

[PATCH] git-svn: doublecheck if really file or dir

2014-07-17 Thread Andrej Manduch
* this fixes 'git svn info `pwd`' buggy behaviour Signed-off-by: Andrej Manduch --- git-svn.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-svn.perl b/git-svn.perl index 0a32372..5bbfecf 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2029,7 +2029,7 @@ sub find_file

Re: [PATCH v7 22/31] checkout: support checking out into a new working directory

2014-07-17 Thread Eric Sunshine
On Sun, Jul 13, 2014 at 12:50 AM, Nguyễn Thái Ngọc Duy wrote: > "git checkout --to" sets up a new working directory with a .git file > pointing to $GIT_DIR/repos/. It then executes "git checkout" again > on the new worktree with the same arguments except "--to" is taken > out. The second checkout

[PATCH] git-svn: doublecheck if really file or dir

2014-07-17 Thread Andrej Manduch
* this fixes 'git svn info `pwd`' buggy behaviour Signed-off-by: Andrej Manduch --- git-svn.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-svn.perl b/git-svn.perl index 0a32372..c3d893e 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2029,7 +2029,7 @@ sub find_file

Re: git_inetd_server: run git-http-backend using inetd

2014-07-17 Thread Jonathan Nieder
Kyle J. McKay wrote: > On Jul 17, 2014, at 15:10, Jonathan Nieder wrote: >> It was added to respond to a feature request within Debian but it is >> intended to eventually go upstream. I'm glad you found this issue >> before that could happen. :) > > Is there some reason the patch is not opt-in at

Feature request: Specify hooks on the command line

2014-07-17 Thread Stuart P. Bentley
I'm developing a project called [Plushu][], an ecosystem for creating plugin-based dedicated user shells, patterned after [Dokku][] (and similar to git-shell). [Plushu]: https://github.com/plushu/plushu [Dokku]: https://github.com/progrium/dokku Plushu has its own hook system for plugins (so m

Re: git_inetd_server: run git-http-backend using inetd

2014-07-17 Thread Kyle J. McKay
On Jul 17, 2014, at 15:10, Jonathan Nieder wrote: Hi, Kyle J. McKay wrote: When I then try to fetch using a "git://host/..." URL where "host" is an mDNS host name, the 0010 patch causes git to attempt to lookup a DNS SRV record on the non-mDNS regular DNS service (a violation of RFC 6762 [4] s

[PATCH] bundle: use internal argv_array of struct child_process in create_bundle()

2014-07-17 Thread René Scharfe
Use the existing argv_array member instead of providing our own. This way the argv_array is cleared after use automatically for us; it was leaking before. Signed-off-by: Rene Scharfe --- bundle.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/bundle.c b/bun

Re: [PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread Karsten Blees
Am 17.07.2014 19:05, schrieb René Scharfe: > Am 17.07.2014 14:45, schrieb Nguyễn Thái Ngọc Duy: [...] > "These routines have traditionally been used by programs to save the > name of a working directory for the purpose of returning to it. A much > faster and less error-prone method of accomplishing

Re: [PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread Karsten Blees
Am 17.07.2014 20:03, schrieb Junio C Hamano: > Nguyễn Thái Ngọc Duy writes: > >> This array 'cwd' is used to store the result from getcwd() and chdir() >> back. PATH_MAX is the right constant for the job. On systems with >> longer PATH_MAX (eg. 4096 on Linux), hard coding 1024 fails stuff, >> e.

Re: [PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread Karsten Blees
Am 17.07.2014 14:45, schrieb Nguyễn Thái Ngọc Duy: > e.g. "git init". Make it static too to reduce stack usage. But wouldn't this increase overall memory usage? Stack memory will be reused by subsequent code, while static memory cannot be reused (but still increases the process working set). -- T

Re: git_inetd_server: run git-http-backend using inetd

2014-07-17 Thread Jonathan Nieder
Hi, Kyle J. McKay wrote: > When I then try to fetch using a "git://host/..." URL where "host" > is an mDNS host name, the 0010 patch causes git to attempt to lookup > a DNS SRV record on the non-mDNS regular DNS service (a violation of > RFC 6762 [4] section 22) and this is what has to time out b

Re: [PATCH] run-command: use internal argv_array of struct child_process in run_hook_ve()

2014-07-17 Thread Jeff King
On Wed, Jul 16, 2014 at 11:57:47PM +0200, René Scharfe wrote: > Use the existing argv_array member instead of providing our own. This > way we don't have to initialize or clean it up explicitly. Yay. Thanks for this cleanup (and all of the other recent ones; they all looked good to me). -Peff -

git_inetd_server: run git-http-backend using inetd

2014-07-17 Thread Kyle J. McKay
=== What is it? === I have created a script (POSIX sh compatible) that allows running git- http-backend via inetd or similar service (it makes it like git-http- backend had a --inet option just like git-daemon does). This allows the Git smart HTTP protocol to be served without

Re: [PATCH 5/6] t9902: mingw-specific fix for gitfile link files

2014-07-17 Thread Junio C Hamano
Stepan Kasal writes: > From: Pat Thoyts > > The path in a .git platform independent link file needs to be absolute > and under mingw we need it to be a windows type path, not a unix style > path so it should start with a drive letter and not a /. OK. We seem to have uses of "pwd -P" in other

Re: [PATCH 1/6] MinGW: Skip test redirecting to fd 4

2014-07-17 Thread Junio C Hamano
Karsten Blees writes: > Yes. 0, 1 and 2 work (vie GetStdHandle), but anything else is handled > by the C-runtime. And as MSYS.dll (bash) and MSVCRT.dll (git) do it in > different ways, it doesn't work. > >> -echo copy 6 | >> -test-line-buffer "&4" 4actual && >> +test-line-buffer "&0"

Re: [PATCH 1/6] MinGW: Skip test redirecting to fd 4

2014-07-17 Thread Karsten Blees
Am 17.07.2014 20:41, schrieb Junio C Hamano: > Stepan Kasal writes: > >> From: Johannes Schindelin >> >> ... because that does not work in MinGW. >> >> Signed-off-by: Johannes Schindelin >> Signed-off-by: Stepan Kasal >> --- >> t/t0081-line-buffer.sh | 2 +- >> 1 file changed, 1 insertion(+),

Re: Re: [PATCH v2 3/4] use new config API for worktree configurations of submodules

2014-07-17 Thread Junio C Hamano
On Thu, Jul 17, 2014 at 12:53 PM, Heiko Voigt wrote: > > On Tue, Jul 15, 2014 at 03:37:21PM -0700, Junio C Hamano wrote: > > Any other thing that still needs fixing in the series, or is it now > > ready for 'next'? > > All comments addressed. From my side it should be ready for next. Thanks; I am

Re: [PATCH 1/6] MinGW: Skip test redirecting to fd 4

2014-07-17 Thread Johannes Schindelin
Hi Junio, On Thu, 17 Jul 2014, Junio C Hamano wrote: > Is what is broken on MinGW redirecting arbitrary file descrptors? IIRC that was exactly the problem. > diff --git a/t/t0081-line-buffer.sh b/t/t0081-line-buffer.sh > index bd83ed3..881789a 100755 > --- a/t/t0081-line-buffer.sh > +++ b/t/t00

Re: Re: [PATCH v2 3/4] use new config API for worktree configurations of submodules

2014-07-17 Thread Heiko Voigt
On Tue, Jul 15, 2014 at 03:37:21PM -0700, Junio C Hamano wrote: > Heiko Voigt writes: > > >> Can there be any caller that include and use submodule-config.h that > >> does not need anythjing from submodule.h? Or vice versa? > >> > >> It just did not look like these two headers describe independ

Re: [PATCH] hooks/post-receive-email: do not truncate messages at a '.' line

2014-07-17 Thread Junio C Hamano
"Kyle J. McKay" writes: > There are two options to turn off this behavior, -i and -oi which > are equivalent. > > The choice of which to use is based on the observation that -i > appears to be the more commonly used option for this and that all > current sendmail-compatible programs appear to acc

[PATCH] hooks/post-receive-email: do not truncate messages at a '.' line

2014-07-17 Thread Kyle J. McKay
When sendmail is reading an incoming message, by default it will terminate it if it reads a dot on a line by itself. The post-receive-email script can generate such a line if the message in a tag object contains a dot ('.') on a line by itself. There are two options to turn off this behavior, -i

Re: [PATCH 00/13] mingw unicode environment

2014-07-17 Thread Karsten Blees
Am 17.07.2014 21:00, schrieb Stepan Kasal: > Hi, > >> Karsten Blees writes: >>> I believe we prefer moving code to the right place over forward >>> declarations (IIRC I got bashed for the latter in one of the first rounds >>> of this patch series). If only to justify 'git-blame -M' :-D > > indee

Re: [PATCH 00/13] mingw unicode environment

2014-07-17 Thread Junio C Hamano
Stepan Kasal writes: > If anyone thinks the resulting ordering is not OK, they can propose > one re-order patch on top of this series. I agree that that would be a good way to go. > Junio wrote: >> OK, so the series may need further re-polishing of the polishing >> done by Stepan last-minute be

Re: [PATCH 00/13] mingw unicode environment

2014-07-17 Thread Stepan Kasal
Hi, > Karsten Blees writes: > > I believe we prefer moving code to the right place over forward > > declarations (IIRC I got bashed for the latter in one of the first rounds > > of this patch series). If only to justify 'git-blame -M' :-D indeed, my position is the same, generally. But it turne

Re: [PATCH 1/6] MinGW: Skip test redirecting to fd 4

2014-07-17 Thread Junio C Hamano
Stepan Kasal writes: > From: Johannes Schindelin > > ... because that does not work in MinGW. > > Signed-off-by: Johannes Schindelin > Signed-off-by: Stepan Kasal > --- > t/t0081-line-buffer.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/t/t0081-line-buffer.sh b/t

Re: [PATCH] use local cloning if insteadOf makes a local URL

2014-07-17 Thread Michael Barabanov
On 07/17/2014 10:23 AM, Junio C Hamano wrote: Michael Barabanov writes: Move the is_local logic to the place where origin remote has been setup and check if the remote url can be used to do local cloning. This saves a lot of space (and time) in some of the mirroring scenarios that involve in

Re: [PATCH 00/13] mingw unicode environment

2014-07-17 Thread Junio C Hamano
Karsten Blees writes: > Am 17.07.2014 17:37, schrieb Stepan Kasal: > > I believe we prefer moving code to the right place over forward > declarations (IIRC I got bashed for the latter in one of the first rounds > of this patch series). If only to justify 'git-blame -M' :-D > >> One of the patches

Re: [PATCH 2/6] Disable t0110's high-bit test on Windows

2014-07-17 Thread Karsten Blees
Am 17.07.2014 17:37, schrieb Stepan Kasal: > From: Johannes Schindelin > > The bash Git for Windows uses (i.e. the MSys bash) cannot pass > command-line arguments with high bits set verbatim to non-MSys programs, > but instead converts those characters with high bits set to their hex > representa

Re: [PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread Junio C Hamano
René Scharfe writes: > "These routines have traditionally been used by programs to save the > name of a working directory for the purpose of returning to it. A much > faster and less error-prone method of accomplishing this is to open the > current directory (.) and use the fchdir(2) function to

Re: [PATCH 00/13] mingw unicode environment

2014-07-17 Thread Karsten Blees
Am 17.07.2014 17:37, schrieb Stepan Kasal: > Hello, > > this is the remainder of Karsten's unicode branch, that is a time > proven part of msysGit. (If this code is accepted, only one patch > would only remain: gitk and git-gui fixes.) > Thank you so much! I had to add '#include "../cache.h"'

Re: [PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This array 'cwd' is used to store the result from getcwd() and chdir() > back. PATH_MAX is the right constant for the job. On systems with > longer PATH_MAX (eg. 4096 on Linux), hard coding 1024 fails stuff, > e.g. "git init". Make it static too to reduce stack usa

Re: [PATCH 00/13] mingw unicode environment

2014-07-17 Thread Junio C Hamano
Stepan Kasal writes: > ... only one patch > would only remain: gitk and git-gui fixes.) Nice. Will queue. > When rebasing Karsten's work, I have eliminated two commits: > https://github.com/msysgit/git/commit/f967550 > https://github.com/msysgit/git/commit/290bf81 > > These commits only moved

Re: [PATCH] use local cloning if insteadOf makes a local URL

2014-07-17 Thread Junio C Hamano
Michael Barabanov writes: > Move the is_local logic to the place where origin remote has been setup and > check if the remote url can be used to do local cloning. > > This saves a lot of space (and time) in some of the mirroring scenarios that > involve insteadOf rewrites. > > Signed-off-by: Micha

Re: [PATCH v9r2 1/2] add `config_set` API for caching config-like files

2014-07-17 Thread Junio C Hamano
Matthieu Moy writes: > Matthieu Moy writes: > >> Tanay Abhra writes: >> >>> I have a question about renaming git_config() to git_config_raw(). >>> I was working on a patch and I am getting stuck here. >>> It fails in t1001, t1020 & t4018. The reason for the last test failure >>> is unknown righ

Re: [PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread René Scharfe
Am 17.07.2014 14:45, schrieb Nguyễn Thái Ngọc Duy: > This array 'cwd' is used to store the result from getcwd() and chdir() > back. PATH_MAX is the right constant for the job. PATH_MAX may be better than 1024, but there can't really be a correct constant. The actual limit depends on the file syst

Re: Syncing Git Repositories

2014-07-17 Thread Junio C Hamano
Matthieu Moy writes: > Sajan Parikh writes: > >> By syncing my code folder and git repositories in this way, do I risk >> borking any repositories? I'm 99% confident I'm not, since everything >> is in .git/, and there are not external databases or log files that >> need to be updated. Just mak

[PATCH 11/13] Win32: keep the environment sorted

2014-07-17 Thread Stepan Kasal
From: Karsten Blees The Windows environment is sorted, keep it that way for O(log n) environment access. Change compareenv to compare only the keys, so that it can be used to find an entry irrespective of the value. Change lookupenv to binary seach for an entry. Return one's complement of the i

[PATCH 03/13] Win32: Unicode environment (incoming)

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Convert environment from UTF-16 to UTF-8 on startup. No changes to getenv() are necessary, as the MSVCRT version is implemented on top of char **environ. However, putenv / _wputenv from MSVCRT no longer work, for two reasons: 1. they try to keep environ, _wenviron and the Wi

[PATCH 04/13] Win32: fix environment memory leaks

2014-07-17 Thread Stepan Kasal
From: Karsten Blees All functions that modify the environment have memory leaks. Disable gitunsetenv in the Makefile and use env_setenv (via mingw_putenv) instead (this frees removed environment entries). Move xstrdup from env_setenv to make_augmented_environ, so that mingw_putenv no longer cop

[PATCH 02/13] Win32: Unicode environment (outgoing)

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Convert environment from UTF-8 to UTF-16 when creating other processes. Signed-off-by: Karsten Blees Signed-off-by: Stepan Kasal --- compat/mingw.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.

[PATCH 09/13] Win32: reduce environment array reallocations

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Move environment array reallocation from do_putenv to the respective callers. Keep track of the environment size in a global variable. Use ALLOC_GROW in mingw_putenv to reduce reallocations. Allocate a sufficiently sized environment array in make_environment_block to prevent r

[PATCH 08/13] Win32: don't copy the environment twice when spawning child processes

2014-07-17 Thread Stepan Kasal
From: Karsten Blees When spawning child processes via start_command(), the environment and all environment entries are copied twice. First by make_augmented_environ / copy_environ to merge with child_process.env. Then a second time by make_environment_block to create a sorted environment block st

[PATCH 13/13] Enable color output in Windows cmd.exe

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Git requires the TERM environment variable to be set for all color* settings. Simulate the TERM variable if it is not set (default on Windows). Signed-off-by: Karsten Blees Signed-off-by: Johannes Schindelin Signed-off-by: Stepan Kasal --- compat/mingw.c | 4 1 file

[PATCH 06/13] Win32: unify environment function names

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Environment helper functions use random naming ('env' prefix or suffix or both, with or without '_'). Change to POSIX naming scheme ('env' suffix, no '_'). Env_setenv has more in common with putenv than setenv. Change to do_putenv. Signed-off-by: Karsten Blees Signed-off-by

[PATCH 10/13] Win32: use low-level memory allocation during initialization

2014-07-17 Thread Stepan Kasal
From: Karsten Blees As of d41489a6 "Add more large blob test cases", git's high-level memory allocation functions (xmalloc, xmemdupz etc.) access the environment to simulate limited memory in tests (see 'getenv("GIT_ALLOC_LIMIT")' in memory_limit_check()). These functions should not be used befor

[PATCH 05/13] Win32: unify environment case-sensitivity

2014-07-17 Thread Stepan Kasal
From: Karsten Blees The environment on Windows is case-insensitive. Some environment functions (such as unsetenv and make_augmented_environ) have always used case- sensitive comparisons instead, while others (getenv, putenv, sorting in spawn*) were case-insensitive. Prevent potential inconsisten

[PATCH 07/13] Win32: factor out environment block creation

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Signed-off-by: Karsten Blees Signed-off-by: Stepan Kasal --- compat/mingw.c | 55 --- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index 89fe62b..3f81c90 100644 --- a/comp

[PATCH 00/13] mingw unicode environment

2014-07-17 Thread Stepan Kasal
Hello, this is the remainder of Karsten's unicode branch, that is a time proven part of msysGit. (If this code is accepted, only one patch would only remain: gitk and git-gui fixes.) When rebasing Karsten's work, I have eliminated two commits: https://github.com/msysgit/git/commit/f967550 https:

[PATCH 01/13] Revert "Windows: teach getenv to do a case-sensitive search"

2014-07-17 Thread Stepan Kasal
From: Karsten Blees This reverts commit df599e9612788b728ce43a03159b85f1fe624d6a. As of 5e9637c6 "i18n: add infrastructure for translating Git with gettext", eval_gettext uses MinGW envsubst.exe instead of git-sh-i18n--envsubst.exe for variable substitution. This breaks git-submodule.sh messages

[PATCH 12/13] Win32: patch Windows environment on startup

2014-07-17 Thread Stepan Kasal
From: Karsten Blees Fix Windows specific environment settings on startup rather than checking for special values on every getenv call. As a side effect, this makes the patched environment (i.e. with properly initialized TMPDIR and TERM) available to child processes. Signed-off-by: Karsten Blees

[PATCH 1/6] MinGW: Skip test redirecting to fd 4

2014-07-17 Thread Stepan Kasal
From: Johannes Schindelin ... because that does not work in MinGW. Signed-off-by: Johannes Schindelin Signed-off-by: Stepan Kasal --- t/t0081-line-buffer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t0081-line-buffer.sh b/t/t0081-line-buffer.sh index bd83ed3..25dba

[PATCH 5/6] t9902: mingw-specific fix for gitfile link files

2014-07-17 Thread Stepan Kasal
From: Pat Thoyts The path in a .git platform independent link file needs to be absolute and under mingw we need it to be a windows type path, not a unix style path so it should start with a drive letter and not a /. Signed-off-by: Pat Thoyts Signed-off-by: Stepan Kasal --- t/t9902-completion.

[PATCH 2/6] Disable t0110's high-bit test on Windows

2014-07-17 Thread Stepan Kasal
From: Johannes Schindelin The bash Git for Windows uses (i.e. the MSys bash) cannot pass command-line arguments with high bits set verbatim to non-MSys programs, but instead converts those characters with high bits set to their hex representation. For example, when running strings "$(ec

[PATCH 6/6] t800[12]: work around MSys limitation

2014-07-17 Thread Stepan Kasal
From: Karsten Blees MSys works very hard to convert Unix-style paths into DOS-style ones. *Very* hard. So hard, indeed, that git blame -L/hello/,/green/ is translated into something like git blame -LC:/msysgit/hello/,C:/msysgit/green/ As seen in msys_p2w in src\msys\msys\rt\s

[PATCH 3/6] MinGW: disable legacy encoding tests

2014-07-17 Thread Stepan Kasal
From: Karsten Blees On Windows, all native APIs are Unicode-based. It is impossible to pass legacy encoded byte arrays to a process via command line or environment variables. Disable the tests that try to do so. In t3901, most tests still work if we don't mess up the repository encoding in setup

[PATCH 0/6] mingw test fixes

2014-07-17 Thread Stepan Kasal
Hello, this is a collection of quality test suite fixes, hand picked with care, following the expert advice by Karsten. :-) Most of them just switch off the tests on MinGW, one uses `pwd -W' to get the reeal windows path. All of these are time proven, they have been in msysgit since Dec 2013, at

[PATCH 4/6] t4210: skip command-line encoding tests on mingw

2014-07-17 Thread Stepan Kasal
From: Pat Thoyts On Windows the application command line is provided as unicode and in mingw-git we convert that to utf-8. So these tests that require a iso-8859-1 input are being subverted by the encoding transformations we perform and should be skipped. Signed-off-by: Pat Thoyts Signed-off-by

Re: [PATCH] .mailmap: Map different names with the same email address together

2014-07-17 Thread Stefan Beller
On 17.07.2014 16:29, Junio C Hamano wrote: > If you received a private "no" to some entries, please advise; > otherwise I would say the patch is ready to be picked up. I have received neither a no nor a yes privately. So please pick it up as you like. -- To unsubscribe from this list: send the lin

Re: [PATCH] .mailmap: Map different names with the same email address together

2014-07-17 Thread Junio C Hamano
Stefan Beller writes: > Pretty much one year ago > (94b410bba864, Jul 12 2013, .mailmap: Map email addresses to names) > I cleaned up the output of `git shortlog -sne` of git.git by writing a > .mailmap file fot the git.git project. > Now I find some time again for another review. > During the ye

[PATCH] abspath.c: use PATH_MAX in real_path_internal()

2014-07-17 Thread Nguyễn Thái Ngọc Duy
This array 'cwd' is used to store the result from getcwd() and chdir() back. PATH_MAX is the right constant for the job. On systems with longer PATH_MAX (eg. 4096 on Linux), hard coding 1024 fails stuff, e.g. "git init". Make it static too to reduce stack usage. Signed-off-by: Nguyễn Thái Ngọc Duy

Greetings from my heart, I am Sonia Ibrahim, searching for a serious relationship contact me, (sonia.ba...@hotmail.com) so i can tell you more about myself, send you my picture and the details of the

2014-07-17 Thread Sonia Ibrahim
-- 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 v9r2 1/2] add `config_set` API for caching config-like files

2014-07-17 Thread Matthieu Moy
Tanay Abhra writes: > I am searching for a more elegant solution to this problem. The "efficient" (not sure about elegant) solution would be to keep one configset per file, and re-parse only the files needed. I find the solution I posted in the other thread relatively "elegant": invalidate the

Re: [PATCH v9r2 1/2] add `config_set` API for caching config-like files

2014-07-17 Thread Matthieu Moy
Matthieu Moy writes: > Tanay Abhra writes: > >> I have a question about renaming git_config() to git_config_raw(). >> I was working on a patch and I am getting stuck here. >> It fails in t1001, t1020 & t4018. The reason for the last test failure >> is unknown right now. For the first two, it boi

Re: [PATCH v9r2 1/2] add `config_set` API for caching config-like files

2014-07-17 Thread Tanay Abhra
On 7/17/2014 3:31 PM, Matthieu Moy wrote: > Tanay Abhra writes: > >> I have a question about renaming git_config() to git_config_raw(). >> I was working on a patch and I am getting stuck here. >> It fails in t1001, t1020 & t4018. The reason for the last test failure >> is unknown right now. For t

Re: git update-index not delete lock file when using different worktree

2014-07-17 Thread Duy Nguyen
On Thu, Jul 17, 2014 at 01:27:08AM -0700, Yue Lin Ho wrote: > I see that refresh() of update_index.c calls setup_work_tree() to change dir > to working tree. > And the dir is not changed back to git dir before commit_lock_file() or > rollback_lock_file() is called. > > So, commit_lock_file() renam

Re: [PATCH v9r2 1/2] add `config_set` API for caching config-like files

2014-07-17 Thread Matthieu Moy
Tanay Abhra writes: > I have a question about renaming git_config() to git_config_raw(). > I was working on a patch and I am getting stuck here. > It fails in t1001, t1020 & t4018. The reason for the last test failure > is unknown right now. For the first two, it boils down to this, > >

Re: [PATCH v2 2/2] rebase: omit patch-identical commits with --fork-point

2014-07-17 Thread John Keeping
On Wed, Jul 16, 2014 at 05:36:03PM -0400, Ted Felix wrote: > On 07/16/2014 03:23 PM, John Keeping wrote: > > Change from v1: > > - add a test case > > Test case is working fine for me. It passes with the patch and fails > without. However, it does seem to cause all the rest of the test cas

Re: [PATCH 2/2] config: use chmod() instead of fchmod()

2014-07-17 Thread Karsten Blees
Am 17.07.2014 00:16, schrieb Junio C Hamano: > Karsten Blees writes: > >> There is no fchmod() on native Windows platforms (MinGW and MSVC), and the >> equivalent Win32 API (SetFileInformationByHandle) requires Windows Vista. >> >> Use chmod() instead. >> >> Signed-off-by: Karsten Blees >> --- >

Re: git update-index not delete lock file when using different worktree

2014-07-17 Thread Yue Lin Ho
I see that refresh() of update_index.c calls setup_work_tree() to change dir to working tree. And the dir is not changed back to git dir before commit_lock_file() or rollback_lock_file() is called. So, commit_lock_file() rename file failed. or rollback_lock_file() delete file failed. -- View th

[PATCH] use local cloning if insteadOf makes a local URL

2014-07-17 Thread Michael Barabanov
Move the is_local logic to the place where origin remote has been setup and check if the remote url can be used to do local cloning. This saves a lot of space (and time) in some of the mirroring scenarios that involve insteadOf rewrites. Signed-off-by: Michael Barabanov --- builtin/clone.c | 25