Re: [PATCH v3 12/13] worktree.c: check whether branch is bisected in another worktree

2016-05-10 Thread Eric Sunshine
On Fri, Apr 22, 2016 at 9:01 AM, Nguyễn Thái Ngọc Duy wrote: > Similar to the rebase case, we want to detect if "HEAD" in some worktree > is being bisected because > > 1) we do not want to checkout this branch in another worktree, after >bisect is done it will want to go

Re: [PATCH 24/25] worktree move: accept destination as directory

2016-05-10 Thread Eric Sunshine
On Wed, Apr 13, 2016 at 9:15 AM, Nguyễn Thái Ngọc Duy wrote: > Similar to "mv a b/", which is actually "mv a b/a", we extract basename > of source worktree and create a directory of the same name at > destination if dst path is a directory. > > Signed-off-by: Nguyễn Thái Ngọc

Re: [PATCH v9 2/6] convert.c: stream and early out

2016-05-10 Thread Torsten Bögershausen
On 09.05.16 22:29, Junio C Hamano wrote: > tbo...@web.de writes: > >> +if (stats->stat_bits & earlyout) >> +break; /* We found what we have been searching for */ > > Are we sure if our callers are only interested in just one bit at a > time? Otherwise, if we want

Re: [PATCH 5/7] submodule--helper module_list_compute: allow label or name arguments

2016-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Stefan Beller writes: > >> +static void split_argv_pathspec_groups(int argc, const char **argv, >> + const char ***pathspec_argv, >> + struct string_list *group)

Re: [PATCH 0/7] submodule groups

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > I started from scratch as I think there were some sharp edges in the design. > My thinking shifted from "submodule groups" towards "actually it's just an > enhanced pathspec, called submodulespec". Except for minor things I mentioned separately,

Re: [PATCH 5/7] submodule--helper module_list_compute: allow label or name arguments

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > +static void split_argv_pathspec_groups(int argc, const char **argv, > +const char ***pathspec_argv, > +struct string_list *group) > +{ > + int i; > + struct argv_array ps

Re: [PATCH 4/7] submodule-config: check if a submodule is in a group

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > +static int in_group(int argc, const char **argv, const char *prefix) > + ... > + if (!group) > + list = git_config_get_value_multi("submodule.updateGroup"); > + else { > + string_list_split(_list, group, ',', -1); Is

Re: [PATCH 3/7] submodule-config: keep labels around

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > @@ -199,6 +203,7 @@ static struct submodule *lookup_or_create_by_name(struct > submodule_cache *cache, > submodule->update_strategy.command = NULL; > submodule->fetch_recurse = RECURSE_SUBMODULES_NONE; > submodule->ignore = NULL; > +

Re: [PATCH 2/7] submodule add: label submodules if asked to

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh > index 814ee63..0adc4e4 100755 > --- a/t/t7400-submodule-basic.sh > +++ b/t/t7400-submodule-basic.sh > @@ -1056,6 +1056,7 @@ test_expect_success 'submodule with UTF-8 name' ' > ' >

Re: [PATCH 1/7] submodule--helper: add valid-label-name

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > +static int submodule_valid_label_name(const char *label) > +{ > + if (!label || !strlen(label)) > + return 0; > + > + if (!isalnum(*label)) > + return 0; I'd limit this one to isalpha() if I were doing this to make the

[PATCH 7/7] clone: allow specification of submodules to be cloned

2016-05-10 Thread Stefan Beller
This allows to specify a subset of all available submodules to be initialized and cloned. It is unrelated to the `--recursive` option, i.e. the user may still want to give `--recursive` as an option. Originally `--recursive` implied to initialize all submodules, this changes as well with the new

[PATCH 4/7] submodule-config: check if a submodule is in a group

2016-05-10 Thread Stefan Beller
In later patches we need to tell if a submodule is in a group, so expose a handy test function in both C and shell. Signed-off-by: Stefan Beller --- builtin/submodule--helper.c | 42 +++- submodule-config.c | 50

[PATCH 6/7] submodule update: learn partial initialization

2016-05-10 Thread Stefan Beller
The new switch `--init-default-group` updates the submodules which are configured in `submodule.updateGroup` Signed-off-by: Stefan Beller --- Documentation/config.txt| 5 Documentation/git-submodule.txt | 4 ++-- git-submodule.sh| 14

[PATCH 3/7] submodule-config: keep labels around

2016-05-10 Thread Stefan Beller
We need the submodule labels in a later patch. Signed-off-by: Stefan Beller --- submodule-config.c | 16 submodule-config.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/submodule-config.c b/submodule-config.c index b82d1fb..0cdb47e 100644 ---

[PATCH 5/7] submodule--helper module_list_compute: allow label or name arguments

2016-05-10 Thread Stefan Beller
Additionally to taking a pathspec, `module_list_compute` will also take labels and submodule names, when these are prefixed by '*' and ':' respectively. `module_list_compute` is used by other functions in the submodule helper: * module_list, used by `submodule {deinit, status, sync, foreach}` *

[PATCH 1/7] submodule--helper: add valid-label-name

2016-05-10 Thread Stefan Beller
We could allow more than just alphanumeric and dash characters for submodule labels. As a precaution we'll first allow only this subset and later on we can extend it once we have more experience with them. Signed-off-by: Stefan Beller --- builtin/submodule--helper.c | 30

[PATCH 2/7] submodule add: label submodules if asked to

2016-05-10 Thread Stefan Beller
When adding new submodules, you can specify the labels the submodule belongs to by giving one or more --label arguments. This will record each label in the .gitmodules file as a value of the key "submodule.$NAME.label". Signed-off-by: Stefan Beller ---

[PATCH 0/7] submodule groups

2016-05-10 Thread Stefan Beller
I started from scratch as I think there were some sharp edges in the design. My thinking shifted from "submodule groups" towards "actually it's just an enhanced pathspec, called submodulespec". The meat is found in the last 3 patches. What is this series about? == If you

Re: wishlist; unify behavior while cloning non-bare repos over http to be in line with ssh/local

2016-05-10 Thread Yaroslav Halchenko
On Tue, 10 May 2016, Junio C Hamano wrote: > >> The necessary update to the client might be as simple as using > >> $GIVEN_URL/.git/ and attempting the request again after seeing the > >> probe for $GIVEN_URL/info/refs fails. > > Sure -- workarounds are possible,... > Just so that there is no

Re: [PATCH 7/7] worktree: simplify prefixing paths

2016-05-10 Thread Duy Nguyen
On Wed, May 11, 2016 at 6:07 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> Signed-off-by: Nguyễn Thái Ngọc Duy >> --- > > This changes semantics, doesn't it? prefix_filename() seems to do a > lot more than just

Re: [PATCH v3 05/13] worktree.c: mark current worktree

2016-05-10 Thread Duy Nguyen
On Wed, May 11, 2016 at 6:03 AM, Junio C Hamano wrote: > Duy Nguyen writes: > >> On second thought, why hold patches back, lengthen the worktree-move >> series and make it a pain to review? I moved a few patches from >> worktree-move into this series and I

Re: [PATCH 7/7] worktree: simplify prefixing paths

2016-05-10 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- This changes semantics, doesn't it? prefix_filename() seems to do a lot more than just strbuf_vadd("%s%s", prefix, filename); would do. It may be a good change (e.g. turn '\' into

Re: [PATCH v3 05/13] worktree.c: mark current worktree

2016-05-10 Thread Junio C Hamano
Duy Nguyen writes: > On second thought, why hold patches back, lengthen the worktree-move > series and make it a pain to review? I moved a few patches from > worktree-move into this series and I took two other out to create > nd/error-errno. So I'm going to take more patches

Re: [Bug?] log -p -W showing the whole file for a patch that adds to the end?

2016-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Just noticed a curiosity: > > $ git show -W 3e3ceaa58 quote.c > > shows the entire file. The commit in question adds a whole new > function at the end of the file. If I move that addition to just > before the last function the file already had

Re: wishlist; unify behavior while cloning non-bare repos over http to be in line with ssh/local

2016-05-10 Thread Junio C Hamano
Yaroslav Halchenko writes: >> The necessary update to the client might be as simple as using >> $GIVEN_URL/.git/ and attempting the request again after seeing the >> probe for $GIVEN_URL/info/refs fails. > > Sure -- workarounds are possible,... Just so that there is no

Re: wishlist; unify behavior while cloning non-bare repos over http to be in line with ssh/local

2016-05-10 Thread Yaroslav Halchenko
On Tue, 10 May 2016, Jacob Keller wrote: > > The necessary update to the client might as simple as using > > $GIVEN_URL/.git/ and attempting the request again after seeing the > > probe for $GIVEN_URL/info/refs fails. > I know at least Jenkin's Git plugin has a workaround to solve this > issue

Re: [PATCH v9 00/19] index-helper/watchman

2016-05-10 Thread Ramsay Jones
On 10/05/16 21:30, Junio C Hamano wrote: > Ramsay Jones writes: > >> On 10/05/16 12:52, Dennis Kaarsemaker wrote: >>> On ma, 2016-05-09 at 15:22 -0700, Junio C Hamano wrote: It passes on one box and fails on another. They both run the same Ubuntu 14.04

Re: [PATCH] test-lib: set BASH_XTRACEFD automatically

2016-05-10 Thread Junio C Hamano
Jeff King writes: > The patch itself is a trivial-looking one-liner, but there > are a few subtleties worth mentioning: > > - the variable is _not_ exported; the "set -x" is local to > our process, and so the tracefd should match > > - this line has to come after we do the

[Bug?] log -p -W showing the whole file for a patch that adds to the end?

2016-05-10 Thread Junio C Hamano
Just noticed a curiosity: $ git show -W 3e3ceaa58 quote.c shows the entire file. The commit in question adds a whole new function at the end of the file. If I move that addition to just before the last function the file already had before the change and amend the commit, "show -W" would

Re: [PATCH v2 00/33] Yet more preparation for reference backends

2016-05-10 Thread Junio C Hamano
Michael Haggerty writes: > ... I think I have addressed all of the points that were > brought up. Plus I fixed a pre-existing bug that I noticed myself > while adding some more tests; see the first bullet point below for > more information. > > Changes between v1 and v2: >

[PATCH] test-lib: set BASH_XTRACEFD automatically

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 02:13:26PM -0700, Junio C Hamano wrote: > > I don't think there is a scalable, portable way to do so. "-x" output is > > going to stderr, and is inherited by any functions or subshells. So > > either we have to ask "-x" output to go somewhere else, or we have to > > turn

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Eric Sunshine
On Tue, May 10, 2016 at 5:11 PM, Junio C Hamano wrote: > SZEDER Gábor writes: >> I wonder if is it really necessary to specify the path to the .git >> directory via $GIT_DIR. Would 'git --git-dir=/over/there' be just as >> good? > > Then you are testing two

Re: [PATCH 2/2] t3404: be resilient against running with the -x flag

2016-05-10 Thread Junio C Hamano
Jeff King writes: > On Tue, May 10, 2016 at 12:49:42PM -0700, Junio C Hamano wrote: > >> I wonder if we can fix "-x" instead so that we do not have to >> butcher tests like this patch does. It was quite clear what it >> expected to see before this patch, and it is sad that the

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Junio C Hamano
SZEDER Gábor writes: > I wonder if is it really necessary to specify the path to the .git > directory via $GIT_DIR. Would 'git --git-dir=/over/there' be just as > good? Then you are testing two different things that may go through different codepaths. Adding yet another

Re: syntax error in git-rebase while running t34* tests

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 01:53:56PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > I think it is clear why it works. If $strategy_opts is empty, then the > > code we generate looks like: > > > > for strategy_opt in > > do > > ... > > done > > Ah, of

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread SZEDER Gábor
Quoting Eric Sunshine : On Tue, May 10, 2016 at 3:12 PM, Eric Sunshine wrote: On Tue, May 10, 2016 at 2:39 PM, Jeff King wrote: On Tue, May 10, 2016 at 01:20:54AM -0400, Eric Sunshine wrote: while : do

Re: [PATCH 2/2] t3404: be resilient against running with the -x flag

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 12:49:42PM -0700, Junio C Hamano wrote: > I wonder if we can fix "-x" instead so that we do not have to > butcher tests like this patch does. It was quite clear what it > expected to see before this patch, and it is sad that the workaround > makes less readable (and

Re: syntax error in git-rebase while running t34* tests

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 12:11:59PM -0700, Junio C Hamano wrote: > Armin Kunaschik writes: > > > I fail to see why eval is really necessary here. > > It is necessary to work correctly with any strategy option with $IFS > in it, I would think. The calling script

Re: syntax error in git-rebase while running t34* tests

2016-05-10 Thread Junio C Hamano
Jeff King writes: > I think it is clear why it works. If $strategy_opts is empty, then the > code we generate looks like: > > for strategy_opt in > do > ... > done Ah, of course. Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 03:59:42PM -0400, Eric Sunshine wrote: > On Tue, May 10, 2016 at 3:48 PM, Eric Sunshine > wrote: > > Actually, I think we can have improved encapsulation and maintain > > readability like this: > > > > case "$1" in > > ... > > -g)

Re: wishlist; unify behavior while cloning non-bare repos over http to be in line with ssh/local

2016-05-10 Thread Jacob Keller
On Tue, May 10, 2016 at 1:11 PM, Junio C Hamano wrote: > Yaroslav Halchenko writes: > >> On Fri, 06 May 2016, Yaroslav Halchenko wrote: >> >>> Dear Git Folks, >> >>> Originally this issue was mentioned in previous thread [1], and I have >>> decided >>> to

Re: [PATCH v9 00/19] index-helper/watchman

2016-05-10 Thread Junio C Hamano
Ramsay Jones writes: > On 10/05/16 12:52, Dennis Kaarsemaker wrote: >> On ma, 2016-05-09 at 15:22 -0700, Junio C Hamano wrote: >>> It passes on one box and fails on another. They both run the same >>> Ubuntu 14.04 derivative, with same ext3 filesystem. The failing

Re: [PATCH 2/3] perf: make the tests work in worktrees

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > This patch makes perf-lib.sh more robust so that it can run correctly > even inside a worktree. For example, it assumed that $GIT_DIR/objects is > the objects directory (which is not the case for worktrees) and it used > the commondir

Re: [PATCH] Move test-* to t/helper/ subdirectory

2016-05-10 Thread Junio C Hamano
Duy Nguyen writes: > Or a simpler, more-to-the-point patch like this? I am OK with that, even though I find it a bit too "cute" for my taste. > -- 8< -- > Subject: [PATCH] wrap-for-bin.sh: regenerate bin-wrappers when switching > branches > > Commit e6e7530 (test helpers:

Re: wishlist; unify behavior while cloning non-bare repos over http to be in line with ssh/local

2016-05-10 Thread Junio C Hamano
Yaroslav Halchenko writes: > On Fri, 06 May 2016, Yaroslav Halchenko wrote: > >> Dear Git Folks, > >> Originally this issue was mentioned in previous thread [1], and I have >> decided >> to bring it into a separate thread. ATM there is a dichotomy in git behavior >>

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Junio C Hamano
Eric Sunshine writes: > On Tue, May 10, 2016 at 3:12 PM, Eric Sunshine > wrote: >> On Tue, May 10, 2016 at 2:39 PM, Jeff King wrote: >>> On Tue, May 10, 2016 at 01:20:54AM -0400, Eric Sunshine wrote: while :

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Eric Sunshine
On Tue, May 10, 2016 at 3:48 PM, Eric Sunshine wrote: > Actually, I think we can have improved encapsulation and maintain > readability like this: > > case "$1" in > ... > -g) env="$2"; shift; shift ;; > ... > esac > > ... >

Re: [PATCH 1/3] perf: let's disable symlinks on Windows

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > In Git for Windows' SDK, Git's source code is always checked out > with symlinks disabled. The reason is that POSIX symlinks have no > accurate equivalent on Windows [*1*]. More precisely, though, it is > not just Git's source code but

Re: [PATCH 2/2] t3404: be resilient against running with the -x flag

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > To: Junio C Hamano > Cc: git@vger.kernel.org Probably the above is the other way around. > The -x flag (trace commands) is a priceless tool when hunting down bugs > that trigger test failures. It is a worthless tool

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Eric Sunshine
On Tue, May 10, 2016 at 3:12 PM, Eric Sunshine wrote: > On Tue, May 10, 2016 at 2:39 PM, Jeff King wrote: >> On Tue, May 10, 2016 at 01:20:54AM -0400, Eric Sunshine wrote: >>> while : >>> do >>> case "$1" in >>> -C)

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Junio C Hamano
Eric Sunshine writes: >> I don't know if it's worth worrying about or not. The usual solution is >> something like: >> >> env_git_dir=$2 >> env='GIT_DIR=$env_git_dir; export GIT_DIR' >> ... >> eval "$env" > > Makes sense; I wasn't quite happy with having $2

Re: diff --break-rewrites for just a part of a file

2016-05-10 Thread Junio C Hamano
Sascha Silbe writes: > A combination of --break-rewrites and --inter-hunk-context that merges > changes with less than the given number of unchanged lines between them > into a single delete/insert change would be even better. But just > ignoring the

Re: syntax error in git-rebase while running t34* tests

2016-05-10 Thread Junio C Hamano
Armin Kunaschik writes: > I fail to see why eval is really necessary here. It is necessary to work correctly with any strategy option with $IFS in it, I would think. The calling script "git-rebase" accumulates --strategy-option values after passing each of them

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Eric Sunshine
On Tue, May 10, 2016 at 2:39 PM, Jeff King wrote: > On Tue, May 10, 2016 at 01:20:54AM -0400, Eric Sunshine wrote: >> diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh >> @@ -7,11 +7,13 @@ test_description='test git rev-parse' >> while : >> do >>

Re: wishlist; unify behavior while cloning non-bare repos over http to be in line with ssh/local

2016-05-10 Thread Yaroslav Halchenko
On Fri, 06 May 2016, Yaroslav Halchenko wrote: > Dear Git Folks, > Originally this issue was mentioned in previous thread [1], and I have decided > to bring it into a separate thread. ATM there is a dichotomy in git behavior > between cloning non-bare repos: if I clone over ssh or just

Re: [PATCH 5/6] t1500: avoid setting environment variables outside of tests

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 01:20:54AM -0400, Eric Sunshine wrote: > diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh > index c058aa4..525e6d3 100755 > --- a/t/t1500-rev-parse.sh > +++ b/t/t1500-rev-parse.sh > @@ -7,11 +7,13 @@ test_description='test git rev-parse' > test_rev_parse () { >

Re: [PATCH 0/6] modernize t1500

2016-05-10 Thread Junio C Hamano
Eric Sunshine writes: > t1500: test_rev_parse: facilitate future test enhancements > t1500: reduce dependence upon global state > t1500: avoid changing working directory outside of tests > t1500: avoid setting configuration options outside of tests > t1500:

Re: [PATCH 0/6] modernize t1500

2016-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Junio C Hamano writes: > >> Eric Sunshine writes: >> >>> This series modernizes t1500; it takes an entirely different approach >>> than [1][2] and is intended to replace that series. >> >> Turns out that it

Re: is ORIG_HEAD allowed to point to a non-existing object?

2016-05-10 Thread Junio C Hamano
Christian Halstrick writes: > If I do a "git-rebase -i ..." followed by "git reflog expire ..." and > "git gc ..." then I can end up with a repo which has a ref ORIG_HEAD > which points to a non-existing object. > > - Is this intended? Yes. HEAD is a ref, but

Re: [PATCH 0/6] modernize t1500

2016-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Eric Sunshine writes: > >> This series modernizes t1500; it takes an entirely different approach >> than [1][2] and is intended to replace that series. > > Turns out that it wasn't so painful after all. > > The only small

Re: [PATCH 4/6] t1500: avoid setting configuration options outside of tests

2016-05-10 Thread Junio C Hamano
Eric Sunshine writes: >> diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh >> @@ -6,15 +6,25 @@ test_description='test git rev-parse' >> + case "$bare" in >> ... >> + u*) bare="test_unconfig $dir core.bare" ;; >> + *) error "test_rev_parse:

Re: [PATCH] Windows: only add a no-op pthread_sigmask() when needed

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > In f924b52 (Windows: add pthread_sigmask() that does nothing, > 2016-05-01), we introduced a no-op for Windows. However, this breaks > building Git in Git for Windows' SDK because pthread_sigmask() is > already a no-op there, #define'd in

Re: [PATCH v9 00/19] index-helper/watchman

2016-05-10 Thread Dennis Kaarsemaker
On di, 2016-05-10 at 19:28 +0200, Dennis Kaarsemaker wrote: > On ma, 2016-05-09 at 15:32 -0700, Junio C Hamano wrote: > > > > Junio C Hamano writes: > > > > > > > > > > > David Turner writes: > > > > > > > > > > > > > > > On Mon, 2016-05-09 at

Re: [PATCH v8 3/3] submodule: ensure that -c http.extraheader is heeded

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > To support this developer's use case of allowing build agents token-based > access to private repositories, we introduced the http.extraheader > feature, allowing extra HTTP headers to be sent along with every HTTP > request. > > This

Re: [PATCH v8 2/3] t5551: make the test for extra HTTP headers more robust

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > To test that extra HTTP headers are passed correctly, t5551 verifies that > a fetch succeeds when two required headers are passed, and that the fetch > does not succeed when those headers are not passed. > > However, this test would also

Re: [PATCH v3 05/13] worktree.c: mark current worktree

2016-05-10 Thread Junio C Hamano
Duy Nguyen writes: > On second thought, why hold patches back, lengthen the worktree-move > series and make it a pain to review? I moved a few patches from > worktree-move into this series and I took two other out to create > nd/error-errno. So I'm going to take more patches

Re: [PATCH v8 1/3] tests: adjust the configuration for Apache 2.2

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > Lars Schneider noticed that the configuration introduced to test the > extra HTTP headers cannot be used with Apache 2.2 (which is still > actively maintained, as pointed out by Junio Hamano). > > To let the tests pass with Apache 2.2

syntax error in git-rebase while running t34* tests

2016-05-10 Thread Armin Kunaschik
Hello, I noticed in my environment (AIX, ksh) that all rebase tests don't work. git-rebase terminates with git-rebase[6]: Syntax error at line 3 : `newline or ;' is not expected. Digging deeper I found the problem in git-rebase--interactive line 85

Re: [PATCH v9 00/19] index-helper/watchman

2016-05-10 Thread Dennis Kaarsemaker
On ma, 2016-05-09 at 15:32 -0700, Junio C Hamano wrote: > Junio C Hamano writes: > > > > > David Turner writes: > > > > > > > > On Mon, 2016-05-09 at 14:40 -0700, Junio C Hamano wrote: > > > > > > > > Hmmm, I seem to be getting > > > > > > > >   

Re: [PATCH v2 0/2] Support marking .git/ (or all files) as hidden on Windows

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > Hi Junio, > > On Mon, 9 May 2016, Junio C Hamano wrote: > >> Johannes Schindelin writes: >> >> > This is a heavily version of patches we carried in Git for Windows for > > s/patches/patched/ > > I wish I had

Re: [PATCH v9 03/19] index-helper: new daemon for caching index and related stuff

2016-05-10 Thread David Turner
Will do, thanks. On Tue, 2016-05-10 at 12:13 +0200, SZEDER Gábor wrote: > This patch adds a new plumbing command, which then will show up in > completion after 'git '. Could you please squash in this > oneliner to exclude index-helper from porcelain commands in the > completion script? > > >

Re: [PATCH v2 1/2] mingw: introduce the 'core.hideDotFiles' setting

2016-05-10 Thread Junio C Hamano
Johannes Schindelin writes: > On Mon, 9 May 2016, Junio C Hamano wrote: > >> Johannes Schindelin writes: >> >> > +core.hideDotFiles:: >> > + (Windows-only) If true, mark newly-created directories and files whose >> > + name starts with

Re: [PATCH v4 2/2] travis-ci: build documentation

2016-05-10 Thread Junio C Hamano
larsxschnei...@gmail.com writes: > From: Lars Schneider > > Build documentation as separate Travis CI job to check for > documentation errors. > > Signed-off-by: Lars Schneider > --- > .travis.yml | 15 +++ >

Re: What's cooking in git.git (May 2016, #02; Fri, 6)

2016-05-10 Thread Junio C Hamano
Lars Schneider writes: > A version with at least one section error is here: > http://article.gmane.org/gmane.comp.version-control.git/293521 > Should I fix and reroll this patch? I just compared this with jc/linkgit-fix, which was done until the script introduced by

diff --break-rewrites for just a part of a file

2016-05-10 Thread Sascha Silbe
Hello, the other day I was reviewing a patch that replaced a large chunk in a Makefile with completely different logic. No matter what diff algorithm and options I threw at it, the diff would always synchronise at the empty lines between individual targets and thus show the rewrite of a larger

[PATCH 3/3] Add a perf test for rebase -i

2016-05-10 Thread Johannes Schindelin
This developer spent a lot of time trying to speed up the interactive rebase, in particular on Windows. And will continue to do so. To make it easier to demonstrate the performance improvement, let's have a reproducible performance test. The topic branch we use to test performance was found

[PATCH 2/3] perf: make the tests work in worktrees

2016-05-10 Thread Johannes Schindelin
This patch makes perf-lib.sh more robust so that it can run correctly even inside a worktree. For example, it assumed that $GIT_DIR/objects is the objects directory (which is not the case for worktrees) and it used the commondir file verbatim, even if it contained a relative path. Signed-off-by:

[PATCH 1/3] perf: let's disable symlinks on Windows

2016-05-10 Thread Johannes Schindelin
In Git for Windows' SDK, Git's source code is always checked out with symlinks disabled. The reason is that POSIX symlinks have no accurate equivalent on Windows [*1*]. More precisely, though, it is not just Git's source code but *all* source code that is checked out with symlinks disabled:

[PATCH 0/3] Introduce a perf test for interactive rebase

2016-05-10 Thread Johannes Schindelin
This is the second preparatory patch series for my rebase--helper work (i.e. moving parts of the interactive rebase into a builtin). It simply introduces a perf test (and ensures that it runs in my environment) so as to better determine how much the performance changes, really. Johannes

Re: [PATCH v9 00/19] index-helper/watchman

2016-05-10 Thread Ramsay Jones
On 10/05/16 12:52, Dennis Kaarsemaker wrote: > On ma, 2016-05-09 at 15:22 -0700, Junio C Hamano wrote: >> It passes on one box and fails on another. They both run the same >> Ubuntu 14.04 derivative, with same ext3 filesystem. The failing one >> is on a VM. > > Same here, except ext4 instead

[PATCH 3/5] worktree.c: add is_worktree_locked()

2016-05-10 Thread Nguyễn Thái Ngọc Duy
This provides an API for checking if a worktree is locked. We need to check this to avoid double locking a worktree, or try to unlock one when it's not even locked. Signed-off-by: Nguyễn Thái Ngọc Duy --- worktree.c | 18 ++ worktree.h | 6 ++ 2 files

[PATCH 4/5] worktree: add "lock" command

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-worktree.txt | 12 -- builtin/worktree.c | 41 ++ contrib/completion/git-completion.bash | 5 - t/t2028-worktree-move.sh (new +x) | 34

[PATCH 5/5] worktree: add "unlock" command

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-worktree.txt | 5 + builtin/worktree.c | 31 +++ contrib/completion/git-completion.bash | 2 +- t/t2028-worktree-move.sh | 14 ++ 4

[PATCH 2/5] worktree.c: add is_main_worktree()

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Main worktree _is_ different. You can lock a linked worktree but not the main one, for example. Provide an API for checking that. Signed-off-by: Nguyễn Thái Ngọc Duy --- worktree.c | 5 + worktree.h | 5 + 2 files changed, 10 insertions(+) diff --git a/worktree.c

[PATCH 1/5] worktree.c: add find_worktree_by_path()

2016-05-10 Thread Nguyễn Thái Ngọc Duy
So far we haven't needed to identify an existing worktree from command line. Future commands such as lock or move will need it. There are of course other options for identifying a worktree, for example by branch or even by internal id. They may be added later if proved useful. Signed-off-by:

[PATCH 1/7] completion: support git-worktree

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- contrib/completion/git-completion.bash | 23 +++ 1 file changed, 23 insertions(+) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 3402475..d3ac391 100644 ---

[PATCH 6/7] worktree: avoid 0{40}, too many zeroes, hard to read

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/worktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/worktree.c b/builtin/worktree.c index aaee0e2..b53f802 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -262,7 +262,7 @@ static int

[PATCH 4/7] worktree.c: use is_dot_or_dotdot()

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/worktree.c | 2 +- worktree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/worktree.c b/builtin/worktree.c index bf80111..aaee0e2 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c

[PATCH 5/7] worktree.c: add clear_worktree()

2016-05-10 Thread Nguyễn Thái Ngọc Duy
The use case is keep some worktree and discard the rest of the worktree list. Signed-off-by: Nguyễn Thái Ngọc Duy --- worktree.c | 14 +++--- worktree.h | 5 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/worktree.c b/worktree.c index

[PATCH 2/7] worktree.c: rewrite mark_current_worktree() to avoid strbuf

2016-05-10 Thread Nguyễn Thái Ngọc Duy
strbuf is a bit overkill for this function. What we need is call absolute_path() twice and make sure the second call does not destroy the result of the first. One buffer allocation is enough. Signed-off-by: Nguyễn Thái Ngọc Duy --- worktree.c | 16 +++- 1 file

[PATCH 3/7] git-worktree.txt: keep subcommand listing in alphabetical order

2016-05-10 Thread Nguyễn Thái Ngọc Duy
This is probably not the best order. But it makes it no-brainer to know where to insert new commands. At some point we might want to reorder at least the synopsis part again, grouping commonly use subcommands together. Signed-off-by: Nguyễn Thái Ngọc Duy ---

[PATCH 7/7] worktree: simplify prefixing paths

2016-05-10 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/worktree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/worktree.c b/builtin/worktree.c index b53f802..f9dac37 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -337,7 +337,7 @@ static

[PATCH 2/2] t3404: be resilient against running with the -x flag

2016-05-10 Thread Johannes Schindelin
The -x flag (trace commands) is a priceless tool when hunting down bugs that trigger test failures. It is a worthless tool if the -x flag *itself* triggers test failures. So let's change the offending tests so that they are a bit less stringent and do not stumble over the "+..." lines generated

Re: [PATCH v3 05/13] worktree.c: mark current worktree

2016-05-10 Thread Duy Nguyen
On Fri, May 06, 2016 at 05:21:05PM +0700, Duy Nguyen wrote: > > Similarly, it looks like 'path' doesn't need to be a strbuf at all > > since the result of absolute_path() should remain valid long enough > > for fspathcmp(). It could just be: > > > > const char *path = absolute_path(...); > >

[PATCH 1/2] t3404: fix typo

2016-05-10 Thread Johannes Schindelin
Signed-off-by: Johannes Schindelin --- t/t3404-rebase-interactive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index d96d0e4..66348f1 100755 --- a/t/t3404-rebase-interactive.sh +++

[PATCH 0/2] Work on t3404 in preparation for rebase--helper

2016-05-10 Thread Johannes Schindelin
This is the first patch series in preparation for a faster interactive rebase. It actually only prepares the test script that I mainly used to develop the rebase--helper, and the resilience against running with -x proved to be invaluable in keeping my sanity. Johannes Schindelin (2): t3404:

Re: t4151 missing quotes

2016-05-10 Thread Jeff King
On Tue, May 10, 2016 at 03:44:32PM +0200, Armin Kunaschik wrote: > I'm building on a quite current AIX 6.1 where /bin/sh defaults to /bin/ksh > which is a posix shell (ksh88). > Using /bin/bash doesn't work because SHELL_PATH is only used in > git scripts but not in any t* test scripts. If you

Re: t4151 missing quotes

2016-05-10 Thread Armin Kunaschik
Sorry for any duplicate mails, the list blocked my html mail. Note to self: Don't use GMail on a tablet. On Mon, May 9, 2016 at 11:35 PM, Eric Sunshine wrote: >> >> Hmph, do we have a broken &&-chain? > > I don't know. Unfortunately, Armin didn't provide much information

[PATCH] Windows: only add a no-op pthread_sigmask() when needed

2016-05-10 Thread Johannes Schindelin
In f924b52 (Windows: add pthread_sigmask() that does nothing, 2016-05-01), we introduced a no-op for Windows. However, this breaks building Git in Git for Windows' SDK because pthread_sigmask() is already a no-op there, #define'd in the pthread_signal.h header in

Re: [PATCH v9 00/19] index-helper/watchman

2016-05-10 Thread Duy Nguyen
On Tue, May 10, 2016 at 7:45 PM, Duy Nguyen wrote: > If --detach is used, log_warning() can't cover die(), > warning() or error(), most importantly die() for example because of > bugs. A case for redirecting warning() is because watchman-support.c uses it. But because this

  1   2   >