Re: [PATCH v2 4/9] daemon: recognize hidden request arguments

2017-09-28 Thread Brandon Williams
On 09/27, Brandon Williams wrote: > On 09/27, Junio C Hamano wrote: > > Brandon Williams writes: > > > > > A normal request to git-daemon is structured as > > > "command path/to/repo\0host=..\0" and due to a bug in an old version of > > > git-daemon 73bb33a94 (daemon: Strictly

Re: [PATCH v2] git: add --no-optional-locks option

2017-09-28 Thread Johannes Schindelin
Hi Peff, On Wed, 27 Sep 2017, Jeff King wrote: > For the other comments on v1, I decided not to make any changes: > > - JSixt suggested marking this as a local-repo variable. I think we > really do want it to cross repo boundaries to handle submodules (and > the GfW version does the

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Jonathan Nieder
Hi, Andreas Heiduk wrote: > +1, Thanks for spotting. Thanks for looking it over. Can we add your Reviewed-by? (See [1] for what this means.) > I did a quick > > grep -r " ` " > > which came up with with another relevant place: > > Documentation/git-format-patch.txt:

important/urgent

2017-09-28 Thread Khadov Amir Moh.
-- Hello I am Khadov Amir Moh., a former resident of Birmingham UK. Please reach me for the details of an extremely important business proposition. Have a nice day. Khadov Amir Moh.

Re: [RFC] clang-format: outline the git project's coding style

2017-09-28 Thread Brandon Williams
On 09/28, Johannes Schindelin wrote: > Hi all, > > On Thu, 10 Aug 2017, Johannes Schindelin wrote: > > > On Tue, 8 Aug 2017, Brandon Williams wrote: > > > > > On 08/08, Stefan Beller wrote: > > > > On Tue, Aug 8, 2017 at 5:05 AM, Johannes Schindelin > > > > wrote: > >

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Andreas Heiduk
Am 28.09.2017 um 16:06 schrieb Adam Dinwoodie: > Leaving spaces around the `-delimeters for commands means asciidoc fails > to parse them as the start of a literal string. Remove an extraneous > space that is causing a literal to not be formatted as such. > > Signed-off-by: Adam Dinwoodie

Re: [PATCH] oidmap: map with OID as key

2017-09-28 Thread Jonathan Tan
On Thu, 28 Sep 2017 12:13:00 +0900 Junio C Hamano wrote: > Jonathan Tan writes: > > > This is similar to using the hashmap in hashmap.c, but with an > > easier-to-use API. In particular, custom entry comparisons no longer > > need to be written, and

Re: [PATCH] oidmap: map with OID as key

2017-09-28 Thread Jonathan Tan
On Wed, 27 Sep 2017 17:41:37 -0700 Brandon Williams wrote: > On 09/27, Jonathan Tan wrote: > > This is similar to using the hashmap in hashmap.c, but with an > > easier-to-use API. In particular, custom entry comparisons no longer > > need to be written, and lookups can be

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Jonathan Nieder
Adam Dinwoodie wrote: > Leaving spaces around the `-delimeters for commands means asciidoc fails > to parse them as the start of a literal string. Remove an extraneous > space that is causing a literal to not be formatted as such. > > Signed-off-by: Adam Dinwoodie > --- >

Re: [PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Jeff King
On Thu, Sep 28, 2017 at 08:03:00PM +0900, Junio C Hamano wrote: > > - for (entry = packed_git_mru.head; entry; entry = entry->next) { > > + list_for_each(pos, _git_mru.list) { > > + struct mru *entry = list_entry(pos, struct mru, list); > > struct packed_git *p =

Re: [PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Junio C Hamano
Jeff King writes: > But I also think this patch may be a stepping stone to dropping "struct > mru" entirely, and just pushing a "struct list_head mru" into the > packed_git object itself (or of course any object you like). At which > point we'd just directly use the list iterators

Re: [PATCH v2 3/9] protocol: introduce protocol extention mechanisms

2017-09-28 Thread Brandon Williams
On 09/27, Junio C Hamano wrote: > Brandon Williams writes: > > > +`GIT_PROTOCOL`:: > > + For internal use only. Used in handshaking the wire protocol. > > + Contains a colon ':' separated list of keys with optional values > > + 'key[=value]'. Presence of unknown keys

Re: [PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Jeff King
On Fri, Sep 29, 2017 at 06:56:28AM +0900, Junio C Hamano wrote: > Jeff King writes: > > > But I also think this patch may be a stepping stone to dropping "struct > > mru" entirely, and just pushing a "struct list_head mru" into the > > packed_git object itself (or of course any

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Andreas Heiduk
Am 28.09.2017 um 21:34 schrieb Jonathan Nieder: > Andreas Heiduk wrote: > >> +1, Thanks for spotting. > > Thanks for looking it over. Can we add your Reviewed-by? (See [1] > for what this means.) Well, I'd like to see the following occurrence of the same problem solved in that patch, too.

[PATCH] git-sh: Avoid sourcing scripts with git --exec-path

2017-09-28 Thread Dridi Boukelmoune
For end users making use of a custom exec path many commands will simply fail. Adding git's exec path to the PATH also allows overriding git-sh-* scripts, not just adding commands. One can then patch a script without tainting their system installation of git for example. Signed-off-by: Dridi

Re: [PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Jeff King
On Thu, Sep 28, 2017 at 08:38:39AM +, Olga Telezhnaya wrote: > diff --git a/packfile.c b/packfile.c > index f69a5c8d607af..ae3b0b2e9c09a 100644 > --- a/packfile.c > +++ b/packfile.c > @@ -876,6 +876,7 @@ void prepare_packed_git(void) > for (alt = alt_odb_list; alt; alt = alt->next) >

Re: [Bug/Solution] Git hangs in compat/poll/poll.c on HPE NonStop

2017-09-28 Thread Junio C Hamano
[jch: a patch that hopefully is applicable is attached at the end; I'd appreciate input from Paolo, the contributor of the original upstream] "Randall S. Becker" writes: > After a whole lot of investigating, we (it is a large "we") have discovered > the reason for the

Re: [PATCH] gitk: expand $config_file_tmp before reporting to user

2017-09-28 Thread Junio C Hamano
Johannes Schindelin writes: >> > Max Kirillov writes: >> > >> >> Tilda-based path may confise some users. First, tilda is not known >> >> for Window users, second, it may point to unexpected location >> >> depending on various environment setup. >

Re: [PATCH v2 6/9] connect: teach client to recognize v1 server response

2017-09-28 Thread Brandon Williams
On 09/27, Junio C Hamano wrote: > Brandon Williams writes: > > > +/* Returns 1 if packet_buffer is a protocol version pkt-line, 0 otherwise. > > */ > > +static int process_protocol_version(void) > > +{ > > + switch (determine_protocol_version_client(packet_buffer)) { > > +

EWRGHJUYT

2017-09-28 Thread Sgt Monica Brown
-- Hello, I bid you greetings, I have an important overture for you. Details shall be given when you confirm the receipt of this email. Regards, Sgt Monica Brown

Re: [PATCH v2 7/9] connect: tell server that the client understands v1

2017-09-28 Thread Brandon Williams
On 09/27, Junio C Hamano wrote: > Brandon Williams writes: > > > Teach the connection logic to tell a serve that it understands protocol > > v1. This is done in 2 different ways for the built in protocols. > > > > 1. git:// > >A normal request is structured as "command

Re: [PATCH 1/1] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Eric Rannaud
On Thu, Sep 28, 2017 at 3:35 AM, Junio C Hamano wrote: > "Eric Rannaud" writes: > >> +# The commands in input_file should not produce any output on the file >> +# descriptor set with --cat-blob-fd (or stdout if unspecified). > > Thanks for documenting

Re: hacktoberfest

2017-09-28 Thread Jeff King
On Wed, Sep 27, 2017 at 11:05:49PM +0100, pedro rijo wrote: > While the git repository itself is not hosted under GitHub, the Pro > Git book, git for Windows, and git-scm website (at least) projects > are, and could use this movement to get some more contributions, and > eventually more

Re: [PATCH] oidmap: map with OID as key

2017-09-28 Thread Jeff King
On Thu, Sep 28, 2017 at 10:46:16AM -0700, Jonathan Tan wrote: > > To me it seems like a much simpler API for a map would be to just allow > > callers to store a 'void *' as the value. > > I agree that the API would be simpler. > > My main motivation with this design is indeed to save memory,

Re: [PATCH v2 3/9] protocol: introduce protocol extention mechanisms

2017-09-28 Thread Brandon Williams
On 09/26, Stefan Beller wrote: > > +extern enum protocol_version get_protocol_version_config(void); > > +extern enum protocol_version determine_protocol_version_server(void); > > +extern enum protocol_version determine_protocol_version_client(const char > > *server_response); > > It would be

Re: [PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Jeff King
On Thu, Sep 28, 2017 at 08:38:39AM +, Olga Telezhnaya wrote: > Simplify mru.c, mru.h and related code by reusing the double-linked > list implementation from list.h instead of a custom one. The commit message is a good reason to talk about why we want to do this. In this case, the answer may

Re: [PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Eric Rannaud
On Thu, Sep 28, 2017 at 5:59 AM, Adam Dinwoodie wrote: > On Wed, Sep 27, 2017 at 10:07:41PM -0700, Eric Rannaud wrote: >> >> Also adding the necessary PIPE prereq, as pointed out by Ramsay Jones. > > Cygwin doesn't have the PIPE prereq; I've just confirmed that the > previous

[Bug/Solution] Git hangs in compat/poll/poll.c on HPE NonStop

2017-09-28 Thread Randall S. Becker
Hi Team, After a whole lot of investigating, we (it is a large "we") have discovered the reason for the hang we occasionally get in git-upload-pack on HPE NonStop servers - reported here well over a year ago. This resulted from a subtle check that the operating system does on file descriptors.

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Junio C Hamano
Jonathan Nieder writes: > Andreas Heiduk wrote: > >> +1, Thanks for spotting. > > Thanks for looking it over. Can we add your Reviewed-by? (See [1] > for what this means.) I would just do "Acked-by: Andreas" after seeing such an obvious admission of guilt & appreciation

Re: RFC: Design and code of partial clones (now, missing commits and trees OK)

2017-09-28 Thread Jonathan Tan
On Fri, 15 Sep 2017 13:43:43 -0700 Jonathan Tan wrote: > For those interested in partial clones and/or missing objects in repos, > I've updated my original partialclone patches to not require an explicit > list of promises. Fetch/clone still only permits exclusion of

Re: [PATCH] git-sh: Avoid sourcing scripts with git --exec-path

2017-09-28 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> This has been broken for a while, but better late than never to >> address it. > > I am not sure if this is broken in the first place. We do want to > make sure that the scripted porcelains will source the shell helper >

Re: [PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Eric Rannaud
On Thu, Sep 28, 2017 at 8:51 PM, Junio C Hamano wrote: > I think that your patch the last round that feeds fd#8 in the > foreground (i.e. fully trusting that the caller is sensibly giving > input that produces no output) is already a good place to stop. > > Your patch this

Re: [PATCH] git-sh: Avoid sourcing scripts with git --exec-path

2017-09-28 Thread Junio C Hamano
Dridi Boukelmoune writes: > For end users making use of a custom exec path many commands will simply > fail. Adding git's exec path to the PATH also allows overriding git-sh-* > scripts, not just adding commands. One can then patch a script without > tainting their

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Junio C Hamano
Jonathan Nieder writes: > Separate from this example: yes, I think adopting Linux's Reviewed-by > convention would be a good thing. When I see a positive reply to a > patch, I often wonder whether an ack or a fuller reviewed-by is > intended, and Linux's way of formalizing

What's cooking in git.git (Sep 2017, #06; Fri, 29)

2017-09-28 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. You can find the changes

Re: [PATCH] gitk: expand $config_file_tmp before reporting to user

2017-09-28 Thread Max Kirillov
On Thu, Sep 28, 2017 at 02:31:17PM +0200, Johannes Schindelin wrote: >>> Max Kirillov writes: Tilda-based path may confise some users. First, tilda is not known for Window users, second, it may point to unexpected location depending on various environment setup.

Re: [PATCH] doc: correct command formatting

2017-09-28 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> Andreas Heiduk wrote: >>> +1, Thanks for spotting. >> >> Thanks for looking it over. Can we add your Reviewed-by? (See [1] >> for what this means.) > > I would just do "Acked-by: Andreas" after seeing such an obvious >

Re: [PATCH] git-sh: Avoid sourcing scripts with git --exec-path

2017-09-28 Thread Jonathan Nieder
Hi, Dridi Boukelmoune wrote: > For end users making use of a custom exec path many commands will simply > fail. Adding git's exec path to the PATH also allows overriding git-sh-* > scripts, not just adding commands. One can then patch a script without > tainting their system installation of git

Re: [PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Junio C Hamano
"Eric Rannaud" writes: > Junio, this last version addresses your last remark regarding the > potential for the cat $input_file sequence to block when the FIFOs are > unbuffered. > > The concern is mainly theoretical (*if* the shell function is used > correctly):

Re: [PATCH] git-sh: Avoid sourcing scripts with git --exec-path

2017-09-28 Thread Junio C Hamano
Jonathan Nieder writes: > This has been broken for a while, but better late than never to > address it. I am not sure if this is broken in the first place. We do want to make sure that the scripted porcelains will source the shell helper library from matching Git release.

Re: RFC: Design and code of partial clones (now, missing commits and trees OK)

2017-09-28 Thread Junio C Hamano
Jonathan Tan writes: > I've pushed a new version: > > https://github.com/jonathantanmy/git/tree/partialclone3 Just FYI, the reason why I commented only on the first patch in your previous series at GitHub wasn't because I found the others perfect and nothing to comment

[PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Eric Rannaud
The checkpoint command cycles packfiles if object_count != 0, a sensible test or there would be no pack files to write. Since 820b931012, the command also dumps branches, tags and marks, but still conditionally. However, it is possible for a command stream to modify refs or create marks without

Re: [PATCH v3 00/21] Read `packed-refs` using mmap()

2017-09-28 Thread Junio C Hamano
Jeff King writes: > On Mon, Sep 25, 2017 at 09:59:57AM +0200, Michael Haggerty wrote: > >> This is v3 of a patch series that changes the reading and caching of >> the `packed-refs` file to use `mmap()`. Thanks to Stefan, Peff, Dscho, >> and Junio for their comments about v2. I

Re: [PATCH v8 00/12] Fast git status via a file system watcher

2017-09-28 Thread Junio C Hamano
Ben Peart writes: > The only behavioral change from V7 is the removal of unnecessary uses of > CE_MATCH_IGNORE_FSMONITOR. With a better understanding of *why* the > CE_MATCH_IGNORE_* flags are used, it is now clear they are not required > in most cases where

Re: [PATCH 1/1] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Junio C Hamano
Adam Dinwoodie writes: >> Also adding the necessary PIPE prereq, as pointed out by Ramsay Jones. > > Cygwin doesn't have the PIPE prereq; I've just confirmed that the > previous version of this patch has t9300 failing on Cygwin, but this > version passes. Thanks for a

Re: [PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Eric Rannaud
On Wed, Sep 27, 2017 at 11:02 PM, Junio C Hamano wrote: > Eric Rannaud writes: > >> Doesn't fast-import get a copy of 8 (open for both reading and >> writing), as a child process, and exec 8>&- only closes the copy of >> the file descriptor in the parent

Re: [PATCH] gitk: expand $config_file_tmp before reporting to user

2017-09-28 Thread Johannes Schindelin
Hi Junio, On Thu, 28 Sep 2017, Junio C Hamano wrote: > Junio C Hamano writes: > > > Max Kirillov writes: > > > >> Tilda-based path may confise some users. First, tilda is not known > >> for Window users, second, it may point to unexpected location > >>

Re: [PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Junio C Hamano
Olga Telezhnaya writes: > Simplify mru.c, mru.h and related code by reusing the double-linked list > implementation from list.h instead of a custom one. An overlong line (I can locally wrap it, so the patch does not have to be re-sent only to fix this alone). >

Re: [PATCH 1/1] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Junio C Hamano
"Eric Rannaud" writes: > +# The commands in input_file should not produce any output on the file > +# descriptor set with --cat-blob-fd (or stdout if unspecified). Thanks for documenting this. Swapping the order of starting fast-import and feeding its input (which is one

Re: [RFC] clang-format: outline the git project's coding style

2017-09-28 Thread Johannes Schindelin
Hi all, On Thu, 10 Aug 2017, Johannes Schindelin wrote: > On Tue, 8 Aug 2017, Brandon Williams wrote: > > > On 08/08, Stefan Beller wrote: > > > On Tue, Aug 8, 2017 at 5:05 AM, Johannes Schindelin > > > wrote: > > > > > > > > On Mon, 7 Aug 2017, Brandon Williams

Re: [PATCH 1/1] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Adam Dinwoodie
On Wed, Sep 27, 2017 at 10:07:41PM -0700, Eric Rannaud wrote: > The checkpoint command cycles packfiles if object_count != 0, a sensible > test or there would be no pack files to write. Since 820b931012, the > command also dumps branches, tags and marks, but still conditionally. > However, it is

[PATCH] doc: correct command formatting

2017-09-28 Thread Adam Dinwoodie
Leaving spaces around the `-delimeters for commands means asciidoc fails to parse them as the start of a literal string. Remove an extraneous space that is causing a literal to not be formatted as such. Signed-off-by: Adam Dinwoodie --- Documentation/git.txt | 2 +- 1 file

Re: [PATCH 07/13] object-filter: common declarations for object filtering

2017-09-28 Thread Jeff Hostetler
On 9/27/2017 8:05 PM, Jonathan Tan wrote: On Wed, 27 Sep 2017 13:09:42 -0400 Jeff Hostetler wrote: On 9/26/2017 6:39 PM, Jonathan Tan wrote: On Fri, 22 Sep 2017 20:30:11 + Jeff Hostetler wrote: Makefile| 1 +

Re: [PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-28 Thread Junio C Hamano
Eric Rannaud writes: > Doesn't fast-import get a copy of 8 (open for both reading and > writing), as a child process, and exec 8>&- only closes the copy of > the file descriptor in the parent shell, so the named pipe remains > open for writing somewhere (in the fast-import

RE: Business Opportunity

2017-09-28 Thread Cooper, Kathy
From: Cooper, Kathy Sent: Thursday, September 28, 2017 3:14 AM Subject: Business Opportunity Hello friend, I have a business opportunity that will benefit us millions of United State Dollars. If you are interested, Please reply-to my personal email:

[PATCH Outreachy] mru: use double-linked list from list.h

2017-09-28 Thread Olga Telezhnaya
Simplify mru.c, mru.h and related code by reusing the double-linked list implementation from list.h instead of a custom one. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King ---