Re: [PATCH] rebase -i: restore autostash on abort

2016-06-28 Thread Patrick Steinhardt
On Tue, Jun 28, 2016 at 02:13:49PM -0700, Junio C Hamano wrote: > Matthieu Moy writes: > > > It is "interesting" if you mean "matches real-life use-case", as it > > corresponds to the case where the user killed the editor (as reported by > > Daniel Hahler indeed, "Abort with ":cq", which will mak

[PATCH v2] rebase -i: restore autostash on abort

2016-06-28 Thread Patrick Steinhardt
When we abort an interactive rebase we do so by calling `die_abort`, which cleans up after us by removing the rebase state directory. If the user has requested to use the autostash feature, though, the state directory may also contain a reference to the autostash, which will now be deleted. Fix th

Git Gui 0.20 messes up UTF-8 author names when amending a commit

2016-06-28 Thread Roessner Silvester SGD AS-ER/QMM1 *
Hi, first I want to thank all involved in developing git. It is really one of the - no! - it is the greatest tool I ever worked with! So I want to help improving it at least with this bug report. Since git version 2.9.0 git git-gui messes up my author name - which contains UTF-8 characters: Silv

Re: preview: What's cooking in git.git (Jun 2016, #10; Tue, 28)

2016-06-28 Thread Johannes Sixt
Am 29.06.2016 um 03:43 schrieb Jeff King: Another is to just put the posix/ksh schemes into the helper function, and let Windows people sort it out later if they want to. Let's do this. -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to maj

Re: [PATCH] builtin/worktree.c: add option for setting worktree name

2016-06-28 Thread Barret Rennie
> On Jun 27, 2016, at 5:11 PM, Eric Sunshine wrote: > > [snip] > > My knee-jerk reaction is that the directory name under .git/worktrees > is an implementation detail (and could easily have been an arbitrary > ID, such as .git/worktrees/7ba84ec0) and rather than exposing it > further and encour

Re: [PATCH v2 0/2] Config conditional include

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 10:28 PM, Jeff King wrote: > On Tue, Jun 28, 2016 at 07:26:39PM +0200, Nguyễn Thái Ngọc Duy wrote: > >> There's a surprise about core.ignorecase. We are matching paths, so we >> should match case-insensitively if core.ignorecase tells us so. And it >> gets a bit tricky if c

Re: [PATCH v2 2/2] config: add conditional include

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 10:49 PM, Jeff King wrote: >> +static int prepare_include_condition_pattern(struct strbuf *pat) >> +{ >> + struct strbuf path = STRBUF_INIT; >> + int prefix = 0; >> + >> + /* TODO: maybe support ~user/ too */ >> + if (pat->buf[0] == '~' && is_dir_sep(pat->bu

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Junio C Hamano wrote: > Junio C Hamano writes: > > > It's just that if you take the latter, then the conditional after > > the loop exits (i.e. the last transmission was an incomplete line) > > cannot be "is outbuf empty?", as your base state is "has PREFIX and > > can never

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Junio C Hamano writes: > It's just that if you take the latter, then the conditional after > the loop exits (i.e. the last transmission was an incomplete line) > cannot be "is outbuf empty?", as your base state is "has PREFIX and > can never be empty". I was working back from that if statement.

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Junio C Hamano wrote: > Nicolas Pitre writes: > > >> The basic structure of the code (without the "SQUASH" we discussed) > >> looks like this: > >> > >>strbuf_addf(&outbuf, "%s", PREFIX); > >>while (retval == 0) { > >>len = packet_read(in_stream, NULL, N

Re: preview: What's cooking in git.git (Jun 2016, #10; Tue, 28)

2016-06-28 Thread Junio C Hamano
Jeff King writes: > Johannes pointed out that matching "3" for Windows is overly broad (it > only happens due to raise(), not regular signal death). > > What do we want to do there? > > I _think_ matching "3" just makes us slightly less careful, and will not > cause false positives (it may cause

Re: preview: What's cooking in git.git (Jun 2016, #10; Tue, 28)

2016-06-28 Thread Jeff King
On Tue, Jun 28, 2016 at 04:36:25PM -0700, Junio C Hamano wrote: > * jk/test-match-signal (2016-06-24) 4 commits > - t/lib-git-daemon: use test_match_signal > - test_must_fail: use test_match_signal > - t0005: use test_match_signal as appropriate > - tests: factor portable signal check out of t

preview: What's cooking in git.git (Jun 2016, #10; Tue, 28)

2016-06-28 Thread Junio C Hamano
Quite a few topics that have been in 'pu' are now in 'next', following yesterday's batch of topics that were merged to 'master'. I'll do the real #10th issue tomorrow, but here is a snapshot for today. -- [New Topics] * cc/apply-am (2016-06-28) 41

Re: [PATCH v2 2/2] config: add conditional include

2016-06-28 Thread Eric Sunshine
On Tue, Jun 28, 2016 at 1:26 PM, Nguyễn Thái Ngọc Duy wrote: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > diff --git a/config.c b/config.c > @@ -140,9 +141,89 @@ static int handle_path_include(const char *path, struct > config_include_data *inc > +static int include_condition_is_true(const char

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Junio C Hamano writes: > But then my observation still holds, no? > > ... > if (outbuf.len) { > /* we still have something to say */ > strbuf_splice(&outbuf, 0, 0, PREFIX, > strlen(PREFIX)); > fwrite(...); > } I guess thes

Re: What's happening to the index

2016-06-28 Thread Andy Falanga (afalanga)
On 06/28/2016 09:17 AM, Matthieu Moy wrote: > "Andy Falanga (afalanga)" writes: > >> After the line calling increlnum is executed, I often have issues with >> make unable to spawn the next command because it can't read the current >> directory info. > This may happen if you delete the current dire

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Nicolas Pitre writes: >> The basic structure of the code (without the "SQUASH" we discussed) >> looks like this: >> >> strbuf_addf(&outbuf, "%s", PREFIX); >> while (retval == 0) { >> len = packet_read(in_stream, NULL, NULL, buf, LARGE_PACKET_MAX, >> 0); >> ..

Re: [PATCH v2 0/2] Config conditional include

2016-06-28 Thread Junio C Hamano
Honestly, I'd really prefer to see those with topics in 'pu' that has seen reviews but not yet updated to go back to and polish them to help move things forward, with the goal to have them in 'next' sooner so that we can have fixes and features that are sufficiently vetted and tested in the next re

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Junio C Hamano wrote: > Nicolas Pitre writes: > > >> There is something else going on. I cannot quite explain why I am > >> getting this failure from t5401-update-hooks.sh, for example: > >> > >> --- expect 2016-06-28 19:46:24.564937075 + > >> +++ actual

Re: [PATCH v8 33/41] write_or_die: use warning() instead of fprintf(stderr, ...)

2016-06-28 Thread Junio C Hamano
Christian Couder writes: > diff --git a/write_or_die.c b/write_or_die.c > index 49e80aa..c29f677 100644 > --- a/write_or_die.c > +++ b/write_or_die.c > @@ -87,8 +87,7 @@ int write_or_whine_pipe(int fd, const void *buf, size_t > count, const char *msg) > { > if (write_in_full(fd, buf, coun

subtree bug: removing and re-adding a subtree screws up the push

2016-06-28 Thread Christian Zommerfelds
Hi, Today I realized that when you add a subtree with `git subtree add`, then remove it with `git rm -r`, then re-add it again, pushing to the subtree behaves weirdly: it adds the whole history of the main repository to the sub repository. Below is a list of commands to reproduce the issue: ```

Re: [PATCH] rebase -i: restore autostash on abort

2016-06-28 Thread Junio C Hamano
Matthieu Moy writes: > It is "interesting" if you mean "matches real-life use-case", as it > corresponds to the case where the user killed the editor (as reported by > Daniel Hahler indeed, "Abort with ":cq", which will make Vim exit > non-zero"). Yes. It is an interesting failure mode in that

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Nicolas Pitre writes: >> There is something else going on. I cannot quite explain why I am >> getting this failure from t5401-update-hooks.sh, for example: >> >> --- expect 2016-06-28 19:46:24.564937075 + >> +++ actual 2016-06-28 19:46:24.564937075 + >> @@ -9,3 +9,

Re: [PATCH v2 0/2] Config conditional include

2016-06-28 Thread Jeff King
On Tue, Jun 28, 2016 at 10:51:15PM +0200, Matthieu Moy wrote: > Jeff King writes: > > > On Tue, Jun 28, 2016 at 07:26:39PM +0200, Nguyễn Thái Ngọc Duy wrote: > > > >> There's a surprise about core.ignorecase. We are matching paths, so we > >> should match case-insensitively if core.ignorecase te

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Junio C Hamano wrote: > Nicolas Pitre writes: > > > Without this, the error and remaining buffer would be reversed as > > mentioned previously. With this, the order is restored, but a newline > > is added to unterminated lines whereas the error was simply appended to > >

Re: [PATCH v2 0/2] Config conditional include

2016-06-28 Thread Matthieu Moy
Jeff King writes: > On Tue, Jun 28, 2016 at 07:26:39PM +0200, Nguyễn Thái Ngọc Duy wrote: > >> There's a surprise about core.ignorecase. We are matching paths, so we >> should match case-insensitively if core.ignorecase tells us so. And it >> gets a bit tricky if core.ignorecase is defined in the

Re: [PATCH v2 2/2] config: add conditional include

2016-06-28 Thread Jeff King
On Tue, Jun 28, 2016 at 07:26:41PM +0200, Nguyễn Thái Ngọc Duy wrote: > diff --git a/Documentation/config.txt b/Documentation/config.txt > index 58673cf..c8ad0bf 100644 > --- a/Documentation/config.txt > +++ b/Documentation/config.txt > @@ -91,6 +91,46 @@ found at the location of the include direc

Re: [PATCH] rebase -i: restore autostash on abort

2016-06-28 Thread Matthieu Moy
Junio C Hamano writes: > Patrick Steinhardt writes: > >> +test_expect_success 'restore autostash on editor failure' ' >> +test_when_finished "git reset --hard" && >> +echo uncommited-content >file0 && >> +( >> +test_set_editor "false" && >> +test_must_fail git

Re: [PATCH v2 0/2] Config conditional include

2016-06-28 Thread Jeff King
On Tue, Jun 28, 2016 at 07:26:39PM +0200, Nguyễn Thái Ngọc Duy wrote: > There's a surprise about core.ignorecase. We are matching paths, so we > should match case-insensitively if core.ignorecase tells us so. And it > gets a bit tricky if core.ignorecase is defined in the same config > file. I don

Re: Shallow submodule efficiency

2016-06-28 Thread Stefan Beller
On Tue, Jun 28, 2016 at 12:08 PM, Martin von Gagern wrote: > Hi Stefan, > > On 28.06.2016 19:20, Stefan Beller wrote: >>> I have the feeling that “git submodule update --depth 1” is less clever >>> than it could be. Here is one example I observed with git 2.0.0: >> >> 2.9.0 (as "Direct fetching of

Re: git svn clone segmentation faul issue

2016-06-28 Thread Eric Wong
ioannis.kap...@rbs.com wrote: > Fortunately, a patch has already been submitted to subversion > with (github) revision > a074af86c8764404b28ce99d0bedcb668a321408 (at > https://github.com/apache/subversion/commit/a074af86c8764404b28ce99d0bedcb668a321408 > ) on the trunk to handle this and a couple o

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Nicolas Pitre writes: > Without this, the error and remaining buffer would be reversed as > mentioned previously. With this, the order is restored, but a newline > is added to unterminated lines whereas the error was simply appended to > the output before Lukas' patch. > > In any case the new

Re: Shallow submodule efficiency

2016-06-28 Thread Martin von Gagern
Hi Stefan, On 28.06.2016 19:20, Stefan Beller wrote: >> I have the feeling that “git submodule update --depth 1” is less clever >> than it could be. Here is one example I observed with git 2.0.0: > > 2.9.0 (as "Direct fetching of " is not part of 2.0.0 IIRC) ? Yes, sorry. I had this tested with

Re: [PATCH] rebase -i: restore autostash on abort

2016-06-28 Thread Junio C Hamano
Patrick Steinhardt writes: > When we abort an interactive rebase we do so by calling > `die_abort`, which cleans up after us by removing the rebase > state directory. If the user has requested to use the autostash > feature, though, the state directory may also contain a reference > to the autost

Re: [PATCH] connect: read $GIT_SSH_COMMAND from config file

2016-06-28 Thread Eric Sunshine
On Tue, Jun 28, 2016 at 1:58 PM, Junio C Hamano wrote: > Let's then squash this in. > > diff --git a/Documentation/config.txt b/Documentation/config.txt > @@ -444,11 +444,11 @@ This is useful for excluding servers inside a firewall > from > core.sshCommand:: > - If this variable is set the

Re: [PATCH v1] git-p4: place temporary refs used for branch import under ref/git-p4-tmp

2016-06-28 Thread Junio C Hamano
Johannes Sixt writes: > Am 27.06.2016 um 09:26 schrieb larsxschnei...@gmail.com: >> --- a/git-p4.py >> +++ b/git-p4.py >> @@ -2274,7 +2274,7 @@ class P4Sync(Command, P4UserMap): >> self.useClientSpec_from_options = False >> self.clientSpecDirs = None >> self.tempBran

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Junio C Hamano wrote: > Nicolas Pitre writes: > > >> When we exit the loop because we set retval to a non-zero value, > >> should we still drain the outbuf? > > > > I would think so. Anything that the remote sent before any error should > > be printed nevertheless. The cl

[PATCHv2] submodule: test moving recursive submodule

2016-06-28 Thread Stefan Beller
This reproduces the error as pointed out in [1], but the fix is not easy, so punt on it for now and just document what needs to be done. [1] http://stackoverflow.com/questions/32782382/git-moving-submodules-recursively-nested-submodules Signed-off-by: Stefan Beller --- Bart, I don't hav

Re: [PATCH v1] git-p4: place temporary refs used for branch import under ref/git-p4-tmp

2016-06-28 Thread Johannes Sixt
Am 27.06.2016 um 09:26 schrieb larsxschnei...@gmail.com: --- a/git-p4.py +++ b/git-p4.py @@ -2274,7 +2274,7 @@ class P4Sync(Command, P4UserMap): self.useClientSpec_from_options = False self.clientSpecDirs = None self.tempBranches = [] -self.tempBranchLocation

[RFC/PATCH v2 10/10] Add t0410 to test external ODB transfer

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0410-transfer-e-odb.sh | 136 ++ 1 file changed, 136 insertions(+) create mode 100755 t/t0410-transfer-e-odb.sh diff --git a/t/t0410-transfer-e-odb.sh b/t/t0410-transfer-e-odb.sh new file mode 100755 index 00

[RFC/PATCH v2 05/10] t0400: add test for 'put' command

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 0f1bb97..6c6da5c 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@ -57,4 +57,13 @@ test_expect_succe

[RFC/PATCH v2 04/10] t0400: add 'put' command to odb-helper script

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 14 ++ 1 file changed, 14 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index fe85413..0f1bb97 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@ -7,6 +7,10 @@ test_descrip

[RFC/PATCH v2 06/10] external odb: add write support

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 15 +++ external-odb.h | 2 ++ odb-helper.c | 41 + odb-helper.h | 3 +++ sha1_file.c| 2 ++ 5 files changed, 59 insertions(+), 4 deletions(-) diff --git a/external-odb.c b/externa

[RFC/PATCH v2 09/10] Add GIT_NO_EXTERNAL_ODB env variable

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- cache.h| 9 + environment.c | 4 external-odb.c | 6 ++ sha1_file.c| 3 +++ 4 files changed, 22 insertions(+) diff --git a/cache.h b/cache.h index cc0a934..b0fe2bc 100644 --- a/cache.h +++ b/cache.h @@ -420,6 +420,7 @@ static inli

[RFC/PATCH v2 00/10] Add initial experimental external ODB support

2016-06-28 Thread Christian Couder
Goal Git can store its objects only in the form of loose objects in separate files or packed objects in a pack file. To be able to better handle some kind of objects, for example big blobs, it would be nice if Git could store its objects in other object databases (ODB). To do that, this pat

[RFC/PATCH v2 02/10] external odb foreach

2016-06-28 Thread Christian Couder
From: Jeff King --- external-odb.c | 14 ++ external-odb.h | 6 ++ odb-helper.c | 15 +++ odb-helper.h | 4 4 files changed, 39 insertions(+) diff --git a/external-odb.c b/external-odb.c index 1ccfa99..42978a3 100644 --- a/external-odb.c +++ b/external-odb

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Nicolas Pitre writes: >> When we exit the loop because we set retval to a non-zero value, >> should we still drain the outbuf? > > I would think so. Anything that the remote sent before any error should > be printed nevertheless. The clue for the error might be in the pending > buffer. > > Ho

[RFC/PATCH v2 07/10] external-odb: accept only blobs for now

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 4 1 file changed, 4 insertions(+) diff --git a/external-odb.c b/external-odb.c index bb70fe3..6dd7b25 100644 --- a/external-odb.c +++ b/external-odb.c @@ -133,6 +133,10 @@ int external_odb_write_object(const void *buf, unsigned long len

[RFC/PATCH v2 03/10] t0400: use --batch-all-objects to get all objects

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 2b01617..fe85413 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@ -10,9 +10,7 @@ write_sc

[RFC/PATCH v2 01/10] Add initial external odb support

2016-06-28 Thread Christian Couder
From: Jeff King Signed-off-by: Christian Couder --- Makefile| 2 + cache.h | 9 ++ external-odb.c | 115 +++ external-odb.h | 8 ++ odb-helper.c| 239 odb-hel

[RFC/PATCH v2 08/10] t0400: add test for external odb write support

2016-06-28 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 8 1 file changed, 8 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 6c6da5c..3c868ca 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@ -66,4 +66,12 @@ test_expect_succes

Re: [PATCH] doc: git-htmldocs.googlecode.com is no more

2016-06-28 Thread Junio C Hamano
Matthieu Moy writes: > Junio C Hamano writes: > >> On Wed, Jun 22, 2016 at 12:00 PM, Eric Wong wrote: >>> >>> Just wondering, who updates >>> https://kernel.org/pub/software/scm/git/docs/ >>> and why hasn't it been updated in a while? >>> (currently it says Last updated 2015-06-06 at the bottom

Re: [PATCH] connect: read $GIT_SSH_COMMAND from config file

2016-06-28 Thread Junio C Hamano
Matthieu Moy writes: > Jeff King writes: > >> On Sun, Jun 26, 2016 at 01:16:35PM +0200, Nguyễn Thái Ngọc Duy wrote: >> >>> + use the specified command instead of 'ssh' when they need to >>> + connect to a remote system. The command is in the same form as >>> + 'GIT_SSH_COMMAND' environment

[PATCH] rebase -i: restore autostash on abort

2016-06-28 Thread Patrick Steinhardt
When we abort an interactive rebase we do so by calling `die_abort`, which cleans up after us by removing the rebase state directory. If the user has requested to use the autostash feature, though, the state directory may also contain a reference to the autostash, which will now be deleted. Fix th

Re: [PATCH] sha1_name.c: add an option to abort on ambiguous refs

2016-06-28 Thread Duy Nguyen
Bringing this up again after I've seen another person accidentally create a refs/heads/origin/some-branch and get really confused because "git push" reports up-to-date but the remote branch is not updated. I don't know how he got into that situation, but I hope we should be able to catch it and sug

Re: [PATCH] submodule: test moving recursive submodule

2016-06-28 Thread Stefan Beller
On Mon, Jun 27, 2016 at 11:28 PM, Bart Bogaerts wrote: > I dit some more testing. > > It is important for the bug to occur that all submodules are initialised. > So my suggestion is not yet complete, you need to add the line Oh right. I was completely oblivious to that. > > git submodule update

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Junio C Hamano wrote: > And then that made me stare at the patch even more. We still write > some error messages to stderr in the updated code (without my crap > SQUASH) inside "while (!retval)" loop: > > while (retval == 0) { > int band, len; >

[PATCH v2 1/2] add skip_prefix_mem helper

2016-06-28 Thread Nguyễn Thái Ngọc Duy
From: Jeff King The skip_prefix function has been very useful for simplifying pointer arithmetic and avoiding repeated magic numbers, but we have no equivalent for length-limited buffers. So we're stuck with: if (3 <= len && skip_prefix(buf, "foo", &buf)) len -= 3; That's not that c

Re: What's cooking in git.git (Jun 2016, #05; Thu, 16)

2016-06-28 Thread Junio C Hamano
Michael Haggerty writes: > (I suppose that `REFNAME_ALLOW_ONELEVEL` was > meant for checking partial reference names, for example to vet "foo" > that the caller wants to pass to `git branch`, which automatically turns > it into `refs/heads/foo`.) Correct. > In summary, `check_refname_format()`

[PATCH v2 2/2] config: add conditional include

2016-06-28 Thread Nguyễn Thái Ngọc Duy
Main description is already in config.txt. Here is a dev-only note about Windows support. While prepare_include_condition_pattern() is Windows-friendly (because it does not hard code '/'). The reality could be uglier because internally get_git_dir() may return a path with '/' only or worse, a mix

[PATCH v2 0/2] Config conditional include

2016-06-28 Thread Nguyễn Thái Ngọc Duy
Second try. The anchoring rules now look a lot better. I cherry picked Jeff's skip_prefix_mem() for now to avoid dependency. There's a surprise about core.ignorecase. We are matching paths, so we should match case-insensitively if core.ignorecase tells us so. And it gets a bit tricky if core.ignor

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Junio C Hamano writes: > With input from Dscho that recent Git-for-Windows does the right > thing without limiting us to use only a subset of stdio, perhaps we > would want to squash something like this in. > > diff --git a/sideband.c b/sideband.c > index 226a8c2..72e2c5c 100644 > --- a/sideband.

Re: Shallow submodule efficiency

2016-06-28 Thread Stefan Beller
On Mon, Jun 27, 2016 at 10:39 PM, Martin von Gagern wrote: > Hi! > > I have the feeling that “git submodule update --depth 1” is less clever > than it could be. Here is one example I observed with git 2.0.0: 2.9.0 (as "Direct fetching of " is not part of 2.0.0 IIRC) ? > > git init foo > cd f

Re: [PATCH v4] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Lukas Fleischer writes: > Before this patch, we used character buffer manipulations to split > messages from the sideband at line breaks and insert "remote: " at the > beginning of each line, using the packet size to determine the end of a > message. However, since it is safe to assume that diagn

Re: [PATCH] Remove obsolete comment from color.h

2016-06-28 Thread Jeff King
On Tue, Jun 28, 2016 at 06:24:05PM +0200, Johannes Schindelin wrote: > Essentially, the caveat in color.h that one should use fprintf() and > printf() when outputting color sequences to a terminal no longer holds > true. fwrite() or write() work just as well. Cool. One less thing to worry about.

Re: [PATCH] Remove obsolete comment from color.h

2016-06-28 Thread Junio C Hamano
On Tue, Jun 28, 2016 at 9:24 AM, Johannes Schindelin wrote: > > On Tue, 28 Jun 2016, Junio C Hamano wrote: >> >> So as long as we write via stdio to stdout/stderr, you can show >> colors? Or is it now stronger, in that as long as we do anything >> that ends up writing to file descriptors 1 or 2,

Re: [PATCH] ./configure.ac: Detect SSL in libcurl using curl-config

2016-06-28 Thread Junio C Hamano
Дилян Палаузов writes: > The API of libcurl does not mention Curl_ssl_init() and when curl is built > with -flto, the Curl_ssl_init symbol is not exported. > > https://curl.haxx.se/libcurl/using/ suggests calling > curl-config --feature | grep SSL > to see, if the installed curl has SSL suppor

Re: git svn clone segmentation faul issue

2016-06-28 Thread Johannes Schindelin
Hi Yannis, On Tue, 28 Jun 2016, Ioannis Kappas wrote: > Hi Johanes, Almost ;-) > Johannes Schindelin gmx.de> writes: > > > Would you mind giving them a whirl? > > The patch in "source code (zip)" seems to be missing the line in the prepare > () section of PKGBUILD to actually apply the fix:

Re: [PATCH] Remove obsolete comment from color.h

2016-06-28 Thread Johannes Schindelin
Hi Junio, On Tue, 28 Jun 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > Originally, ANSI color sequences were supported on Windows only by > > overriding the printf() and fprintf() functions, as mentioned in e7821d7 > > (Add a notice that only certain functions can print color

Re: [PATCH v2] Refactor recv_sideband()

2016-06-28 Thread Johannes Schindelin
Hi Junio, On Tue, 28 Jun 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > Erm, sorry... > > > > On Tue, 28 Jun 2016, Johannes Schindelin wrote: > > > >> [...] we actually do not override fprintf() at all anymore [*1*] [...] > > > > ... forgot the > > > > Footnote *1*: In Git for

Re: git svn clone segmentation faul issue

2016-06-28 Thread Ioannis Kappas
Hi Johanes, Johannes Schindelin gmx.de> writes: > > Hi Ioannis, > > On Tue, 28 Jun 2016, Johannes Schindelin wrote: > > > On Tue, 28 Jun 2016, Ioannis.Kappas rbs.com wrote: > > > > > Git can fail with a "malformed index nnn" error or cause a segmentation > > > fault when executing the "git

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 3:43 PM, Lars Schneider wrote: > >> On 28 Jun 2016, at 15:14, Johannes Schindelin >> wrote: >> >> Hi Duy, >> >> On Tue, 28 Jun 2016, Duy Nguyen wrote: >> >>> On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin >>> wrote: On Mon, 27 Jun 2016, Duy Nguyen wrote:

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 3:14 PM, Johannes Schindelin wrote: > Hi Duy, > > On Tue, 28 Jun 2016, Duy Nguyen wrote: > >> On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin >> wrote: >> > >> > On Mon, 27 Jun 2016, Duy Nguyen wrote: >> > >> >> On Mon, Jun 27, 2016 at 7:38 AM, wrote: >> >> > ## Pr

Re: [PATCH] Remove obsolete comment from color.h

2016-06-28 Thread Junio C Hamano
Johannes Schindelin writes: > Originally, ANSI color sequences were supported on Windows only by > overriding the printf() and fprintf() functions, as mentioned in e7821d7 > (Add a notice that only certain functions can print color escape codes, > 2009-11-27). > > As of eac14f8 (Win32: Thread-saf

Re: [PATCH 2/6] doc: typeset long command-line options as literal

2016-06-28 Thread Junio C Hamano
Matthieu Moy writes: > Sorry, I forgot to mention when sending the series: this is to be > applied on top of tr/doc-tt (in next, marked "will merge to master"). Yup, I figured it out and these are queued there. tr/doc-tt is part of 'master' now. -- To unsubscribe from this list: send the line "

Re: What's happening to the index

2016-06-28 Thread Matthieu Moy
"Andy Falanga (afalanga)" writes: > After the line calling increlnum is executed, I often have issues with > make unable to spawn the next command because it can't read the current > directory info. This may happen if you delete the current directory, even if your re-create it afterwards. For

Re: [PATCH v2] Refactor recv_sideband()

2016-06-28 Thread Junio C Hamano
Johannes Schindelin writes: > Erm, sorry... > > On Tue, 28 Jun 2016, Johannes Schindelin wrote: > >> [...] we actually do not override fprintf() at all anymore [*1*] [...] > > ... forgot the > > Footnote *1*: In Git for Windows, we actually *do* override fprintf(), > thanks to using gettext, but

What's happening to the index

2016-06-28 Thread Andy Falanga (afalanga)
Hi, I'm using git version 1.8.3.1. I have a process for building RPMs in my repository. The RPMs are versioned using a "build number". In order to maintain uniqueness for this build number, I have stored this number to a file which exists on only a unique branch. The build process, for an ac

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Christian Couder
On Tue, Jun 28, 2016 at 3:22 PM, Lars Schneider wrote: > > @Christian/Peff: > Is there a place to look for more info about your remote-object-store idea? You may want to take a look at: https://github.com/chriscool/git/commits/external-odb I just updated it and I may send an updated RFC series

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Lars Schneider
> On 28 Jun 2016, at 15:14, Johannes Schindelin > wrote: > > Hi Duy, > > On Tue, 28 Jun 2016, Duy Nguyen wrote: > >> On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin >> wrote: >>> >>> On Mon, 27 Jun 2016, Duy Nguyen wrote: >>> On Mon, Jun 27, 2016 at 7:38 AM, wrote: > ## Pr

Re: git svn clone segmentation faul issue

2016-06-28 Thread Johannes Schindelin
Hi Ioannis, On Tue, 28 Jun 2016, Johannes Schindelin wrote: > On Tue, 28 Jun 2016, ioannis.kap...@rbs.com wrote: > > > Git can fail with a "malformed index nnn" error or cause a segmentation > > fault when executing the "git svn clone" command. > > > > [...] > > > > Fortunately, a patch has alr

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Lars Schneider
> On 27 Jun 2016, at 18:09, Junio C Hamano wrote: > > larsxschnei...@gmail.com writes: > >> Unfortunately that fix helps only with cloning. Any local Git operation >> that invokes the clean/smudge filter (e.g. switching branches) is still >> slow. > > Do you know where the slowness comes from?

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Johannes Schindelin
Hi Duy, On Tue, 28 Jun 2016, Duy Nguyen wrote: > On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin > wrote: > > > > On Mon, 27 Jun 2016, Duy Nguyen wrote: > > > >> On Mon, Jun 27, 2016 at 7:38 AM, wrote: > >> > ## Proposed solution > >> > Git LFS caches its objects under .git/lfs/objects.

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin wrote: > Hi Duy, > > On Mon, 27 Jun 2016, Duy Nguyen wrote: > >> On Mon, Jun 27, 2016 at 7:38 AM, wrote: >> > ## Proposed solution >> > Git LFS caches its objects under .git/lfs/objects. Most of the time >> > Git LFS objects are already avail

[PATCH] ./configure.ac: Detect SSL in libcurl using curl-config

2016-06-28 Thread Дилян Палаузов
The API of libcurl does not mention Curl_ssl_init() and when curl is built with -flto, the Curl_ssl_init symbol is not exported. https://curl.haxx.se/libcurl/using/ suggests calling curl-config --feature | grep SSL to see, if the installed curl has SSL support. Another approach would be calling

Re: git svn clone segmentation faul issue

2016-06-28 Thread Johannes Schindelin
Hi Ioannis, On Tue, 28 Jun 2016, ioannis.kap...@rbs.com wrote: > Git can fail with a "malformed index nnn" error or cause a segmentation > fault when executing the "git svn clone" command. > > [...] > > Fortunately, a patch has already been submitted to subversion with > (github) revision a074af

[PATCH v2 0/7] literal formatting in documentation

2016-06-28 Thread Matthieu Moy
This should address all comments from Peff. The series is now based on master (which now contains tr/doc-tt). Content changes since v1: * First patch (fix indentation prior to actual change to avoid 'git am' warning) is new. * One buggy replacement (`grep.patternType` -> 'grep.patternType')

[PATCH v2 6/7] CodingGuidelines: formatting HEAD in documentation

2016-06-28 Thread Matthieu Moy
The current practice is: git/Documentation$ git grep "'HEAD'" | wc -l 24 git/Documentation$ git grep "\`HEAD\`" | wc -l 66 Let's adopt the majority as a guideline. Signed-off-by: Matthieu Moy --- Documentation/CodingGuidelines | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --

[PATCH v2 3/7] doc: typeset long command-line options as literal

2016-06-28 Thread Matthieu Moy
Similarly to the previous commit, use backquotes instead of forward-quotes, for long options. This was obtained with: perl -pi -e "s/'(--[a-z][a-z=<>-]*)'/\`\$1\`/g" *.txt and manual tweak to remove false positive in ascii-art (o'--o'--o' to describe rewritten history). Signed-off-by: Matthie

[PATCH v2 2/7] doc: typeset short command-line options as literal

2016-06-28 Thread Matthieu Moy
It was common in our documentation to surround short option names with forward quotes, which renders as italic in HTML. Instead, use backquotes which renders as monospace. This is one more step toward conformance to Documentation/CodingGuidelines. This was obtained with: perl -pi -e "s/'(-[a-z]

[PATCH v2 4/7] doc: typeset '--' as literal

2016-06-28 Thread Matthieu Moy
This was obtained with: perl -pi -e "s/'--'/\`--\`/g" *.txt Signed-off-by: Matthieu Moy --- Documentation/git-fast-import.txt | 4 ++-- Documentation/git-filter-branch.txt | 2 +- Documentation/rev-list-options.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Docu

[PATCH v2 5/7] doc: typeset long options with argument as literal

2016-06-28 Thread Matthieu Moy
We previously reformatted '--option' to `--option`. This patch reformats '--option ' to `--option `. Obtained with: perl -pi -e "s/'(--[a-z][a-z=<>-]* <[^>]*>)'/\`\$1\`/g" *.txt Signed-off-by: Matthieu Moy --- Documentation/git-config.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 7/7] doc: typeset HEAD and variants as literal

2016-06-28 Thread Matthieu Moy
This is an application of the newly added CodingGuidelines to HEAD and variants like FETCH_HEAD. It was obtained with: perl -pi -e "s/'([A-Z_]*HEAD)'/\`\$1\`/g" *.txt Signed-off-by: Matthieu Moy --- Documentation/git-bisect.txt| 2 +- Documentation/git-branch.txt| 4 ++-- Do

[PATCH v2 1/7] Documentation/git-mv.txt: fix whitespace indentation

2016-06-28 Thread Matthieu Moy
Replace spaces with tabs to avoid a warning when further patches change these lines. Signed-off-by: Matthieu Moy --- Documentation/git-mv.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-mv.txt b/Documentation/git-mv.txt index e453132..6dcb8b2 100644

[PATCH v6 1/1] contrib/subtree: Add a test for subtree rebase that loses commits

2016-06-28 Thread David Greene
From: David A. Greene This test merges an external tree in as a subtree, makes some commits on top of it and splits it back out. In the process the added commits are lost or the rebase aborts with an internal error. The tests are marked to expect failure so that we don't forget to fix it. Sign

Re: [PATCH v5 1/1] contrib/subtree: Add a test for subtree rebase that loses commits

2016-06-28 Thread David A. Greene
Junio C Hamano writes: > gree...@obbligato.org (David A. Greene) writes: > >>> I also notice that files_subtree/master4 does not appear in any of >>> the verification in the three tests that use the history being >>> prepared here, i.e. if master4 is silently dropped while master5 is >>> kept, su

Re: [PATCH] contrib/subtree: Remove --annotate

2016-06-28 Thread David A. Greene
Junio C Hamano writes: > gree...@obbligato.org (David A. Greene) writes: > >> Just to clarify, what is the expectation of things in contrib? >> Basically the same as other code? > > That heavily depends on your exit strategy. > > If the aspiration is to move up to exit, then the quality and > sta

Re: [PATCH v1] git-p4: place temporary refs used for branch import under ref/git-p4-tmp

2016-06-28 Thread Michael Haggerty
On 06/27/2016 09:26 AM, larsxschnei...@gmail.com wrote: > Git-P4 used to place temporary refs under "git-p4-tmp". Since 3da1f37 > Git checks that all refs are placed under "ref". Instruct Git-P4 to > place temporary refs under "ref/git-p4-tmp". There are no backwards > compatibility considerations

Re: [PATCH v13 21/20] unix-socket.c: add stub implementation when unix sockets are not supported

2016-06-28 Thread Johannes Schindelin
Hi Duym On Mon, 27 Jun 2016, Duy Nguyen wrote: > On Mon, Jun 27, 2016 at 2:14 PM, Johannes Schindelin > wrote: > > > > On Sun, 26 Jun 2016, Nguyễn Thái Ngọc Duy wrote: > > > >> This keeps #ifdef at the callee instead of caller, it's less messier. > >> > >> The caller in question is in read-cache

Re: [PATCH v2] Refactor recv_sideband()

2016-06-28 Thread Johannes Schindelin
Erm, sorry... On Tue, 28 Jun 2016, Johannes Schindelin wrote: > [...] we actually do not override fprintf() at all anymore [*1*] [...] ... forgot the Footnote *1*: In Git for Windows, we actually *do* override fprintf(), thanks to using gettext, but it is *gettext* that is doing the overriding

  1   2   >