Re: [PATCH 1/2] http: allow selection of proxy authentication method

2015-10-27 Thread Knut Franke
On 2015-10-26 13:33, Junio C Hamano wrote: > Call yours "http.proxyAuthmethod" in the documentation, and use > strcmp("http.proxyauthmethod", var) in the options callback code. [...] > Strange indentation here... [...] > Along the same line as how we do sslversions[] instead of a long > if/else

Re: git repack command on larger pack file

2015-10-27 Thread Philip Oakley
From: "Junio C Hamano" Junio C Hamano writes: Sivakumar Selvam writes: ... So I thought of splitting the pack file into 4 GB chunks. ... Hmmm, what is "this issue"? I do not see anything surprising. While the explanation

Re: [PATCH v2 2/2] sh-setup: explicitly mark CR as a field separator

2015-10-27 Thread Johannes Schindelin
Hi Junio, On Mon, 26 Oct 2015, Junio C Hamano wrote: > I asked Dscho if the shell is done correctly _for_ the platform. This assumes that the platform is either CR/LF or LF. That is incorrect. Windows does *not* dictate the line endings to be CR/LF. Certain applications do. The shell is an

Re: [PATCH v2 0/2] Fix interactive rebase when the editor saves with CR/LF

2015-10-27 Thread Johannes Schindelin
Hi Junio, On Mon, 26 Oct 2015, Junio C Hamano wrote: > Johannes Schindelin writes: > > > A simple test with CR/LF line endings in a script reveals that it is > > pretty solid: > > > > x=a > > case "$x" in a) echo b;; esac > > > > prints out 'b', as expected.

Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb

2015-10-27 Thread Johannes Schindelin
Hi Jonathan, On Mon, 26 Oct 2015, Jonathan Nieder wrote: > Johannes Schindelin wrote: > > > --- a/wrap-for-bin.sh > > +++ b/wrap-for-bin.sh > > @@ -19,4 +19,11 @@ GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale' > > PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH" > > export GIT_EXEC_PATH

Re: [PATCH v2 2/2] sh-setup: explicitly mark CR as a field separator

2015-10-27 Thread Matthieu Moy
Junio C Hamano writes: > Matthieu Moy writes: > >> Johannes Schindelin writes: >> >>> This is the correct thing to do, really: we already specify LF as >>> field separator. >> >> I'm almost convinced that this is the

RE: [PATCH v3] Add git-grep threads param

2015-10-27 Thread Victor Leschuk
Hello Linus, >> According to several tests on systems with different number of CPU cores >> the hard-coded number of 8 threads is not optimal for all systems: > Did you also compare cold-cache filesystem performance? > One of the reasons for doing threaded grep is for CPU scaling. But another

[PATCH v3 1/2] Demonstrate rebase fails when the editor saves with CR/LF

2015-10-27 Thread Johannes Schindelin
Based on a bug report by Chad Boles. Signed-off-by: Johannes Schindelin --- t/t3404-rebase-interactive.sh | 12 1 file changed, 12 insertions(+) diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index 3de0b1d..5dfa16a 100755 ---

Re: [PATCH v2 2/2] sh-setup: explicitly mark CR as a field separator

2015-10-27 Thread Johannes Schindelin
Hi Junio, On Mon, 26 Oct 2015, Junio C Hamano wrote: > Subject: [PATCH] rebase-i: work around Windows CRLF line endings > > Editors on Windows can and do save text files with CRLF line > endings, which is the convention on the platform. We are seeing > reports that the "read" command in a port

[PATCH v3 0/2] Fix interactive rebase when the editor saves with CR/LF

2015-10-27 Thread Johannes Schindelin
Chad Boles reported that `git rebase -i` recently started producing errors when the editor saves files with DOS line endings. The symptom is: Warning: the command isn't recognized in the following line: - You can fix this with 'git rebase --edit-todo'. Or you can

Re: Why are submodules not automatically handled by default or at least configurable to do so?

2015-10-27 Thread Nick
I too am interested in finding ways to automate working with submodules, as it's a particular pain point with my colleagues. They frequently shoot themselves in the foot trying to branch and merge a project with submodules, resulting in a broken build and grumpy comments about git (or

[PATCH v3 2/2] rebase-i: work around Windows CRLF line endings

2015-10-27 Thread Johannes Schindelin
From: Junio C Hamano Editors on Windows can and do save text files with CRLF line endings, which is the convention on the platform. We are seeing reports that the "read" command in a port of bash to the environment however does not strip the CRLF at the end, not adjusting for

Re: [PATCH v3 2/2] rebase-i: work around Windows CRLF line endings

2015-10-27 Thread Johannes Schindelin
Hi, On Tue, 27 Oct 2015, Johannes Schindelin wrote: > diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh > index 5dfa16a..98eb49a 100755 > --- a/t/t3404-rebase-interactive.sh > +++ b/t/t3404-rebase-interactive.sh > @@ -1261,7 +1261,7 @@ test_expect_success 'static check

Re: Why are submodules not automatically handled by default or at least configurable to do so?

2015-10-27 Thread Davide Fiorentino
Why not set alias(es) for that? Best, Davide > On 27 Oct 2015, at 10:50, Nick wrote: > > I too am interested in finding ways to automate working with submodules, as > it's a particular pain point with my colleagues. They frequently shoot > themselves in the foot

Re: Why are submodules not automatically handled by default or at least configurable to do so?

2015-10-27 Thread Konstantin Khomoutov
On Tue, 27 Oct 2015 11:40:15 + Nick wrote: > > Why not set alias(es) for that? [...] > But oh yes, there is another difficulty with aliases. Eclipse users > on Windows: [...] Not to counter your actual argument, but AFAIK EGit uses JGit which is a Java

Re: Why are submodules not automatically handled by default or at least configurable to do so?

2015-10-27 Thread Nick
On 27/10/15 10:56, Davide Fiorentino wrote: Why not set alias(es) for that? That counts as a hand-rolled (i.e. ad-hoc) solution. So not out of the question, but I'd rather point my colleagues at something tried and tested, rather than simply re-invent wheels, possibly badly. I'd be

Re: [PATCH v3] Add git-grep threads param

2015-10-27 Thread John Keeping
On Mon, Oct 26, 2015 at 10:25:41PM -0700, Victor Leschuk wrote: > >> @@ -22,6 +22,7 @@ SYNOPSIS > >> [--color[=] | --no-color] > >> [--break] [--heading] [-p | --show-function] > >> [-A ] [-B ] [-C ] > >> +[--threads ] > > > Is this the best place for this

Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb

2015-10-27 Thread Junio C Hamano
Johannes Schindelin writes: >> Most TEST_ environment variables that git respects are under >> GIT_TEST_* --- e.g., GIT_TEST_OPTS. Should this match that pattern >> as well, for easier debugging with commands like 'env | grep GIT_'? > > I dunno. This variable is most

Re: [PATCH 2/6] remote-http(s): Support SOCKS proxies

2015-10-27 Thread Johannes Schindelin
Hi, On Tue, 27 Oct 2015, Johannes Schindelin wrote: > On Mon, 26 Oct 2015, Junio C Hamano wrote: > > > James McCoy writes: > > > > >> The code looks OK but the last paragraph makes _us_ worried. What > > >> is the licensing status of the original at SO? > > > > > >

Re: [PATCH 2/6] remote-http(s): Support SOCKS proxies

2015-10-27 Thread Johannes Schindelin
Hi, On Mon, 26 Oct 2015, Junio C Hamano wrote: > James McCoy writes: > > >> The code looks OK but the last paragraph makes _us_ worried. What > >> is the licensing status of the original at SO? > > > > According to Stackoverflow[0], > > > > As noted in the Stack

Re: [PATCH v3 2/2] rebase-i: work around Windows CRLF line endings

2015-10-27 Thread Junio C Hamano
Johannes Schindelin writes: > On Tue, 27 Oct 2015, Johannes Schindelin wrote: > >> diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh >> index 5dfa16a..98eb49a 100755 >> --- a/t/t3404-rebase-interactive.sh >> +++ b/t/t3404-rebase-interactive.sh

Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb

2015-10-27 Thread Duy Nguyen
On Mon, Oct 26, 2015 at 2:15 PM, Johannes Schindelin wrote: > When prefixing a Git call in the test suite with 'TEST_GDB_GIT=1 ', it > will now be run with GDB, allowing the developer to debug test failures > more conveniently. I'm very slowly catching up with git

[PATCH 9/9] fetching submodules: Respect `submodule.jobs` config option

2015-10-27 Thread Stefan Beller
This allows to configure fetching and updating in parallel without having the command line option. This moved the responsibility to determine how many parallel processes to start from builtin/fetch to submodule.c as we need a way to communicate "The user did not specify the number of parallel

[PATCH 1/9] submodule-config: "goto" removal in parse_config()

2015-10-27 Thread Stefan Beller
Many components in if/else if/... cascade jumped to a shared clean-up with "goto release_return", but we can restructure the function a bit and make them disappear, which reduces the line count as well. Also reformat overlong lines and poorly indented ones while at it. The order of rules to

[PATCH 3/9] run_processes_parallel: Add output to tracing messages

2015-10-27 Thread Stefan Beller
This commit serves 2 purposes. First this may help the user who tries to diagnose intermixed process calls. Second this may be used in a later patch for testing. As the output of a command should not change visibly except for going faster, grepping for the trace output seems like a viable testing

[PATCH 4/9] git submodule update: have a dedicated helper for cloning

2015-10-27 Thread Stefan Beller
This introduces a new helper function in git submodule--helper which takes care of cloning all submodules, which we want to parallelize eventually. Some tests (such as empty URL, update_mode=none) are required in the helper to make the decision for cloning. These checks have been moved into the C

[PATCH 7/9] submodule config: remove name_and_item_from_var

2015-10-27 Thread Stefan Beller
By inlining `name_and_item_from_var` it is easy to add later options which are not required to have a submodule name. Signed-off-by: Stefan Beller --- submodule-config.c | 46 +- 1 file changed, 17 insertions(+), 29 deletions(-)

[PATCH 6/9] clone: allow an explicit argument for parallel submodule clones

2015-10-27 Thread Stefan Beller
Just pass it along to "git submodule update", which may pick reasonable defaults if you don't specify an explicit number. Signed-off-by: Stefan Beller --- Documentation/git-clone.txt | 5 - builtin/clone.c | 26 --

[PATCH 5/9] submodule update: expose parallelism to the user

2015-10-27 Thread Stefan Beller
Expose possible parallelism either via the "--jobs" CLI parameter or the "submodule.jobs" setting. By having the variable initialized to -1, we make sure 0 can be passed into the parallel processing machine, which will then pick as many parallel workers as there are CPUs. Signed-off-by: Stefan

Re: [PATCH 2/6] remote-http(s): Support SOCKS proxies

2015-10-27 Thread Junio C Hamano
Johannes Schindelin writes: > On second thought... Junio, could you please sanity-check my claim that > this patch: > > -- snip -- > ... > -- snap -- > > cannot be copyrighted because it is pretty much the only way to implement > said functionality? I am not a

Re: git-credential-cache--daemon quits on SIGHUP, can we change it to ignore instead?

2015-10-27 Thread Junio C Hamano
Jeff King writes: > But these days, people often have several simultaneous sessions open. > They may have multiple ssh sessions to a single machine, or they may > have a bunch of terminal windows open, each of which has a login shell > and will send HUP to its children when it

[PATCH 0/9] Expose the submodule parallelism to the user

2015-10-27 Thread Stefan Beller
Where does it apply? --- This applies on 376d400f4c (run-command: fix missing output from late callbacks, which is the latest commit in origin/sb/submodule-parallel-fetch which was merged to origin/next) The first patch is a duplicate of origin/sb/submodule-config-parse, so it may make sense to

Re: [PATCH/RFC] receive-pack: allow for hiding refs outside the namespace

2015-10-27 Thread Junio C Hamano
Lukas Fleischer writes: > 2. transfer.hideRefs and receive.hideRefs do not seem to work with Git >namespaces in general. show_ref_cb() replaces each ref outside the >current namespace with ".have" before passing it to show_ref() which >in turn performs the

[PATCH 2/9] submodule config: keep update strategy around

2015-10-27 Thread Stefan Beller
We need the submodule update strategies in a later patch. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- submodule-config.c | 11 +++ submodule-config.h | 1 + 2 files changed, 12 insertions(+) diff --git a/submodule-config.c

Re: [PATCH v2 2/2] sh-setup: explicitly mark CR as a field separator

2015-10-27 Thread Junio C Hamano
Johannes Schindelin writes: > This assumes that the platform is either CR/LF or LF. That is incorrect. > Windows does *not* dictate the line endings to be CR/LF. Certain > applications do. > > The shell is an MSys2 shell, and MSys2 convention is to use LF. Hence the >

Re: [PATCH v4 1/3] Add test to describe expectation of blame --reverse with branched history

2015-10-27 Thread Junio C Hamano
Max Kirillov writes: >> The explanation of the first paragraph needs to be rewritten to make >> it understandable, but I am not sure what relevance it has with this >> change. > ... > So the history looks rather like (the interesting line is removed > in B1, line removal is

[PATCH 8/9] submodule-config: parse_config

2015-10-27 Thread Stefan Beller
This rewrites parse_config to distinguish between configs specific to one submodule and configs which apply generically to all submodules. We do not have generic submodule configs yet, but the next patch will introduce "submodule.jobs". Signed-off-by: Stefan Beller #

Re: git-credential-cache--daemon quits on SIGHUP, can we change it to ignore instead?

2015-10-27 Thread Jeff King
On Mon, Oct 26, 2015 at 08:50:10PM -0400, Noam Postavsky wrote: > On Mon, Oct 26, 2015 at 5:50 PM, Jeff King wrote: > > But these days, people often have several simultaneous sessions open. > > They may have multiple ssh sessions to a single machine, or they may > > have a bunch of terminal

{{ U.N.O/W.B.O/10/15/82/05/9 }}

2015-10-27 Thread U / N
Please view the attached file for your code payment. UNITED NATIONS ORGANIZATION.pdf Description: Adobe PDF document

Re: git-credential-cache--daemon quits on SIGHUP, can we change it to ignore instead?

2015-10-27 Thread Junio C Hamano
Jeff King writes: > So I dunno. I think it would be reasonable to provide a config option to > tell the cache-daemon to just ignore SIGHUP (or alternatively, a general > option to try harder to dissociate itself from the caller). But I'm not > sure I'd agree with making it the

Re: [PATCH 0/9] Expose the submodule parallelism to the user

2015-10-27 Thread Junio C Hamano
Stefan Beller writes: > Where does it apply? > --- > This applies on 376d400f4c (run-command: fix missing output from late > callbacks, > which is the latest commit in origin/sb/submodule-parallel-fetch which was > merged to origin/next) Thanks for a detailed description.

Re: [PATCH 2/6] remote-http(s): Support SOCKS proxies

2015-10-27 Thread Junio C Hamano
Junio C Hamano writes: > Johannes Schindelin writes: > >> On second thought... Junio, could you please sanity-check my claim that >> this patch: >> >> -- snip -- >> ... >> -- snap -- >> >> cannot be copyrighted because it is pretty much the only

Re: [PATCH v3] ref-filter: fallback on alphabetical comparison

2015-10-27 Thread Junio C Hamano
Karthik Nayak writes: > In ref-filter.c the comparison of refs while sorting is handled by > cmp_ref_sorting() function. When sorting as per numerical values > (e.g. --sort=objectsize) there is no fallback comparison when both > refs hold the same value. This can cause

Re: [PATCH 6/9] clone: allow an explicit argument for parallel submodule clones

2015-10-27 Thread Junio C Hamano
Stefan Beller writes: > Just pass it along to "git submodule update", which may pick reasonable > defaults if you don't specify an explicit number. > > Signed-off-by: Stefan Beller > --- > Documentation/git-clone.txt | 5 - > builtin/clone.c

Re: [PATCH 5/9] submodule update: expose parallelism to the user

2015-10-27 Thread Junio C Hamano
Stefan Beller writes: > @@ -374,6 +374,10 @@ for linkgit:git-clone[1]'s `--reference` and `--shared` > options carefully. > clone with a history truncated to the specified number of revisions. > See linkgit:git-clone[1] > > +-j:: > +--jobs:: This probably

[PATCH v3] ref-filter: fallback on alphabetical comparison

2015-10-27 Thread Karthik Nayak
In ref-filter.c the comparison of refs while sorting is handled by cmp_ref_sorting() function. When sorting as per numerical values (e.g. --sort=objectsize) there is no fallback comparison when both refs hold the same value. This can cause unexpected results (i.e. the order of listing refs with

Re: [PATCH 9/9] fetching submodules: Respect `submodule.jobs` config option

2015-10-27 Thread Junio C Hamano
Stefan Beller writes: > diff --git a/Documentation/config.txt b/Documentation/config.txt > index 315f271..0b733d7 100644 > --- a/Documentation/config.txt > +++ b/Documentation/config.txt > @@ -2575,6 +2575,13 @@ submodule..ignore:: > "--ignore-submodules" option. The

Re: [PATCH 1/9] submodule-config: "goto" removal in parse_config()

2015-10-27 Thread Jonathan Nieder
Hi, Stefan Beller wrote: > Subject: submodule-config: "goto" removal in parse_config() > > Many components in if/else if/... cascade jumped to a shared > clean-up with "goto release_return", but we can restructure the > function a bit and make them disappear, Not having read the patch yet, the

Re: [PATCH] difftool: gracefully handle symlinks to directories

2015-10-27 Thread David Aguilar
On Thu, Oct 22, 2015 at 11:23:54AM -0700, Junio C Hamano wrote: > David Aguilar writes: > > > difftool's dir-diff feature was blindly feeding worktree paths > > to hash-object without checking whether the path was indeed a > > file, causing the feature to fail when repositories

What's the ".git/gitdir" file?

2015-10-27 Thread Kyle Meyer
Hello, When a ".git" file points to another repo, a ".git/gitdir" file is created in that repo. For example, running $ mkdir repo-a repo-b $ cd repo-a $ git init $ cd ../repo-b $ echo "gitdir: ../repo-a/.git" > .git $ git status results in a file "repo-a/.git/gitdir"

Re: [PATCH] difftool: avoid symlinks when reusing worktree files

2015-10-27 Thread Junio C Hamano
David Aguilar writes: > difftool's dir-diff should never reuse a symlink, regardless of > what it points to. Tighten use_wt_file() so that it rejects all > symlinks. > > Helped-by: Junio C Hamano > Signed-off-by: David Aguilar > ---

Re: [PATCH] difftool: avoid symlinks when reusing worktree files

2015-10-27 Thread Junio C Hamano
David Aguilar writes: > - if (! -f "$workdir/$file") { > - return (0, $null_sha1); > + my $workfile = "$workdir/$file"; > + if (-f $workfile && ! -l $workfile) { I still don't know if return (0, $null) is the right thing to do, but in any case, I find

RE: What's the ".git/gitdir" file?

2015-10-27 Thread Randall S. Becker
-Original Message- On Tue, October-27-15 6:23 PM, Stefan Beller wrote: >On Tue, Oct 27, 2015 at 3:04 PM, Kyle Meyer wrote: >> When a ".git" file points to another repo, a ".git/gitdir" file is >> created in that repo. >> >> For example, running >> >> $ mkdir repo-a

[PATCH v4] Add git-grep threads param

2015-10-27 Thread Victor Leschuk
Make number of git-grep worker threads a configuration parameter. According to several tests on systems with different number of CPU cores the hard-coded number of 8 threads is not optimal for all systems: tuning this parameter can significantly speed up grep performance. Signed-off-by: Victor

Re: [PATCH 2/6] remote-http(s): Support SOCKS proxies

2015-10-27 Thread Junio C Hamano
Junio C Hamano writes: > Analyzing copyrightability is often more costly than the risk. Misspelled, obviously: "more costly than the other ways to mitigate the risk" is what I meant. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to

Re: [PATCH 1/9] submodule-config: "goto" removal in parse_config()

2015-10-27 Thread Junio C Hamano
Jonathan Nieder writes: > Not having read the patch yet, the above makes me suspect this is > going to make the code worse. A 'goto' for exception handling can > be a clean way to ensure everything allocated gets released, and > restructuring to avoid that can end up making

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Stefan Beller
On Tue, Oct 27, 2015 at 3:04 PM, Kyle Meyer wrote: > Hello, > > When a ".git" file points to another repo, a ".git/gitdir" file is > created in that repo. > > For example, running > > $ mkdir repo-a repo-b > $ cd repo-a > $ git init > $ cd ../repo-b > $ echo

Re: [PATCH 1/2] run-command: factor out child_process_clear()

2015-10-27 Thread Stefan Beller
On Tue, Oct 27, 2015 at 2:29 PM, René Scharfe wrote: > Am 26.10.2015 um 20:23 schrieb Stefan Beller: >> >> On Mon, Oct 26, 2015 at 11:43 AM, Junio C Hamano >> wrote: >>> >>> René Scharfe writes: >>> Avoid duplication by moving the code to

[PATCH] difftool: avoid symlinks when reusing worktree files

2015-10-27 Thread David Aguilar
difftool's dir-diff should never reuse a symlink, regardless of what it points to. Tighten use_wt_file() so that it rejects all symlinks. Helped-by: Junio C Hamano Signed-off-by: David Aguilar --- git-difftool.perl | 12 ++-- 1 file changed, 6

Re: [PATCH 1/2] run-command: factor out child_process_clear()

2015-10-27 Thread René Scharfe
Am 26.10.2015 um 20:23 schrieb Stefan Beller: On Mon, Oct 26, 2015 at 11:43 AM, Junio C Hamano wrote: René Scharfe writes: Avoid duplication by moving the code to release allocated memory for arguments and environment to its own function,

Re: [PATCH] use pop_commit() for consuming the first entry of a struct commit_list

2015-10-27 Thread René Scharfe
Am 26.10.2015 um 22:33 schrieb Junio C Hamano: René Scharfe writes: Instead of open-coding the function pop_commit() just call it. This makes the intent clearer and reduces code size. Signed-off-by: Rene Scharfe --- builtin/fmt-merge-msg.c | 9 +++--

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Junio C Hamano
Kyle Meyer writes: > When a ".git" file points to another repo, a ".git/gitdir" file is > created in that repo. > > For example, running > > $ mkdir repo-a repo-b > $ cd repo-a > $ git init > $ cd ../repo-b > $ echo "gitdir: ../repo-a/.git" > .git > $ git

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Stefan Beller
On Tue, Oct 27, 2015 at 3:42 PM, Randall S. Becker wrote: > Slightly OT: Is there any way of avoiding having that file in the first > place? I'm hoping to have a git repository in a normal file system (Posix) > and a working area in a rather less-than-normal one where

Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb

2015-10-27 Thread Stefan Beller
On Tue, Oct 27, 2015 at 4:28 PM, Jeff King wrote: > I agree doing so would be crazy. But would: > > ./t1234-frotz.sh --gdb=17 > > be sane to run gdb only inside test 17? OT: We have two ways of addressing tests, by number and by name. Usually when a test fails ("Foo gobbles the

Re: git repack command on larger pack file

2015-10-27 Thread Jeff King
On Sun, Oct 25, 2015 at 11:41:23PM -0700, Junio C Hamano wrote: > Also it has to write more data to disk (see below), it has to find a > good place to split, it has to adjust bookkeeping data at the pack > boundary, in general it has to do more, not less, to produce split > packs. It would be

Re: Watchman/inotify support and other ways to speed up git status

2015-10-27 Thread David Turner
On Thu, 2015-10-22 at 07:59 +0200, Christian Couder wrote: > Hi everyone, > > I am starting to investigate ways to speed up git status and other git > commands for Booking.com (thanks to AEvar) and I'd be happy to discuss > the current status or be pointed to relevant documentation or mailing >

Re: git repack command on larger pack file

2015-10-27 Thread Jeff King
On Tue, Oct 27, 2015 at 02:04:23AM +, Sivakumar Selvam wrote: >When I finished git repacking, I found 12 pack files with each 4 GB and > the total size is 48 GB. Again I ran the same git repack command by just > removing only --max-pack-size= parameter, the size of the single pack file >

fatal: Unable to read current working directory: No error

2015-10-27 Thread Sean Krauth
Dear magic git bug solver, I've encountered a problem and I haven't had any success with my own troubleshooting or googling so I'd appreciate some help. I noticed the issue originally when I changed a file name in windows explorer. I was working on a website and I named my Public folder with a

Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb

2015-10-27 Thread Jeff King
On Tue, Oct 27, 2015 at 04:39:37PM -0700, Stefan Beller wrote: > On Tue, Oct 27, 2015 at 4:28 PM, Jeff King wrote: > > I agree doing so would be crazy. But would: > > > > ./t1234-frotz.sh --gdb=17 > > > > be sane to run gdb only inside test 17? > > OT: > We have two ways of

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Mike Rappazzo
On Tue, Oct 27, 2015 at 6:54 PM, Junio C Hamano wrote: > Kyle Meyer writes: > >> When a ".git" file points to another repo, a ".git/gitdir" file is >> created in that repo. >> >> For example, running >> >> $ mkdir repo-a repo-b >> $ cd repo-a >> $

Re: [PATCH 3/6] Facilitate debugging Git executables in tests with gdb

2015-10-27 Thread Jeff King
On Tue, Oct 27, 2015 at 09:34:48AM -0700, Junio C Hamano wrote: > Yeah, that was my first reaction when I saw this patch. Instead of > having to munge that line to "gdb -whatever-args git", you can do a > single-shot debugging in a convenient way. And quite honestly, > because nobody sane will

Re: git-credential-cache--daemon quits on SIGHUP, can we change it to ignore instead?

2015-10-27 Thread Noam Postavsky
On Tue, Oct 27, 2015 at 2:47 PM, Jeff King wrote: > On Tue, Oct 27, 2015 at 10:52:52AM -0700, Junio C Hamano wrote: >> Yes. Probably the right way forward is to make it a non-issue by >> teaching users how to control the lifetime of the "daemon" process, >> and wean them off

[PATCH v5 15/26] refs.c: move prettify_refname to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Signed-off-by: Ronnie Sahlberg Signed-off-by: Junio C Hamano --- refs-be-files.c | 9 - refs.c | 9 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/refs-be-files.c

[PATCH v5 08/26] refs.c: move the hidden refs functions to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Move the hidden refs functions to the refs.c file since these functions do not contain any backend specific code. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano

[PATCH v5 05/26] refs.c: move update_ref to refs.c

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Move update_ref() to the refs.c file since this function does not contain any backend specific code. Move the ref classifier functions and write_pseudoref as well, since update_ref depends on them. Based on Ronnie Sahlberg's patch Signed-off-by:

[PATCH v5 12/26] refs.c: move resolve_refdup to common

2015-10-27 Thread David Turner
From: Ronnie Sahlberg This function can be shared across all refs backends so move it to the common code. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano ---

[PATCH v5 21/26] refs.c: move peel_object to the common code

2015-10-27 Thread David Turner
This function does not contain any backend specific code so we move it to the common code. Signed-off-by: David Turner Signed-off-by: Junio C Hamano Signed-off-by: Michael Haggerty --- refs-be-files.c | 53

[PATCH v5 19/26] refs.c: move refname_is_safe to the common code

2015-10-27 Thread David Turner
This function does not contain any backend specific code so we move it to the common code. This function might be used by other refs backends. While we are doing so, we improve the comment's grammar and clarify a safety rule. Signed-off-by: Ronnie Sahlberg Signed-off-by:

[PATCH v5 17/26] refs.c: move head_ref_namespaced to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Signed-off-by: Ronnie Sahlberg Signed-off-by: Junio C Hamano --- refs-be-files.c | 15 --- refs.c | 15 +++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH v5 26/26] introduce "extensions" form of core.repositoryformatversion

2015-10-27 Thread David Turner
From: Jeff King Normally we try to avoid bumps of the whole-repository core.repositoryformatversion field. However, it is unavoidable if we want to safely change certain aspects of git in a backwards-incompatible way (e.g., modifying the set of ref tips that we must traverse to

[PATCH v5 24/26] refs: make files_log_ref_write functions public

2015-10-27 Thread David Turner
Because HEAD and stash are per-worktree, refs.c needs to go through the files backend to write these refs. In this patch, we make one files_log_ref_write public. Later, we will use this to handle reflog updates for per-worktree symbolic refs (HEAD). Signed-off-by: David Turner

[PATCH v5 25/26] refs: break out ref conflict checks

2015-10-27 Thread David Turner
Create new function verify_no_descendants, to hold one of the ref conflict checks used in verify_refname_available. Multiple backends will need this function, so it goes in the common code. rename_ref_available also moves to the common code, because alternate backends might need it and it has no

[PATCH v5 11/26] refs.c: move read_ref, read_ref_full and ref_exists to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg These functions do not depend on the backend implementation so we move them to the common code. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano

[PATCH v5 10/26] refs.c: move warn_if_dangling_symref* to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg These functions do not use any backend specific code so we move them to the common code. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano ---

[PATCH v5 09/26] refs.c: move dwim and friend functions to the common refs code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg These functions do not contain any backend specific code so we move them to the common code and share across all backends. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio

[PATCH v5 04/26] refs.c: add a new refs.c file to hold all common refs code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Create a new refs.c file that will be used to hold all the refs code that is backend agnostic and will be shared across all backends. Signed-off-by: Ronnie Sahlberg Signed-off-by: Junio C Hamano --- Makefile |

[PATCH v5 16/26] refs.c: move ref iterators to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Signed-off-by: Ronnie Sahlberg Signed-off-by: Junio C Hamano Signed-off-by: David Turner --- refs-be-files.c | 82 - refs.c

[PATCH v5 03/26] refs-be-files.c: rename refs to refs-be-files

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Rename refs.c to refs-be-files.c to indicate that this file now holds the implementation for the files based refs backend. A smaller portion of the code in this file is backend agnostic and will be moved to a new refs.c file that will hold all the

[PATCH v5 18/26] refs: move transaction functions into common code

2015-10-27 Thread David Turner
The common ref code will build up a ref transaction. Backends will then commit it. So the transaction creation and update functions should be in the common code. We also need to move the ref structs into the common code so that alternate backends can access them. Later, we will modify struct

[PATCH v5 14/26] refs.c: move is_branch to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs-be-files.c | 5 - refs.c | 5 + 2 files changed, 5 insertions(+), 5

[PATCH v5 00/26] refs backend pre-vtable

2015-10-27 Thread David Turner
This version of the series makes some minor changes from v4: refs.c: move refname_is_safe to the common code: clarify a comment initdb: move safe_create_dir into common code: add a caveat on safe_create_dir refs.c: move update_ref to refs.c: update commit message to include write_pseudoref

[PATCH v5 07/26] refs.c: move read_ref_at to the common refs file

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Move read_ref_at() to the refs.c file since this function does not contain any backend specific code. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano

[PATCH v5 13/26] refs.c: move check_refname_format to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg This function does not contain any backend specific code so we move it to the common code. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano ---

[PATCH v5 02/26] refs: make is_branch public

2015-10-27 Thread David Turner
is_branch was already non-static, but this patch declares it in the header. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v5 22/26] refs.c: move should_autocreate_reflog to common code

2015-10-27 Thread David Turner
Signed-off-by: David Turner Signed-off-by: Junio C Hamano Signed-off-by: Michael Haggerty --- refs-be-files.c | 10 -- refs.c | 10 ++ refs.h | 2 ++ 3 files changed, 12 insertions(+), 10

[PATCH v5 01/26] refs.c: create a public version of verify_refname_available

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Create a public version of verify_refname_available that backends can provide. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs.c |

[PATCH v5 23/26] initdb: move safe_create_dir into common code

2015-10-27 Thread David Turner
In a moment, we'll create initdb functions for ref backends, and code from initdb that calls this function needs to move into the files backend. So this function needs to be public. Signed-off-by: David Turner Signed-off-by: Junio C Hamano

[PATCH v5 06/26] refs.c: move delete_pseudoref and delete_ref to the common code

2015-10-27 Thread David Turner
From: Ronnie Sahlberg Move delete_pseudoref() and delete_ref() to the refs.c file since these functions do not contain any backend specific code. We can't move delete_refs yet because it depends on the files-backend-specific repack_without_refs. Based on a patch by Ronnie

[PATCH v5 20/26] refs.c: move copy_msg to the common code

2015-10-27 Thread David Turner
Rename copy_msg to copy_reflog_msg and make it public. Signed-off-by: David Turner Signed-off-by: Junio C Hamano Signed-off-by: Michael Haggerty --- refs-be-files.c | 28 +--- refs.c | 21

Re: [PATCH/RFC] receive-pack: allow for hiding refs outside the namespace

2015-10-27 Thread Lukas Fleischer
On Tue, 27 Oct 2015 at 06:59:11, Lukas Fleischer wrote: > [...] > On second thought, it might be possible to overwrite the value of > transfer.hiderefs using the -c command line option. If we combine that > with the negative patterns supported by hiderefs, we might get a > solution that is clean

  1   2   >