[PATCH v16 5/6] t6030: explicitly test for bisection cleanup

2017-09-28 Thread Pranit Bauva
Add test to explicitly check that 'git bisect reset' is working as expected. This is already covered implicitly by the test suite. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- I faced this problem while converting `bisect_clean_state` and the tests

[PATCH v16 3/6] bisect--helper: `write_terms` shell function in C

2017-09-28 Thread Pranit Bauva
Reimplement the `write_terms` shell function in C and add a `write-terms` subcommand to `git bisect--helper` to call it from git-bisect.sh . Also remove the subcommand `--check-term-format` as it can now be called from inside the function write_terms() C implementation. Also `|| exit` is added whe

[PATCH v16 4/6] bisect--helper: `bisect_clean_state` shell function in C

2017-09-28 Thread Pranit Bauva
Reimplement `bisect_clean_state` shell function in C and add a `bisect-clean-state` subcommand to `git bisect--helper` to call it from git-bisect.sh . Using `--bisect-clean-state` subcommand is a measure to port shell function to C so as to use the existing test suite. As more functions are ported

[PATCH v16 6/6] bisect--helper: `is_expected_rev` & `check_expected_revs` shell function in C

2017-09-28 Thread Pranit Bauva
Reimplement `is_expected_rev` & `check_expected_revs` shell function in C and add a `--check-expected-revs` subcommand to `git bisect--helper` to call it from git-bisect.sh . Using `--check-expected-revs` subcommand is a temporary measure to port shell functions to C so as to use the existing test

[PATCH v16 1/6] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2017-09-28 Thread Pranit Bauva
`--next-all` is meant to be used as a subcommand to support multiple "operation mode" though the current implementation does not contain any other subcommand along side with `--next-all` but further commits will include some more subcommands. Helped-by: Johannes Schindelin Mentored-by: Lars Schne

[PATCH v16 2/6] bisect--helper: rewrite `check_term_format` shell function in C

2017-09-28 Thread Pranit Bauva
Reimplement the `check_term_format` shell function in C and add a `--check-term-format` subcommand to `git bisect--helper` to call it from git-bisect.sh Using `--check-term-format` subcommand is a temporary measure to port shell function to C so as to use the existing test suite. As more functions

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

2017-09-28 Thread Ian Campbell
On Fri, 2017-09-29 at 13:34 +0900, Junio C Hamano wrote: > > * ic/fix-filter-branch-to-handle-tag-without-tagger (2017-09-22) 4 > commits > (merged to 'next' on 2017-09-25 at c7550033df) > + filter-branch: use hash-object instead of mktag > + filter-branch: stash away ref map in a branch > +

Re: [PATCH v4] technical doc: add a design doc for hash function transition

2017-09-28 Thread Junio C Hamano
Jonathan Nieder writes: > This document describes what a transition to a new hash function for > Git would look like. Add it to Documentation/technical/ as the plan > of record so that future changes can be recorded as patches. > > Also-by: Brandon Williams > Also-by: Jonathan Tan > Also-by: S

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 round that feeds fd#8 in

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 system installation of git for

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. Expand the

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 described

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 > library from matching Gi

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 that appeals to me. >

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. The proposed patch go

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): fast-import will not start writing

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 f

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 > admission of guilt & appr

[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 cre

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 report. So the patch shoul

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 CE_MATCH_IGNORE_FSMONITOR was being p

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 think I have addres

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 on. It was because I foun

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 for fixing in the excha

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 blobs, but > the infrastructu

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 hang we occasionally get

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) >

[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 Bouke

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. Beyo

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 path/to/repo\0host=..\

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 object you like).

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)) { > > + case proto

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. > ... > As familiar, as it is unfamiliar to Window

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 must be tolerated. >

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 anyway. The en

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

[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. Whe

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 maintainer

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 cool

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 version of this patch

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, &packed_git_mru.list) { > > + struct mru *entry = list_entry(pos, struct mru, list); > > struct packed_git *p = e

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 this. Swapping the order of starting > fast-

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, and

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: `--subject-prefix`

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: [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 > --- > Documentation/git.txt

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 done without constructi

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 lookups can be done without constructing a >

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: [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: > > > > > > > > > > On Mon, 7 Aug

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 parse the "extra arg

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 sa

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 + object-filter.c | 269 +

[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 changed, 1 insertion(

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 po

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 > >> depending on various environment setup. >

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 wrote: > > > > > > > >> Add a '.

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). > Signed-off-by: Olga Telezhnaia

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 change in this version

[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 --- builtin/pack-objects.c | 5 +++-- mru.c | 51 +++--

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: mailto:khu