Re: [PATCH] merge-recursive: do not look at the index during recursive merge

2018-01-09 Thread Junio C Hamano
Junio C Hamano writes: > + ... > + test_tick && > + git commit --allow-empty -m "O2" && > + O1=$(git rev-parse HEAD) && > + > + git reset --hard $O0 && > + test_tick && > + git commit --allow-empty -m "O2" && > + O2=$(git rev-parse HEAD) && Does

Re: [PATCH 09/26] transport: store protocol version

2018-01-09 Thread Brandon Williams
On 01/09, Jonathan Tan wrote: > On Tue, 2 Jan 2018 16:18:11 -0800 > Brandon Williams wrote: > > > diff --git a/transport.c b/transport.c > > index 63c3dbab9..2378dcb38 100644 > > --- a/transport.c > > +++ b/transport.c > > @@ -118,6 +118,7 @@ struct git_transport_data { > >

Re: [PATCH] doc/read-tree: remove obsolete remark

2018-01-09 Thread Junio C Hamano
"Andreas G. Schacker" writes: > Earlier versions of `git read-tree` required the `--prefix` option value > to end with a slash. This restriction was eventually lifted without a > corresponding amendment to the documentation. > > Signed-off-by: Andreas G. Schacker

Me

2018-01-09 Thread Leilani Buxton
Sent from my iPhone

Re: [RFC PATCH 00/18] Multi-pack index (MIDX)

2018-01-09 Thread Stefan Beller
On Tue, Jan 9, 2018 at 5:05 AM, Johannes Schindelin wrote: > Hi Peff, > > On Tue, 9 Jan 2018, Jeff King wrote: > >> On Mon, Jan 08, 2018 at 02:43:00PM +0100, Johannes Schindelin wrote: >> >> > Take the interactive rebase for example. It generates todo lists with >> >

Re: [PATCH 11/26] serve: introduce git-serve

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:13 -0800 Brandon Williams wrote: > diff --git a/Documentation/technical/protocol-v2.txt > b/Documentation/technical/protocol-v2.txt > new file mode 100644 > index 0..b87ba3816 > --- /dev/null > +++ b/Documentation/technical/protocol-v2.txt

Re: [PATCH 12/26] ls-refs: introduce ls-refs server command

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:14 -0800 Brandon Williams wrote: > + symrefs: In addition to the object pointed by it, show the underlying > +ref pointed by it when showing a symbolic ref. > + peel: Show peeled tags. > + ref-pattern : When specified, only references

Re: [PATCH 4/8] Doc/gitsubmodules: avoid abbreviations

2018-01-09 Thread Stefan Beller
On Tue, Jan 9, 2018 at 8:06 AM, Kaartic Sivaraam wrote: > On Tuesday 09 January 2018 12:15 AM, Stefan Beller wrote: >>> >>> - * The command line for those commands that support taking submodule specs. >> >> ++ The command line for those commands that support taking

Re: merge-base --is-ancestor A B is unreasonably slow with unrelated history B

2018-01-09 Thread Derrick Stolee
On 1/9/2018 10:17 AM, Ævar Arnfjörð Bjarmason wrote: This is a pathological case I don't have time to dig into right now: git branch -D orphan; git checkout --orphan orphan && git reset --hard && touch foo && git add foo && git commit -m"foo" && time git

Re: [PATCH 3/8] Doc/gitsubmodules: specify how submodules help in reduced size

2018-01-09 Thread Kaartic Sivaraam
On Wednesday 10 January 2018 12:31 AM, Stefan Beller wrote: > On Tue, Jan 9, 2018 at 8:01 AM, Kaartic Sivaraam > wrote: >> On Tuesday 09 January 2018 12:08 AM, Stefan Beller wrote: diff --git a/Documentation/gitsubmodules.txt

Re: [PATCH 6/8] Doc/gitsubmodules: improve readability of certain lines

2018-01-09 Thread Stefan Beller
>>> The submodule's `$GIT_DIR/config` file would come into play when running >>> `git push --recurse-submodules=check` in the superproject, as this would >>> @@ -107,13 +108,13 @@ If the submodule is not yet initialized, then the >>> configuration >>> inside the submodule does not exist yet,

Re: [PATCH v1 0/2] Incremental rewrite of git-submodules

2018-01-09 Thread Brandon Williams
On 01/09, Prathamesh Chavan wrote: > The patches [1] and [2] concerning the porting of submodule > subcommands: sync and deinit were updated in accoudance with > the changes made in one of such similar portings made earlier > for submodule subcommand status[3]. Following are the changes > made:

Re: [RFC PATCH 00/18] Multi-pack index (MIDX)

2018-01-09 Thread Stefan Beller
On Tue, Jan 9, 2018 at 12:12 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> And in that light, I'd like to propose a new naming scheme: >> >> (a) assume that we "tag" HEAD at the start of the rebase >> (b) any abbreviation must be given as

Re: upstreaming https://github.com/cgwalters/git-evtag ?

2018-01-09 Thread Jonathan Nieder
Hi, Santiago Torres wrote: >> In contrast, working on hash-function-transition.txt? That >> seems like it'd easily consume many person-months of work. >> And that plan only exists post-shatter.io, whereas git-evtag >> long predates both. > > I think this is partly true. A hash transition has

Re: [PATCH 01/26] pkt-line: introduce packet_read_with_status

2018-01-09 Thread Brandon Williams
On 01/09, Jonathan Tan wrote: > On Tue, 2 Jan 2018 16:18:03 -0800 > Brandon Williams wrote: > > > -int packet_read(int fd, char **src_buf, size_t *src_len, > > - char *buffer, unsigned size, int options) > > +enum packet_read_status packet_read_with_status(int fd,

Re: [PATCH 4/8] Doc/gitsubmodules: avoid abbreviations

2018-01-09 Thread Kaartic Sivaraam
On Wednesday 10 January 2018 12:56 AM, Stefan Beller wrote: > On Tue, Jan 9, 2018 at 8:06 AM, Kaartic Sivaraam > wrote: >> On Tuesday 09 January 2018 12:15 AM, Stefan Beller wrote: - * The command line for those commands that support taking submodule

Re: [PATCH v1 0/2] Incremental rewrite of git-submodules

2018-01-09 Thread Stefan Beller
On Tue, Jan 9, 2018 at 9:57 AM, Prathamesh Chavan wrote: > The patches [1] and [2] concerning the porting of submodule > subcommands: sync and deinit were updated in accoudance with > the changes made in one of such similar portings made earlier > for submodule subcommand

Re: [PATCH 6/8] Doc/gitsubmodules: improve readability of certain lines

2018-01-09 Thread Kaartic Sivaraam
On Wednesday 10 January 2018 01:01 AM, Stefan Beller wrote: The submodule's `$GIT_DIR/config` file would come into play when running `git push --recurse-submodules=check` in the superproject, as this would @@ -107,13 +108,13 @@ If the submodule is not yet initialized, then the

Re: [RFC PATCH 00/18] Multi-pack index (MIDX)

2018-01-09 Thread Junio C Hamano
Stefan Beller writes: > And in that light, I'd like to propose a new naming scheme: > > (a) assume that we "tag" HEAD at the start of the rebase > (b) any abbreviation must be given as committish anchored to said ref: > > pick REBASE_HEAD~1 commit subject > pick REBASE_HEAD~2

Re: [PATCH v1 1/2] submodule: port submodule subcommand 'sync' from shell to C

2018-01-09 Thread Junio C Hamano
Prathamesh Chavan writes: > +static int print_default_remote(int argc, const char **argv, const char > *prefix) > +{ > + const char *remote; > + > + if (argc != 1) > + die(_("submodule--helper print-default-remote takes no > arguments")); > + > +

Re: [PATCH 01/26] pkt-line: introduce packet_read_with_status

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:03 -0800 Brandon Williams wrote: > -int packet_read(int fd, char **src_buf, size_t *src_len, > - char *buffer, unsigned size, int options) > +enum packet_read_status packet_read_with_status(int fd, char **src_buffer, > size_t *src_len, >

[PATCH] Prototype PATH_MAX length detection in tests, demonstrated in t0001-init.sh

2018-01-09 Thread Randall S. Becker
This patch create a configuration variable PATH_MAX that corresponds with the value in limits.h. The value of PATH_MAX, if supplied, is added to BASIC_CFLAGS and will validate with limits.h. PATH_MAX is also added to GIT-BUILD-OPTIONS and is available in the git test suite. This patch also

Re: [PATCH] merge-recursive: do not look at the index during recursive merge

2018-01-09 Thread Junio C Hamano
Elijah Newren writes: > Hi, > > On Tue, Jan 9, 2018 at 11:19 AM, Junio C Hamano wrote: > >> > I haven't come up with an addition to the test suite, but I suspect >> > this change is conceptually wrong. What if a call to this function >> > is

Re: [PATCH 0/8] Doc/submodules: a few updates

2018-01-09 Thread Stefan Beller
On Tue, Jan 9, 2018 at 9:06 AM, Kaartic Sivaraam wrote: > On Tuesday 09 January 2018 12:38 AM, Stefan Beller wrote: >> On Sat, Jan 6, 2018 at 10:46 AM, Kaartic Sivaraam >> wrote: >> >> While small patches are really appreciated for code

[PATCH v5 2/4] status: add --[no-]ahead-behind to status and commit for V2 format.

2018-01-09 Thread Jeff Hostetler
From: Jeff Hostetler Teach "git status" and "git commit" to accept "--no-ahead-behind" and "--ahead-behind" arguments to request quick or full ahead/behind reporting. When "--no-ahead-behind" is given, the existing porcelain V2 line "branch.ab +x -y" is replaced with a

[PATCH v5 3/4] status: update short status to respect --no-ahead-behind

2018-01-09 Thread Jeff Hostetler
From: Jeff Hostetler Teach "git status --short --branch" to respect "--no-ahead-behind" parameter to skip computing ahead/behind counts for the branch and its upstream and just report '[different]'. Signed-off-by: Jeff Hostetler ---

[PATCH v5 1/4] stat_tracking_info: return +1 when branches not equal

2018-01-09 Thread Jeff Hostetler
From: Jeff Hostetler Extend stat_tracking_info() to return +1 when branches are not equal and to take a new "enum ahead_behind_flags" argument to allow skipping the (possibly expensive) ahead/behind computation. This will be used in the next commit to allow "git status"

Re: [PATCH 02/26] pkt-line: introduce struct packet_reader

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:04 -0800 Brandon Williams wrote: > diff --git a/pkt-line.h b/pkt-line.h > index 06c468927..c446e886a 100644 > --- a/pkt-line.h > +++ b/pkt-line.h > @@ -111,6 +111,63 @@ char *packet_read_line_buf(char **src_buf, size_t > *src_len, int *size); > */

[PATCH] merge-recursive: do not look at the index during recursive merge

2018-01-09 Thread Junio C Hamano
When merging another branch into ours, if their tree is the same as the common ancestor's, we can declare that our tree represents the result of three-way merge. In such a case, the recursive merge backend incorrectly used to create a commit out of our index, even when the index has changes. A

Re: A cry for help, please don't ignore!

2018-01-09 Thread Sandra Younes
Good Day, Forgive my indignation if this message comes to you as a surprise and may offend your personality for contacting you without your prior consent and writing through this channel. I came across your name and contact on the course of my personal searching when i was searching for a

Re: [PATCH] merge-recursive: do not look at the index during recursive merge

2018-01-09 Thread Eric Sunshine
On Tue, Jan 9, 2018 at 1:19 PM, Junio C Hamano wrote: > When merging another branch into ours, if their tree is the same as > the common ancestor's, we can declare that our tree represents the > result of three-way merge. In such a case, the recursive merge > backend

Re: [PATCH] bisect: debug: convert struct object to object_id

2018-01-09 Thread Junio C Hamano
Yasushi SHOJI writes: > The commit f2fd0760f62e79609fef7bfd7ecebb002e8e4ced converted struct > object to object_id but a debug function show_list(), which is > ifdef'ed to noop, in bisect.c wasn't. > > So fix it. > > Signed-off-by: Yasushi SHOJI

Re: [PATCH 0/4] "Fast-"track Git GUI changes

2018-01-09 Thread Junio C Hamano
Junio C Hamano writes: > Johannes Schindelin writes: > >> As it seems to be impossible to get the attention of the Git GUI >> maintainer these "days" (I have opened Pull Requests on October 16th >> 2016 that have not even been looked at), let's

Re: [PATCH 07/26] connect: convert get_remote_heads to use struct packet_reader

2018-01-09 Thread Brandon Williams
On 01/09, Jonathan Tan wrote: > On Tue, 2 Jan 2018 16:18:09 -0800 > Brandon Williams wrote: > > > - while ((len = read_remote_ref(in, _buf, _len, ))) { > > + while (state != EXPECTING_DONE) { > > + switch (packet_reader_read()) { > > + case

[PATCH v5 0/4] Add --no-ahead-behind to status

2018-01-09 Thread Jeff Hostetler
From: Jeff Hostetler This is version 5 of my patch series to avoid expensive ahead/behind calculations in status. This version completely removes the config setting and is just the --[no-]ahead-behind command line argument. Internally (inside MSFT) we have had further

[PATCH v5 4/4] status: support --no-ahead-behind in long format

2018-01-09 Thread Jeff Hostetler
From: Jeff Hostetler Teach long (normal) status format to respect the --no-ahead-behind parameter and skip the possibly expensive ahead/behind computation between the branch and the upstream. Signed-off-by: Jeff Hostetler --- builtin/checkout.c

Re: merge-base --is-ancestor A B is unreasonably slow with unrelated history B

2018-01-09 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > This is obviously a pathological case, but maybe we should work slightly > harder on the RHS of and discover that it itself is an orphan commit. In order to discover a commit is an orphan, you'd need to prove not just that it does not reach

Re: [PATCH 02/26] pkt-line: introduce struct packet_reader

2018-01-09 Thread Brandon Williams
On 01/09, Jonathan Tan wrote: > On Tue, 2 Jan 2018 16:18:04 -0800 > Brandon Williams wrote: > > > diff --git a/pkt-line.h b/pkt-line.h > > index 06c468927..c446e886a 100644 > > --- a/pkt-line.h > > +++ b/pkt-line.h > > @@ -111,6 +111,63 @@ char *packet_read_line_buf(char

Re: [PATCH v4 0/4] Add --no-ahead-behind to status

2018-01-09 Thread Johannes Schindelin
Hi Stolee, On Tue, 9 Jan 2018, Derrick Stolee wrote: > On 1/9/2018 8:15 AM, Johannes Schindelin wrote: > > > > On Tue, 9 Jan 2018, Jeff King wrote: > > > > > But I don't think you can approximate both ahead and behind together > > > without finding the actual merge base. > > > > > > But even

Re: [PATCH 09/26] transport: store protocol version

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:11 -0800 Brandon Williams wrote: > diff --git a/transport.c b/transport.c > index 63c3dbab9..2378dcb38 100644 > --- a/transport.c > +++ b/transport.c > @@ -118,6 +118,7 @@ struct git_transport_data { > struct child_process *conn; > int

Re: What's cooking in git.git (Dec 2017, #03; Wed, 13)

2018-01-09 Thread Junio C Hamano
Lars Schneider writes: >> On 14 Dec 2017, at 00:00, Junio C Hamano wrote: >> >> 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

Re: [PATCH 0/8] Doc/submodules: a few updates

2018-01-09 Thread Kaartic Sivaraam
On Tuesday 09 January 2018 12:38 AM, Stefan Beller wrote: > On Sat, Jan 6, 2018 at 10:46 AM, Kaartic Sivaraam > wrote: > > While small patches are really appreciated for code (bisect, automated > testing, and > the general difficulty to reason about code, as a very

Re: [PATCH 00/26] protocol version 2

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:02 -0800 Brandon Williams wrote: > The following patches extend what I sent out as an WIP > (https://public-inbox.org/git/20171204235823.63299-1-bmw...@google.com/) and > implement protocol version 2. Summarizing (for myself) the rationale for

Re: upstreaming https://github.com/cgwalters/git-evtag ?

2018-01-09 Thread Santiago Torres
> > See Documentation/technical/hash-function-transition.txt > > for how to do it. > > evtag took me a day or two to write initially and doesn't > impose any requirements on users except a small additional > bit of software. I agree that, in nature it shouldn't be difficult, but I also think

RE: [PATCH] Prototype PATH_MAX length detection in tests, demonstrated in t0001-init.sh

2018-01-09 Thread Randall S. Becker
Apologies: I'm trying out a new mailer - it did not end well. Git 2.12.3 is not able to connect to mail email system without throwing Auth fails. Sadly, Randall

Re: [PATCH] merge-recursive: do not look at the index during recursive merge

2018-01-09 Thread Elijah Newren
Hi, On Tue, Jan 9, 2018 at 11:19 AM, Junio C Hamano wrote: > > I haven't come up with an addition to the test suite, but I suspect > > this change is conceptually wrong. What if a call to this function > > is made during a recursive, inner merge? Eek, good

Re:

2018-01-09 Thread Emile Kenold
-- My name is Mrs. Emile Kenold from London. I was diagnosed of lung cancer which had damaged my liver and my health is no longer responding to medical treatments. I have made up my mind to give a charity donation of $11 Million to you and i pray you will be sincere to use this money for charity

Re: [PATCH 3/8] Doc/gitsubmodules: specify how submodules help in reduced size

2018-01-09 Thread Stefan Beller
On Tue, Jan 9, 2018 at 8:01 AM, Kaartic Sivaraam wrote: > On Tuesday 09 January 2018 12:08 AM, Stefan Beller wrote: >>> diff --git a/Documentation/gitsubmodules.txt >>> b/Documentation/gitsubmodules.txt >>> index cb795c6b6..3f73983d5 100644 >>> ---

Re: [PATCH 0/4] "Fast-"track Git GUI changes

2018-01-09 Thread Junio C Hamano
Johannes Schindelin writes: > As it seems to be impossible to get the attention of the Git GUI > maintainer these "days" (I have opened Pull Requests on October 16th > 2016 that have not even been looked at), let's just side-step that > contribution path which seems

[PATCH v1 0/2] Incremental rewrite of git-submodules

2018-01-09 Thread Prathamesh Chavan
The patches [1] and [2] concerning the porting of submodule subcommands: sync and deinit were updated in accoudance with the changes made in one of such similar portings made earlier for submodule subcommand status[3]. Following are the changes made: * It was observed that the number of params

[PATCH v1 1/2] submodule: port submodule subcommand 'sync' from shell to C

2018-01-09 Thread Prathamesh Chavan
Port the submodule subcommand 'sync' from shell to C using the same mechanism as that used for porting submodule subcommand 'status'. Hence, here the function cmd_sync() is ported from shell to C. This is done by introducing four functions: module_sync(), sync_submodule(), sync_submodule_cb() and

[PATCH v1 2/2] submodule: port submodule subcommand 'deinit' from shell to C

2018-01-09 Thread Prathamesh Chavan
The same mechanism is used even for porting this submodule subcommand, as used in the ported subcommands till now. The function cmd_deinit in split up after porting into four functions: module_deinit(), for_each_listed_submodule(), deinit_submodule() and deinit_submodule_cb(). Mentored-by:

Re: [PATCH 07/26] connect: convert get_remote_heads to use struct packet_reader

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:09 -0800 Brandon Williams wrote: > - while ((len = read_remote_ref(in, _buf, _len, ))) { > + while (state != EXPECTING_DONE) { > + switch (packet_reader_read()) { > + case PACKET_READ_EOF: > +

Re: rebase preserve-merges: incorrect merge commits

2018-01-09 Thread Matwey V. Kornilov
2018-01-09 16:25 GMT+03:00 Johannes Schindelin : > Hi Matwey, > > On Tue, 9 Jan 2018, Matwey V. Kornilov wrote: > >> 2018-01-08 22:36 GMT+03:00 Johannes Schindelin : >> > >> > On Mon, 8 Jan 2018, Matwey V. Kornilov wrote: >> > >> >>

Re: [PATCH v4 0/4] Add --no-ahead-behind to status

2018-01-09 Thread Derrick Stolee
On 1/9/2018 8:15 AM, Johannes Schindelin wrote: Hi Peff, On Tue, 9 Jan 2018, Jeff King wrote: On Mon, Jan 08, 2018 at 03:04:20PM -0500, Jeff Hostetler wrote: I was thinking about something similar to the logic we use today about whether to start reporting progress on other long commands.

[PATCH 1/4] git gui: fix staging a second line to a 1-line file

2018-01-09 Thread Johannes Schindelin
When a 1-line file is augmented by a second line, and the user tries to stage that single line via the "Stage Line" context menu item, we do not want to see "apply: corrupt patch at line 5". The reason for this error was that the hunk header looks like this: @@ -1 +1,2 @@ but the

[PATCH 2/4] git-gui: avoid exception upon Ctrl+T in an empty list

2018-01-09 Thread Johannes Schindelin
Previously unstaged files can be staged by clicking on them and then pressing Ctrl+T. Conveniently, the next unstaged file is selected automatically so that the unstaged files can be staged by repeatedly pressing Ctrl+T. When a user hits Ctrl+T one time too many, though, Git GUI used to throw

[PATCH 4/4] git-gui: allow Ctrl+T to toggle multiple paths

2018-01-09 Thread Johannes Schindelin
It is possible to select multiple files in the "Unstaged Changes" and the "Staged Changes" lists. But when hitting Ctrl+T, surprisingly only one entry is handled, not all selected ones. Let's just use the same code path as for the "Stage To Commit" and the "Unstage From Commit" menu items. This

[PATCH 0/4] "Fast-"track Git GUI changes

2018-01-09 Thread Johannes Schindelin
As it seems to be impossible to get the attention of the Git GUI maintainer these "days" (I have opened Pull Requests on October 16th 2016 that have not even been looked at), let's just side-step that contribution path which seems to be dormant. These fixes have been in Git for Windows for

[PATCH 3/4] git-gui: fix exception when trying to stage with empty file list

2018-01-09 Thread Johannes Schindelin
If there is nothing to stage, there is nothing to stage. Let's not try to, even if the file list contains nothing at all. This fixes https://github.com/git-for-windows/git/issues/1075 Signed-off-by: Johannes Schindelin --- git-gui/git-gui.sh | 12 ++-- 1

Re: [PATCH 11/26] serve: introduce git-serve

2018-01-09 Thread Jonathan Tan
On Tue, 9 Jan 2018 14:16:42 -0800 Brandon Williams wrote: > All good documentation changes. Thanks! > > > + /* > > > + * Function called when a client requests the capability as a command. > > > + * The command request will be provided to the function via 'keys', the > > >

Re: WITH ALL DUE RESPECT TO YOUR PERSON

2018-01-09 Thread Lincoln Bah Bah
Dear Friend, With due respect to your person and much sincerity of purpose. I have a business proposal which I will like to handle with you. $35 million USD is involves. But be rest assured that everything is legal and risk free as I have concluded all the arrangements and the legal papers

Re: [PATCH] Prototype PATH_MAX length detection in tests, demonstrated in t0001-init.sh

2018-01-09 Thread Johannes Sixt
Am 09.01.2018 um 19:12 schrieb Randall S. Becker: This patch create a configuration variable PATH_MAX that corresponds with the value in limits.h. The value of PATH_MAX, if supplied, is added to BASIC_CFLAGS and will validate with limits.h. PATH_MAX is also added to GIT-BUILD-OPTIONS and is

Re: [PATCH v1 2/2] submodule: port submodule subcommand 'deinit' from shell to C

2018-01-09 Thread Junio C Hamano
Prathamesh Chavan writes: > The same mechanism is used even for porting this submodule > subcommand, as used in the ported subcommands till now. > The function cmd_deinit in split up after porting into four > functions: module_deinit(), for_each_listed_submodule(), >

Re: [ANNOUNCE] Git v2.16.0-rc1

2018-01-09 Thread Junio C Hamano
Johannes Schindelin writes: > diff --git a/t/t0021/rot13-filter.pl b/t/t0021/rot13-filter.pl > index f1678851de9..470107248eb 100644 > --- a/t/t0021/rot13-filter.pl > +++ b/t/t0021/rot13-filter.pl > @@ -31,7 +31,22 @@ > # > > use 5.008; > -use lib (split(/:/,

Re: [PATCH 03/20] cat-file: rename variables in ref-filter

2018-01-09 Thread Junio C Hamano
Olga Telezhnaya writes: > Rename some variables for easier reading. > They point not to values, but to arrays. Once the code is written and people start to build on top, a change like this is not worth the code churn, especially because there are two equally valid

Re: [PATCH 13/26] connect: request remote refs using v2

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:15 -0800 Brandon Williams wrote: > diff --git a/connect.c b/connect.c > index caa539b75..9badd403f 100644 > --- a/connect.c > +++ b/connect.c > @@ -12,9 +12,11 @@ > #include "sha1-array.h" > #include "transport.h" > #include "strbuf.h" > +#include

Re: [PATCHv4 0/4] Fix --recurse-submodules for submodule worktree changes

2018-01-09 Thread Junio C Hamano
Stefan Beller writes: > v4: > Stefan Beller (4): > t/lib-submodule-update.sh: clarify test > t/lib-submodule-update.sh: Fix test ignoring ignored files in > submodules > unpack-trees: oneway_merge to update submodules > submodule: submodule_move_head omits old

Re: [PATCH 07/20] cat-file: reuse parse_ref_filter_atom

2018-01-09 Thread Junio C Hamano
Olga Telezhnaya writes: > +static int is_atom(const char *atom, const char *s, int slen) > +{ > +... > +} > + > +static void expand_atom_into_fields(const char *atom, int len, > + struct expand_data *data) > +{ > +... > +} > ... > -static

What's cooking in git.git (Jan 2018, #02; Tue, 9)

2018-01-09 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: WITH ALL DUE RESPECT TO YOUR PERSON

2018-01-09 Thread Lincoln Bah Bah
Dear Friend, With due respect to your person and much sincerity of purpose. I have a business proposal which I will like to handle with you. $35 million USD is involves. But be rest assured that everything is legal and risk free as I have concluded all the arrangements and the legal papers

Re: [PATCH 04/20] cat-file: make valid_atoms as a function parameter

2018-01-09 Thread Junio C Hamano
Olga Telezhnaya writes: > Make valid_atoms as a function parameter, > there could be another variable further. > Need that for further reusing of formatting logic in cat-file.c. > > Signed-off-by: Olga Telezhnaia > Mentored-by: Christian

Re: [PATCH 11/26] serve: introduce git-serve

2018-01-09 Thread Brandon Williams
On 01/09, Jonathan Tan wrote: > On Tue, 2 Jan 2018 16:18:13 -0800 > Brandon Williams wrote: > > > diff --git a/Documentation/technical/protocol-v2.txt > > b/Documentation/technical/protocol-v2.txt > > new file mode 100644 > > index 0..b87ba3816 > > --- /dev/null > >

Re: [PATCH 11/26] serve: introduce git-serve

2018-01-09 Thread Brandon Williams
On 01/09, Jonathan Tan wrote: > On Tue, 9 Jan 2018 14:16:42 -0800 > Brandon Williams wrote: > > > All good documentation changes. > > Thanks! > > > > > + /* > > > > +* Function called when a client requests the capability as a > > > > command. > > > > +

Re: [ANNOUNCE] Git v2.16.0-rc1

2018-01-09 Thread Junio C Hamano
Junio C Hamano writes: > Johannes Schindelin writes: > >> diff --git a/t/t0021/rot13-filter.pl b/t/t0021/rot13-filter.pl >> index f1678851de9..470107248eb 100644 >> --- a/t/t0021/rot13-filter.pl >> +++ b/t/t0021/rot13-filter.pl >> @@ -31,7 +31,22

RE: [PATCH] Prototype PATH_MAX length detection in tests, demonstrated in t0001-init.sh

2018-01-09 Thread Randall S. Becker
On January 9, 2018 6:01 PM, Johannes Sixt wrote: > Am 09.01.2018 um 19:12 schrieb Randall S. Becker: > > This patch create a configuration variable PATH_MAX that corresponds > > with the value in limits.h. The value of PATH_MAX, if supplied, is > > added to BASIC_CFLAGS and will validate with

Re: prepare-commit-msg hook no longer run for cherry-pick?

2018-01-09 Thread Dmitry Torokhov
Hi Junio, On Fri, Jan 5, 2018 at 10:48 AM, Dmitry Torokhov wrote: > Hi, > > I had prepare-commit-msg hook that would scrub "Patchwork-ID: " tags > form commit messages and would update input mailing list patchwork to > mark corresponding patches as "accepted" when

Re: [PATCH 20/26] fetch-pack: perform a fetch using v2

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:22 -0800 Brandon Williams wrote: > +static enum ack_type process_ack(const char *line, struct object_id *oid) > +{ > + const char *arg; > + > + if (!strcmp(line, "NAK")) > + return NAK; > + if (skip_prefix(line, "ACK ", )) { >

Re: [PATCH 26/26] remote-curl: implement connect-half-duplex command

2018-01-09 Thread Jonathan Tan
On Tue, 2 Jan 2018 16:18:28 -0800 Brandon Williams wrote: > Teach remote-curl the 'connect-half-duplex' command which is used to > establish a half-duplex connection with servers which support protocol > version 2. This allows remote-curl to act as a proxy, allowing the git

Re: [RFC PATCH 00/18] Multi-pack index (MIDX)

2018-01-09 Thread Junio C Hamano
Stefan Beller writes: > Johannes wrote: >> I think a better alternative would be to introduce a new abbreviation mode >> that is *intended* to stop caring about unique abbreviations. >> >> In web interfaces, for example, it makes tons of sense to show, say, 8 >> digits in

Re: prepare-commit-msg hook no longer run for cherry-pick?

2018-01-09 Thread Junio C Hamano
Dmitry Torokhov writes: >> I had prepare-commit-msg hook that would scrub "Patchwork-ID: " tags >> form commit messages and would update input mailing list patchwork to >> mark corresponding patches as "accepted" when I cherry pick form >> WIP/review queue into

[PATCH] bisect: debug: convert struct object to object_id

2018-01-09 Thread Yasushi SHOJI
The commit f2fd0760f62e79609fef7bfd7ecebb002e8e4ced converted struct object to object_id but a debug function show_list(), which is ifdef'ed to noop, in bisect.c wasn't. So fix it. Signed-off-by: Yasushi SHOJI --- bisect.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Why Me In This Terrible Condition.

2018-01-09 Thread Sandrine Paul
Greetings My Dear, I sent this mail praying it will found you in a good condition of health, since I myself are in a very critical health condition in which I sleep every night without knowing if I may be alive to see the next day. I am Mrs. Francisca Carlsen from Denmark wife of late Mr

Re: [BUG] v2.16.0-rc0 seg faults when git bisect skip

2018-01-09 Thread Yasushi SHOJI
Hi, On Tue, Jan 9, 2018 at 12:09 AM, Christian Couder wrote: > ... "i == cnt" is always false above. I think it should be "i == cnt - 1". uga. Thanks. That's stupid of me. > And with your code one can wonder why the cleanup is part of the loop. OK. I have

Re: rebase preserve-merges: incorrect merge commits

2018-01-09 Thread Matwey V. Kornilov
2018-01-08 22:36 GMT+03:00 Johannes Schindelin : > Hi Matwey, > > On Mon, 8 Jan 2018, Matwey V. Kornilov wrote: > >> 2018-01-08 19:32 GMT+03:00 Johannes Schindelin : >> > >> > On Mon, 8 Jan 2018, Matwey V. Kornilov wrote: >> > >> >>

Re: rebase preserve-merges: incorrect merge commits

2018-01-09 Thread Johannes Schindelin
Hi Matwey, On Tue, 9 Jan 2018, Matwey V. Kornilov wrote: > 2018-01-08 22:36 GMT+03:00 Johannes Schindelin : > > > > On Mon, 8 Jan 2018, Matwey V. Kornilov wrote: > > > >> 2018-01-08 19:32 GMT+03:00 Johannes Schindelin > >> : > >> > > >> >

[PATCH 17/20] cat-file: add is_cat flag in ref-filter

2018-01-09 Thread Olga Telezhnaya
Add is_cat flag, further it helps to get rid of cat_file_data field in ref_format. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King --- builtin/cat-file.c | 1 + ref-filter.c | 8

[PATCH 08/20] cat-file: remove unused code

2018-01-09 Thread Olga Telezhnaya
No further need in mark_query parameter. All logic related to expand_atom_into_fields is not needed here also, we are doing that in ref-filter. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King

[PATCH 03/20] cat-file: rename variables in ref-filter

2018-01-09 Thread Olga Telezhnaya
Rename some variables for easier reading. They point not to values, but to arrays. Added "s" ending so that it could be obvious. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King ---

[PATCH 20/20] cat-file: make cat_file_info variable independent

2018-01-09 Thread Olga Telezhnaya
Remove connection between expand_data variable in cat-file and in ref-filter. It will help further to get rid of using expand_data in cat-file. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King

[PATCH 13/20] cat-file: start use ref_array_item struct

2018-01-09 Thread Olga Telezhnaya
Moving from using expand_data to ref_array_item structure. That helps us to reuse functions from ref-filter easier. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King --- builtin/cat-file.c |

[PATCH 16/20] cat-file: get rid of expand_atom_into_fields

2018-01-09 Thread Olga Telezhnaya
Remove expand_atom_into_fields function and create same logic in terms of ref-filter style. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King --- ref-filter.c | 45

[PATCH 01/20] cat-file: split expand_atom into 2 functions

2018-01-09 Thread Olga Telezhnaya
Split expand_atom function into 2 different functions, expand_atom_into_fields prepares variable for further filling, (new) expand_atom creates resulting string. Need that for further reusing of formatting logic from ref-filter. Signed-off-by: Olga Telezhnaia

[PATCH 18/20] cat-file: add split_on_whitespace flag

2018-01-09 Thread Olga Telezhnaya
Add flag to ref_format struct so that we could pass needed info to cat-file. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King --- builtin/cat-file.c | 1 + ref-filter.c | 4 ++--

[PATCH 12/20] cat-file: rename variable in ref-filter

2018-01-09 Thread Olga Telezhnaya
Rename variable for easier reading. It points not to values, but to arrays. Added "s" ending so that it could be obvious. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King --- ref-filter.c |

[PATCH 02/20] cat-file: reuse struct ref_format

2018-01-09 Thread Olga Telezhnaya
Start using ref_format struct instead of simple char*. Need that for further reusing of formatting logic from ref-filter. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King ---

[PATCH 06/20] cat-file: start migrating to ref-filter

2018-01-09 Thread Olga Telezhnaya
Start moving all formatting stuff from cat-file to ref-filter. Start from simple moving, it would be integrated into all ref-filter processes further. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King

[PATCH 07/20] cat-file: reuse parse_ref_filter_atom

2018-01-09 Thread Olga Telezhnaya
Continue migrating formatting logic from cat-file to ref-filter. Reuse parse_ref_filter_atom for unifying all processes in ref-filter and further reducing of expand_atom_into_fields function. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder

[PATCH 05/20] cat-file: move struct expand_data into ref-filter

2018-01-09 Thread Olga Telezhnaya
Need that for further reusing of formatting logic in cat-file. Have plans to get rid of using expand_data in cat-file at all, and use it only in ref-filter for collecting, formatting and printing needed data. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder

[PATCH 04/20] cat-file: make valid_atoms as a function parameter

2018-01-09 Thread Olga Telezhnaya
Make valid_atoms as a function parameter, there could be another variable further. Need that for further reusing of formatting logic in cat-file.c. Signed-off-by: Olga Telezhnaia Mentored-by: Christian Couder Mentored by: Jeff King

  1   2   >