[PATCHv1] git-p4: workaround p4 removal of client directory

2016-04-29 Thread Luke Diamand
On some platforms, "p4 sync -f" will remove the workspace directory after we have just created it; on some it won't. This causes problems later when git finds itself in an orphaned directory. Workaround this by cd'ing back to the directory after the "p4 sync -f". Signed-off-by: Luke Diamand ---

[PATCHv1] git-p4: workaround p4 removal of client directory

2016-04-29 Thread Luke Diamand
This is a proposed fix for the problem reported by Jacob on OSX where "p4 sync -f" removes the client directory. http://www.spinics.net/lists/git/msg274356.html I tried just moving the "cd", but lots of the tests then fail as the "p4 sync" needs to be in the correct directory. Luke Diamand (1):

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Michael Haggerty
On 04/27/2016 08:55 PM, Junio C Hamano wrote: > Michael Haggerty writes: > >> @@ -2380,8 +2381,8 @@ int rename_ref(const char *oldrefname, const char >> *newrefname, const char *logms >> goto rollback; >> } >> >> -if (!read_ref_full(newrefname, RESOLVE_REF_READING, sha1,

Re: [PATCHv1] git-p4: workaround p4 removal of client directory

2016-04-29 Thread Luke Diamand
Adding correct email for Jacob. On 29 April 2016 at 08:40, Luke Diamand wrote: > On some platforms, "p4 sync -f" will remove the workspace > directory after we have just created it; on some it won't. > This causes problems later when git finds itself in an > orphaned directory. > > Workaround thi

Re: [PATCH 24/29] ref_transaction_update(): check refname_is_safe() at a minimum

2016-04-29 Thread Michael Haggerty
On 04/27/2016 10:14 PM, Junio C Hamano wrote: > Michael Haggerty writes: > >> If the user has asked that a new value be set for a reference, we use >> check_refname_format() to verify that the reference name satisfies all >> of the rules. But in other cases, at least check that refname_is_safe().

Re: [PATCH 15/29] ref_transaction_create(): disallow recursive pruning

2016-04-29 Thread Junio C Hamano
Michael Haggerty writes: > But I think it would be cleaner to achieve that goal with the following > change: > > diff --git a/refs.c b/refs.c > index 5dc2473..1d4c12a 100644 > --- a/refs.c > +++ b/refs.c > @@ -790,8 +790,10 @@ int ref_transaction_update(struct ref_transaction > *transaction, >

Re: [PATCH 15/29] ref_transaction_create(): disallow recursive pruning

2016-04-29 Thread Junio C Hamano
Two things I forgot to say. Michael Haggerty writes: > I was thinking of this patch as documenting and enforcing a limitation > in the current implementation of pruning. This actually is an excellent point, and is the reason why I repeatedly made my suggestion conditional on "If my understandin

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Junio C Hamano
Michael Haggerty writes: >> Could you explain s/sha1/NULL/ here in the proposed log message? > > Good question. > > Passing sha1 to delete_ref() doesn't add any safety, because the same > sha1 was just read a moment before, and it is not used for anything > else. "... and it is guaranteed that n

Re: [PATCH 24/29] ref_transaction_update(): check refname_is_safe() at a minimum

2016-04-29 Thread Junio C Hamano
Michael Haggerty writes: > On 04/27/2016 10:14 PM, Junio C Hamano wrote: >> Michael Haggerty writes: >> >>> If the user has asked that a new value be set for a reference, we use >>> check_refname_format() to verify that the reference name satisfies all >>> of the rules. But in other cases, at l

[PATCH v2] travis-ci: build documentation

2016-04-29 Thread larsxschneider
From: Lars Schneider Run "make doc" as separate Travis CI build job to check if all documentation can be built without errors. Signed-off-by: Lars Schneider --- diff to v1: * add quick sanity check to documentation results (thanks Matthieu) * fix typo in commits message (thanks Stefan) * move

Re: [PATCH 25/29] refs: resolve symbolic refs first

2016-04-29 Thread Michael Haggerty
On 04/29/2016 01:40 AM, David Turner wrote: > On Wed, 2016-04-27 at 18:57 +0200, Michael Haggerty wrote: > +retry: > ... >> +if (--attempts_remaining > 0) >> +goto retry; > > could this be a loop instead of using gotos? It certainly could. The goto-vs-loop question

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Michael Haggerty
On 04/29/2016 10:53 AM, Junio C Hamano wrote: > Michael Haggerty writes: > >>> Could you explain s/sha1/NULL/ here in the proposed log message? >> >> Good question. >> >> Passing sha1 to delete_ref() doesn't add any safety, because the same >> sha1 was just read a moment before, and it is not use

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 12:57:29PM +0200, Michael Haggerty wrote: > Remember, we're talking about rename_ref() only, not reference deletion > in general. rename_ref() is not very robust anyway--it doesn't happen in > a single transaction, and it is vulnerable to being defeated by > simultaneous re

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 11:35:34AM +0200, larsxschnei...@gmail.com wrote: > +# The follow numbers need to be adjusted when new documentation is added. > +test_file_count html 233 > +test_file_count xml 171 > +test_file_count 1 152 This seems like it will be really flaky and a pain in the future.

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Matthieu Moy
Jeff King writes: > On Fri, Apr 29, 2016 at 11:35:34AM +0200, larsxschnei...@gmail.com wrote: > >> +# The follow numbers need to be adjusted when new documentation is added. >> +test_file_count html 233 >> +test_file_count xml 171 >> +test_file_count 1 152 > > This seems like it will be really fl

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Johannes Schindelin
Hi Peff, On Thu, 28 Apr 2016, Jeff King wrote: > On Thu, Apr 28, 2016 at 12:28:21PM -0700, Junio C Hamano wrote: > > > Jeff King writes: > > > > > It's definitely sufficient, it's just annoying if a user shows up > > > every week and says "I want X.Y", and then somebody else shows up a > > > w

git-subtree checkout under alternate foldername (git version 2.8.1.windows.1)

2016-04-29 Thread termnml tml
Hi people. I want to creat a git repo with two upstreams. The first is the root of JointsWP (https://github.com/JeremyEnglert/JointsWP ) going straight to my root (repo /). No problem with this upstream-jointswp. The second is the sub dir /templates of WooComerce ( https://github.com/woothemes/w

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Johannes Schindelin
Hi Junio, On Thu, 28 Apr 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > - if (starts_with(var, "credential.")) > > + if (starts_with(var, "credential.") || > > + (starts_with(var, "http.") && > > + ends_with(var, ".extraheader"))

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Johannes Schindelin
Hi Junio, On Fri, 29 Apr 2016, Johannes Schindelin wrote: > On Thu, 28 Apr 2016, Junio C Hamano wrote: > > > Johannes Schindelin writes: > > > > > - if (starts_with(var, "credential.")) > > > + if (starts_with(var, "credential.") || > > > + (starts_with(var, "http."

Fwd: Git 2.8.1 fails test 32 of t7300-clean.sh, breaks profile build

2016-04-29 Thread Jan Keromnes
Hello, I tried running a full profile build of Git 2.8.1, but it looks like test #32 in `t7300-clean.sh` fails: Commands: > curl https://www.kernel.org/pub/software/scm/git/git-2.8.1.tar.xz | tar xJ > cd git-2.8.1 > make prefix=/usr profile-install install-man -j18 Logs of test-suite that fails

Re: Fwd: Git 2.8.1 fails test 32 of t7300-clean.sh, breaks profile build

2016-04-29 Thread Johannes Schindelin
Hi Jan, On Fri, 29 Apr 2016, Jan Keromnes wrote: > I tried running a full profile build of Git 2.8.1, but it looks like > test #32 in `t7300-clean.sh` fails: > > Commands: > > > curl https://www.kernel.org/pub/software/scm/git/git-2.8.1.tar.xz | tar xJ > > cd git-2.8.1 > > make prefix=/usr prof

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 02:48:44PM +0200, Johannes Schindelin wrote: > > If you know off-hand how to teach my vim to use your preferred indenting, > > I'll gladly just brow-beat it into submission. > > For the record, I think the default in vim is to indent two tabs after an > unclosed parenthesi

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 02:29:25PM +0200, Johannes Schindelin wrote: > The more I think about it, I actually think that we do the user a *really* > great disservice by filtering the CONFIG_DATA_ENVIRONMENT. If I call > > git -c ... $cmd > > and that configuration is *not* picked up, it is

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Jeff King
On Thu, Apr 28, 2016 at 03:44:50PM -0700, Junio C Hamano wrote: > > I do not think "fetch" should grow submodule-specific > > options,... > > The updated "git fetch" needs to grow submodule-specific options to > at least either enable or disable "recurse into submodules", and > that is true even

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Michael Haggerty
On 04/29/2016 02:12 PM, Jeff King wrote: > On Fri, Apr 29, 2016 at 12:57:29PM +0200, Michael Haggerty wrote: > >> Remember, we're talking about rename_ref() only, not reference deletion >> in general. rename_ref() is not very robust anyway--it doesn't happen in >> a single transaction, and it is v

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 03:55:00PM +0200, Michael Haggerty wrote: > It's beyond the ambition of this patch to fix this old rename_ref() > code, but... > [...] Thanks for the explanation. That all makes sense to me, and I can definitely live with "historical warts that aren't worth touching in thi

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 12:23:57AM -0600, Brian Norris wrote: > This should handle .gitconfig files that specify things like: > > [http] > cookieFile = "~/.gitcookies" Seems like a good idea, and the implementation looks obviously correct. For the documentation: > diff --git a/Documentat

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Lars Schneider
> On 29 Apr 2016, at 14:21, Matthieu Moy wrote: > > Jeff King writes: > >> On Fri, Apr 29, 2016 at 11:35:34AM +0200, larsxschnei...@gmail.com wrote: >> >>> +# The follow numbers need to be adjusted when new documentation is added. >>> +test_file_count html 233 >>> +test_file_count xml 171 >>>

Re: [PATCH v2 1/4] rev-parse: fix some options when executed from subpath of main tree

2016-04-29 Thread SZEDER Gábor
[Resend to list, sorry for the duplicates.] > Executing `git-rev-parse` with `--git-common-dir`, `--git-path `, > or `--shared-index-path` from the root of the main worktree results in > a relative path to the git dir. > > When executed from a subdirectory of the main tree, however, it incorrectl

Re: [PATCH v2 2/4] t1500-rev-parse: add tests executed from sub path of the main worktree

2016-04-29 Thread SZEDER Gábor
[Resend to list, sorry for the duplicates.] > Signed-off-by: Michael Rappazzo > --- > t/t1500-rev-parse.sh | 37 + > 1 file changed, 37 insertions(+) > > diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh > index 48ee077..1e220f7 100755 > --- a/t/t1500-

Re: [PATCH v2 3/4] t2027-worktree-list: add and adjust tests related to git-rev-parse

2016-04-29 Thread SZEDER Gábor
[Resend to list, sorry for the duplicates...] > Adjust the incorrect expectation for `rev-parse --git-common-dir`. > > Add a test for `git rev-parse --git-path` executed from a linked > worktree. > > Signed-off-by: Michael Rappazzo > --- > t/t2027-worktree-list.sh | 10 +- > 1 file cha

Re: [PATCH 15/29] ref_transaction_create(): disallow recursive pruning

2016-04-29 Thread Michael Haggerty
On 04/29/2016 10:41 AM, Junio C Hamano wrote: > [...Long, thoughtful comments omitted...] > So perhaps your original might be the best version > among those that have been discussed in this thread. Very well. I'll also add a comment near the definition of REF_ISPRUNING that it must only be used to

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 04:22:05PM +0200, Lars Schneider wrote: > >>> +# The follow numbers need to be adjusted when new documentation is added. > >>> +test_file_count html 233 > >>> +test_file_count xml 171 > >>> +test_file_count 1 152 > [...] > I agree, too. I wasn't sure about this check. That'

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Matthieu Moy
larsxschnei...@gmail.com writes: > + before_install: > + before_script: make doc > + script: ci/test-documentation.sh If you are to re-roll, I think before_script and script should be merged, i.e. just write script: ci/test-documentation.sh and have ci/test-documentation.sh be:

[PATCH v8 03/10] t0027: test cases for combined attributes

2016-04-29 Thread tboegi
From: Torsten Bögershausen Add more test cases for the not normalized files ("NNO"). The "text" attribute is most important, use it as the first parameter. "ident", if set, is the second paramater followed by the eol attribute. The eol attribute overrides core.autocrlf, which overrides core.eol.

[PATCH v8 07/10] convert: unify the "auto" handling of CRLF

2016-04-29 Thread tboegi
From: Torsten Bögershausen Before this change, $ echo "* text=auto" >.gitattributes $ echo "* eol=crlf" >>.gitattributes would have the same effect as $ echo "* text" >.gitattributes $ git config core.eol crlf Having an "eol" attribute is taken as a declaration that the path is text. This may

[PATCH v8 02/10] convert: allow core.autocrlf=input and core.eol=crlf

2016-04-29 Thread tboegi
From: Torsten Bögershausen Even though the configuration parser errors out when core.autocrlf is set to 'input' when core.eol is set to 'crlf', there is no need to do so, because the core.autocrlf setting trumps core.eol. Allow all combinations of core.crlf and core.eol and document that core.au

[PATCH v8 01/10] t0027: make commit_chk_wrnNNO() reliable

2016-04-29 Thread tboegi
From: Torsten Bögershausen When the content of a commited file is unchanged and the attributes are changed, Git may not detect that the next commit must treat the file as changed. This happens when lstat() doesn't detect a change, since neither inode, mtime nor size are changed. Add a single "Z

[PATCH v8 05/10] read-cache: factor out get_sha1_from_index() helper

2016-04-29 Thread tboegi
From: Torsten Bögershausen Factor out the retrieval of the sha1 for a given path in read_blob_data_from_index() into the function get_sha1_from_index(). This will be used in the next commit, when convert.c can do the analyze for "text=auto" without slurping the whole blob into memory at once. A

[PATCH v8 06/10] convert.c: stream and early out

2016-04-29 Thread tboegi
From: Torsten Bögershausen When statistics are done for the autocrlf handling, the search in the content can be stopped, if e.g - a search for binary is done, and a NUL character is found - a search for CRLF is done, and the first CRLF is found. Similar when statistics for binary vs non-binary a

[PATCH v8 10/10] ce_compare_data() did not respect conversion

2016-04-29 Thread tboegi
From: Torsten Bögershausen We define the working tree file is clean if either: * the result of running convert_to_git() on the working tree contents matches what is in the index (because that would mean doing another "git add" on the path is a no-op); OR * the result of running conv

[PATCH v8 04/10] convert.c: ident + core.autocrlf didn't work

2016-04-29 Thread tboegi
From: Torsten Bögershausen When the ident attributes is set, get_stream_filter() did not obey core.autocrlf=true, and the file was checked out with LF. Change the rule when a streaming filter can be used: - if an external filter is specified, don't use a stream filter. - if the worktree eol is C

[PATCH v8 08/10] convert.c: more safer crlf handling with text attribute

2016-04-29 Thread tboegi
From: Torsten Bögershausen This patch extends the work done in commit c480539: "Make it work also for un-normalized repositories". Make sure that CRLF can be converted round trip, or don't convert them at all. The old handling would treat a file as unchanged after checkout, as long as it is not

[PATCH v8 09/10] t6038; use crlf on all platforms

2016-04-29 Thread tboegi
From: Torsten Bögershausen t6038 uses different code, dependig if NATIVE_CRLF is set ot not. When the native line endings are LF, merge.renormalize is not tested very well. Change the test to always use CRLF by setting core.eol=crlf. After doing so, the test fails: rm '.gitattributes' rm 'contro

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread Junio C Hamano
Michael Haggerty writes: > On 04/29/2016 02:12 PM, Jeff King wrote: >> On Fri, Apr 29, 2016 at 12:57:29PM +0200, Michael Haggerty wrote: >> >>> Remember, we're talking about rename_ref() only, not reference deletion >>> in general. rename_ref() is not very robust anyway--it doesn't happen in >>>

Re: [PATCH 29/29] lock_ref_sha1_basic(): only handle REF_NODEREF mode

2016-04-29 Thread Junio C Hamano
Michael Haggerty writes: > Now lock_ref_sha1_basic() is only called with flags==REF_NODEREF. So we > don't have to handle other cases anymore. > > This enables several simplifications, the most interesting of which come > from the fact that ref_lock::orig_ref_name is now always the same as > ref_

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Brian Norris
On Fri, Apr 29, 2016 at 10:12:12AM -0400, Jeff King wrote: > On Fri, Apr 29, 2016 at 12:23:57AM -0600, Brian Norris wrote: > > > This should handle .gitconfig files that specify things like: > > > > [http] > > cookieFile = "~/.gitcookies" > > Seems like a good idea, and the implementation lo

Re: [PATCH v5 2/2] submodule: pass on http.extraheader config settings

2016-04-29 Thread Johannes Schindelin
Hi Peff, On Fri, 29 Apr 2016, Jeff King wrote: > On Fri, Apr 29, 2016 at 02:48:44PM +0200, Johannes Schindelin wrote: > > > > If you know off-hand how to teach my vim to use your preferred indenting, > > > I'll gladly just brow-beat it into submission. > > > > For the record, I think the defaul

[PATCH] t9824: fix wrong reference value

2016-04-29 Thread Lars Schneider
0492eb4 fixed a broken &&-chain in this test which broke the test as it checked for a wrong size. The expected size of the file under test is 39 bytes. The test checked that the size is 13 bytes. Fix the reference value to make the test pass, again. Signed-off-by: Lars Schneider --- t/t9824-git-

Re: [RFC PATCH 2/3] connect: group CONNECT_DIAG_URL handling code

2016-04-29 Thread Junio C Hamano
Mike Hommey writes: > Signed-off-by: Mike Hommey I feel that this commit is under-explained. I think you should feel entitled to boast the goodness this brings to us louder in the log message. It bothers me somewhat that this ended up copying, not moving, a bit of code to call get-host-and-po

Re: [RFC PATCH 3/3] connect: move ssh command line preparation to a separate (public) function

2016-04-29 Thread Junio C Hamano
Mike Hommey writes: > Signed-off-by: Mike Hommey > --- I think moving it out into a separate helper function is a very good change to make the end result easier to follow. Turning the helper to extern and adding it to connect.h does not benefit us (and [PATCH 1/3] doesn't, either). And in the

Re: [PATCHv2 1/2] submodule init: fail gracefully with a missing .gitmodules file

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > When there is no .gitmodules file availabe to initialize a submodule > from, `submodule_from_path` just returns NULL. We need to check for > that and abort gracefully. When `submodule init` was implemented in shell, > a missing .gitmodules file would result in an error mes

Re: Git 2.8.1 fails test 32 of t7300-clean.sh, breaks profile build

2016-04-29 Thread Stefan Beller
On Fri, Apr 29, 2016 at 5:53 AM, Jan Keromnes wrote: > Hello, > > I tried running a full profile build of Git 2.8.1, but it looks like > test #32 in `t7300-clean.sh` fails: > > Commands: > >> curl https://www.kernel.org/pub/software/scm/git/git-2.8.1.tar.xz | tar xJ >> cd git-2.8.1 >> make prefix=

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Junio C Hamano
Jeff King writes: > I'm not sure if it's a good idea to go into so much detail about > expand_user_path() here. There are a lot of options that use the same > rules, and we probably don't want to go into a complete explanation > inside each option's description. Is there a canonical definition of

Re: [RFC PATCH 2/3] connect: group CONNECT_DIAG_URL handling code

2016-04-29 Thread Junio C Hamano
Junio C Hamano writes: > Mike Hommey writes: > >> Signed-off-by: Mike Hommey > > I feel that this commit is under-explained. I think you should feel > entitled to boast the goodness this brings to us louder in the log > message. > > It bothers me somewhat that this ended up copying, not moving

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 10:11:48AM -0700, Junio C Hamano wrote: > Jeff King writes: > > > I'm not sure if it's a good idea to go into so much detail about > > expand_user_path() here. There are a lot of options that use the same > > rules, and we probably don't want to go into a complete explana

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Stefan Beller
On Fri, Apr 29, 2016 at 5:21 AM, Matthieu Moy wrote: > Jeff King writes: > >> On Fri, Apr 29, 2016 at 11:35:34AM +0200, larsxschnei...@gmail.com wrote: >> >>> +# The follow numbers need to be adjusted when new documentation is added. >>> +test_file_count html 233 >>> +test_file_count xml 171 >>>

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Junio C Hamano
Jeff King writes: > Yeah, this is what I had in mind. My only reservation would be that we > need to make sure it is clear that this applies only to keys marked as > taking a "pathname" type in the documentation. I'm suspect there are > ones that are logically paths but do not currently do the ex

Re: [PATCH] t9824: fix wrong reference value

2016-04-29 Thread Junio C Hamano
Lars Schneider writes: > 0492eb4 fixed a broken &&-chain in this test which broke the test as it > checked for a wrong size. The expected size of the file under test is > 39 bytes. The test checked that the size is 13 bytes. Fix the reference > value to make the test pass, again. > > Signed-off-b

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Junio C Hamano
Brian Norris writes: > I mostly just copied from boilerplate on another option. IIRC, there > were at least two other options that were documented similarly. My quick grep didn't find 'another option' other than include.path, but how about this as a preparatory step? -- >8 -- Subject: [PATCH] c

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 10:48:16AM -0700, Junio C Hamano wrote: > Brian Norris writes: > > > I mostly just copied from boilerplate on another option. IIRC, there > > were at least two other options that were documented similarly. > > My quick grep didn't find 'another option' other than include

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Junio C Hamano
Junio C Hamano writes: > Brian Norris writes: > >> I mostly just copied from boilerplate on another option. IIRC, there >> were at least two other options that were documented similarly. > > My quick grep didn't find 'another option' other than include.path, > but how about this as a preparatory

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Matthieu Moy
Stefan Beller writes: > On Fri, Apr 29, 2016 at 5:21 AM, Matthieu Moy > wrote: >> Jeff King writes: >> >>> On Fri, Apr 29, 2016 at 11:35:34AM +0200, larsxschnei...@gmail.com wrote: >>> +# The follow numbers need to be adjusted when new documentation is added. +test_file_count html 233

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Junio C Hamano
Jeff King writes: > On Fri, Apr 29, 2016 at 10:48:16AM -0700, Junio C Hamano wrote: > >> Brian Norris writes: >> >> > I mostly just copied from boilerplate on another option. IIRC, there >> > were at least two other options that were documented similarly. >> >> My quick grep didn't find 'anoth

Re: [PATCH 2/2] http: expand http.cookieFile as a path

2016-04-29 Thread Jeff King
On Fri, Apr 29, 2016 at 10:55:00AM -0700, Junio C Hamano wrote: > Thanks. Perhaps squash this to the patch in the message you are > responding to. > > diff --git a/Documentation/config.txt b/Documentation/config.txt > index ff7eaaf..786e0fa 100644 > --- a/Documentation/config.txt > +++ b/Documen

Re: [PATCH v8 10/10] ce_compare_data() did not respect conversion

2016-04-29 Thread Junio C Hamano
tbo...@web.de writes: > From: Torsten Bögershausen > > We define the working tree file is clean if either: > > * the result of running convert_to_git() on the working tree > contents matches what is in the index (because that would mean > doing another "git add" on the path is a no-op);

Re: [PATCH 06/15] submodule init: redirect stdout to stderr

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > Reroute the output of stdout to stderr as it is just informative > messages, not to be consumed by machines. > > We want to init submodules from the helper for `submodule update` > in a later patch and the stdout output of said helper is consumed > by the parts of `submodu

Re: [PATCH 07/15] submodule deinit: loose requirement for giving '.'

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > This is needed later to make a distinction between 'all specified' > and the default group of submodules. s/loose/lose/; Again, this can be separated as an independent preliminary clean-up. > > Signed-off-by: Stefan Beller > --- > git-submodule.sh | 5 -

Re: [PATCH 08/15] submodule--helper list: respect submodule groups

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > As submodule--helper list is the building block for some submodule > commands (foreach, deinit, status, sync), also add tests for those. The title is slightly misleading, isn't it? This step only teaches the commands to limit the operation to the defaultGroup instead of

Re: [PATCH 11/15] diff: ignore submodules excluded by groups

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > We do not need to do anything special to initialize the `submodule_groups` > pointer as the diff options setup will fill in 0 by default. > > Signed-off-by: Stefan Beller > --- > diff.c | 3 +++ > diff.h | 1 + > 2 files changed, 4 insertions(+) Isn't this going in the

Re: [PATCH 06/15] submodule init: redirect stdout to stderr

2016-04-29 Thread Stefan Beller
On Fri, Apr 29, 2016 at 11:27 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> Reroute the output of stdout to stderr as it is just informative >> messages, not to be consumed by machines. >> >> We want to init submodules from the helper for `submodule update` >> in a later patch and the st

Re: [PATCH 12/15] git submodule summary respects groups

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > Signed-off-by: Stefan Beller > --- Same comment as 11/15 applies here. > git-submodule.sh | 5 + > t/t7413-submodule--helper.sh | 26 ++ > 2 files changed, 31 insertions(+) > > diff --git a/git-submodule.sh b/git-submodule.sh >

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

2016-04-29 Thread David Turner
On Thu, 2016-04-28 at 11:58 -0700, Junio C Hamano wrote: > David Turner writes: > > > From: Nguyễn Thái Ngọc Duy > > ... > > The biggest gain is not having to verify the trailing SHA-1, which > > takes lots of time especially on large index files. But this also > > opens doors for further optimi

Re: [PATCH 11/15] diff: ignore submodules excluded by groups

2016-04-29 Thread Stefan Beller
On Fri, Apr 29, 2016 at 11:37 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> We do not need to do anything special to initialize the `submodule_groups` >> pointer as the diff options setup will fill in 0 by default. >> >> Signed-off-by: Stefan Beller >> --- >> diff.c | 3 +++ >> diff.h

Re: [RFC PATCH 2/3] connect: group CONNECT_DIAG_URL handling code

2016-04-29 Thread Torsten Bögershausen
On 29.04.16 02:43, Mike Hommey wrote: > get_host_and_port(&ssh_host, &port); > + if (!port) > + port = get_port(ssh_host); I'm not sure, if this is an improvement or not. The original intention was, to check what the parser did, before going out to

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Junio C Hamano
Jeff King writes: > ... Having the two directly next to each other reads > better to me. This is a pretty unusual diff, though, in that it did > change the surrounding whitespace (and if you look further in the diff, > the identical change is made elsewhere _without_ touching the > whitespace). S

Re: [PATCH] t9824: fix wrong reference value

2016-04-29 Thread Lars Schneider
On 29 Apr 2016, at 19:34, Junio C Hamano wrote: > Lars Schneider writes: > >> 0492eb4 fixed a broken &&-chain in this test which broke the test as it >> checked for a wrong size. The expected size of the file under test is >> 39 bytes. The test checked that the size is 13 bytes. Fix the refere

Re: [PATCH] t9824: fix wrong reference value

2016-04-29 Thread Luke Diamand
On 29 April 2016 at 21:29, Lars Schneider wrote: > > On 29 Apr 2016, at 19:34, Junio C Hamano wrote: > >> Lars Schneider writes: >> >>> 0492eb4 fixed a broken &&-chain in this test which broke the test as it >>> checked for a wrong size. The expected size of the file under test is >>> 39 bytes.

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Lars Schneider
On 29 Apr 2016, at 19:27, Stefan Beller wrote: > On Fri, Apr 29, 2016 at 5:21 AM, Matthieu Moy > wrote: >> Jeff King writes: >> >>> On Fri, Apr 29, 2016 at 11:35:34AM +0200, larsxschnei...@gmail.com wrote: >>> +# The follow numbers need to be adjusted when new documentation is added. >>

Re: [PATCHv1] git-p4: workaround p4 removal of client directory

2016-04-29 Thread Luke Diamand
[+Git, Junio] On 29 April 2016 at 15:10, Jacob Smith wrote: > That's the identical patch I'm maintaining internally; it appears to work. Thanks, I think that counts as a "Tested-by" then. Luke > > Sent from my iPhone > >> On Apr 29, 2016, at 8:52 AM, Luke Diamand wrote: >> >>> On 29 April 20

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

2016-04-29 Thread Junio C Hamano
David Turner writes: > Per working tree/repository, yes (not quite per-index because working > trees with split indexes have two). Heh, I consider "split index" merely an implementation detail of a (logical) single index file that happens to be represented with two physical files. Anyway, thank

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Jacob Keller
On Fri, Apr 29, 2016 at 1:29 PM, Junio C Hamano wrote: > Jeff King writes: > >> ... Having the two directly next to each other reads >> better to me. This is a pretty unusual diff, though, in that it did >> change the surrounding whitespace (and if you look further in the diff, >> the identical c

Re: [PATCH v2] travis-ci: build documentation

2016-04-29 Thread Junio C Hamano
Lars Schneider writes: >> This could be less of maintenance if we'd check with a "larger as" operator >> such as >> >>test_file_count_more_than html 200 >> >> using an arbitrary slightly smaller number. > > Well, I was thinking about testing against something like > $(find . -type f -name

Re: [PATCH v8 10/10] ce_compare_data() did not respect conversion

2016-04-29 Thread Junio C Hamano
tbo...@web.de writes: > From: Torsten Bögershausen > > We define the working tree file is clean if either: > > * the result of running convert_to_git() on the working tree > contents matches what is in the index (because that would mean > doing another "git add" on the path is a no-op);

[ANNOUNCE] Git v2.8.2

2016-04-29 Thread Junio C Hamano
The latest maintenance release Git v2.8.2 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.8.2' tag and the 'maint' branch that the tag points at: url = https://kernel

A note from the maintainer

2016-04-29 Thread Junio C Hamano
Welcome to the Git development community. This message is written by the maintainer and talks about how Git project is managed, and how you can work with it. * Mailing list and the community The development is primarily done on the Git mailing list. Help requests, feature proposals, bug reports

What's cooking in git.git (Apr 2016, #08; Fri, 29)

2016-04-29 Thread Junio C Hamano
Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. The ones marked with '.' do not appear in any of the integration branches, but I am still holding onto them. The 'master' branch now has the ei

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Junio C Hamano
Jacob Keller writes: > On Fri, Apr 29, 2016 at 1:29 PM, Junio C Hamano wrote: >> Jeff King writes: >> >>> ... Having the two directly next to each other reads >>> better to me. This is a pretty unusual diff, though, in that it did >>> change the surrounding whitespace (and if you look further i

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Stefan Beller
On Fri, Apr 29, 2016 at 3:18 PM, Junio C Hamano wrote: > Jacob Keller writes: > >> On Fri, Apr 29, 2016 at 1:29 PM, Junio C Hamano wrote: >>> Jeff King writes: >>> ... Having the two directly next to each other reads better to me. This is a pretty unusual diff, though, in that it did

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Keller, Jacob E
On Fri, 2016-04-29 at 15:35 -0700, Stefan Beller wrote: > On Fri, Apr 29, 2016 at 3:18 PM, Junio C Hamano > wrote: > > > > Jacob Keller writes: > > > > > > > > On Fri, Apr 29, 2016 at 1:29 PM, Junio C Hamano > > m> wrote: > > > > > > > > Jeff King writes: > > > > > > > > > > > > > > ... H

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Stefan Beller
> Currently it's an "opt in" knob, so this doesn't make sense to me. +static int diff_compaction_heuristic = 1; It's rather an opt-out knob going by the current origin/jk/diff-compact-heuristic > If > we remove the entire knob as is, we can always (fairly easily) add it > back. I would keep the

Re: [PATCH 2/2] xdiff: implement empty line chunk heuristic

2016-04-29 Thread Keller, Jacob E
On Fri, 2016-04-29 at 15:44 -0700, Stefan Beller wrote: > > > > Currently it's an "opt in" knob, so this doesn't make sense to me. > +static int diff_compaction_heuristic = 1; > Oops didn't know we'd made it default at some point. (all my versions had it disabled by default) > It's rather an op

Re: [PATCH/RFC 4/6] transport: add refspec list parameters to functions

2016-04-29 Thread David Turner
On Tue, 2016-04-26 at 20:59 -0700, Stefan Beller wrote: > On Mon, Apr 25, 2016 at 3:10 PM, Stefan Beller > wrote: > > On Mon, Apr 25, 2016 at 9:44 AM, David Turner < > > dtur...@twopensource.com> wrote: > > > On Wed, 2016-04-20 at 16:57 -0400, Jeff King wrote: > > > > On Wed, Apr 20, 2016 at 04:46

Re: [PATCH/RFC 4/6] transport: add refspec list parameters to functions

2016-04-29 Thread Stefan Beller
On Fri, Apr 29, 2016 at 4:05 PM, David Turner wrote: > On Tue, 2016-04-26 at 20:59 -0700, Stefan Beller wrote: >> On Mon, Apr 25, 2016 at 3:10 PM, Stefan Beller >> wrote: >> > On Mon, Apr 25, 2016 at 9:44 AM, David Turner < >> > dtur...@twopensource.com> wrote: >> > > On Wed, 2016-04-20 at 16:57

Re: [PATCH 25/29] refs: resolve symbolic refs first

2016-04-29 Thread David Turner
On Fri, 2016-04-29 at 11:51 +0200, Michael Haggerty wrote: > On 04/29/2016 01:40 AM, David Turner wrote: > > On Wed, 2016-04-27 at 18:57 +0200, Michael Haggerty wrote: > > +retry: > > ... > > > + if (--attempts_remaining > 0) > > > + goto retry; > > > > could this be a loop

Re: [PATCH 19/29] refs: don't dereference on rename

2016-04-29 Thread David Turner
On Fri, 2016-04-29 at 09:38 +0200, Michael Haggerty wrote: > On 04/27/2016 08:55 PM, Junio C Hamano wrote: > > Michael Haggerty writes: > > > > > @@ -2380,8 +2381,8 @@ int rename_ref(const char *oldrefname, > > > const char *newrefname, const char *logms > > > goto rollback; > > > } >

[PATCH 05/14] transport: add infrastructure to support a protocol version number

2016-04-29 Thread Stefan Beller
Signed-off-by: Stefan Beller --- fetch-pack.h | 1 + remote.c | 2 ++ remote.h | 2 ++ transport-helper.c | 1 + transport.c| 20 ++-- transport.h| 8 6 files changed, 32 insertions(+), 2 deletions(-) diff --git a/fetch-pack

[PATCH 03/14] upload-pack-2: Implement the version 2 of upload-pack

2016-04-29 Thread Stefan Beller
In upload-pack-2 we send each capability in its own packet buffer. The construction of upload-pack-2 is a bit unfortunate as I would like it to not be depending on a symlink linking to upload-pack.c, but I did not find another easy way to do it. I would like it to generate upload-pack-2.o from uplo

[PATCH 13/14] WIP add test for git pull

2016-04-29 Thread Stefan Beller
Signed-off-by: Stefan Beller --- t/t5520-pull.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh index 739c089..9bd1feb 100755 --- a/t/t5520-pull.sh +++ b/t/t5520-pull.sh @@ -599,4 +599,10 @@ test_expect_success 'git pull --rebase against local branch'

[PATCH 09/14] fetch-pack: Add negotiate_capabilities

2016-04-29 Thread Stefan Beller
As in the pack protocol version 2 we want to negotiate the capabilities before any other exchange we will have a function which will take care of the whole negotiation process. It will be placed in fetch-pack.c for now as there we have access to its internal variables and we'll work on a `struct f

  1   2   >