Re: [PATCH] string-list: remove unused function print_string_list

2018-09-11 Thread Junio C Hamano
Junio C Hamano writes: > Stefan Beller writes: > >> The helper function stayed unused for 3 years. A removal of that function > > I think it stayed unused for more than that before the previous > proposal to remove it was written (I do not bother going back to

Re: [PATCH] string-list: remove unused function print_string_list

2018-09-11 Thread Junio C Hamano
Stefan Beller writes: > The helper function stayed unused for 3 years. A removal of that function I think it stayed unused for more than that before the previous proposal to remove it was written (I do not bother going back to my earlier message that identified which exact commit this was

Re: [PATCH] diff: fix --color-moved-ws=allow-indentation-change

2018-09-11 Thread Junio C Hamano
Stefan Beller writes: > On Tue, Sep 11, 2018 at 11:16 AM Junio C Hamano wrote: >> >> Stefan Beller writes: >> >> >> [...] So this should be sufficient. >> > >> > Yup. >> > Thanks for keeping track of this patch, as I lost track

Re: [PATCH] http-backend: treat empty CONTENT_LENGTH as zero

2018-09-11 Thread Junio C Hamano
Junio C Hamano writes: >>> + /* >>> +* According to RFC 3875, an empty or missing >>> +* CONTENT_LENGTH means "no body", but RFC 3875 >>> +* precedes HTTP/1.1 and chunked encoding. Apache and >>

Re: [PATCH] diff: fix --color-moved-ws=allow-indentation-change

2018-09-11 Thread Junio C Hamano
Stefan Beller writes: >> [...] So this should be sufficient. > > Yup. > Thanks for keeping track of this patch, as I lost track of it. > > thanks, > Stefan So does the above exchange mean that <20180904135258.31300-1-phillip.w...@talktalk.net> is ready to go with your Acked-by?

Re: [PATCH] http-backend: treat empty CONTENT_LENGTH as zero

2018-09-11 Thread Junio C Hamano
Jonathan Nieder writes: > Kicking off the reviews: ;-) > > Jonathan Nieder wrote: > >> --- a/http-backend.c >> +++ b/http-backend.c >> @@ -350,10 +350,25 @@ static ssize_t read_request_fixed_len(int fd, ssize_t >> req_len, unsigned char **o >> >> static ssize_t get_content_length(void) >

Re: Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Junio C Hamano
Jonathan Tan writes: > By "without any objects" in your email subject, do you mean "without > blob and tree objects"? If yes, there is some code in the > md/filter-trees branch that can do that with a "--filter=tree:0" > option. I too was wondering what the "without any objects" thing meant

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-11 Thread Junio C Hamano
Todd Zullinger writes: > With curl-7.61.1 cookies are sorted by creation-time¹. Sort the output > used in the 'cookies stored in http.cookiefile when http.savecookies > set' test before comparing it to the expected cookies. > > ¹ https://github.com/curl/curl/commit/e2ef8d6fa ("cookies: support

Re: [PATCH v3 4/4] wt-status.c: Set the committable flag in the collect phase.

2018-09-11 Thread Junio C Hamano
"Stephen P. Smith" writes: > On Friday, September 7, 2018 3:31:55 PM MST you wrote: >> Junio C Hamano writes: > >> The patch is mostly for illustration of the idea. >> >> The result seems to compile and pass the test suite, but I haven't >> caref

Re: [PATCH v2 24/24] Rename functions to avoid breaking in-flight topics

2018-09-11 Thread Junio C Hamano
Duy Nguyen writes: > In the end, there's no variant, only one function that always takes > 'struct repository *' and I wanted to keep the shorter name 'rerere'. > But let's go with adding repo_rerere() and deprecating rerere(). If it > turns out later that repo_rerere is too long (or it's

Re: [PATCH v3 11/23] ll-merge.c: remove implicit dependency on the_index

2018-09-11 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > --- > apply.c| 9 ++--- > builtin/checkout.c | 3 ++- > diff.c | 2 +- > ll-merge.c | 17 + > ll-merge.h | 5 - > merge-blobs.c | 3 ++- > merge-recursive.c | 3 ++- > notes-merge.c

Re: Git 2.19 Segmentation fault 11 on macOS

2018-09-11 Thread Junio C Hamano
Derrick Stolee writes: > On 9/11/2018 12:04 PM, Derrick Stolee wrote: > >> The patch below includes a test that fails on Mac OSX with a segfault. > ... > Sorry, nevermind. The test failed for a different reason: Even if it is for a different reason, segfaulting is not acceptable, but it seems

Re: [PATCH] http-backend: treat empty CONTENT_LENGTH as zero

2018-09-10 Thread Junio C Hamano
Jonathan Nieder writes: > RFC 3875 (the CGI specification) explains: > >The CONTENT_LENGTH variable contains the size of the message-body >attached to the request, if any, in decimal number of octets. If no >data is attached, then NULL (or unset). > > CONTENT_LENGTH = "" |

Re: [PATCH 1/2] trace: add trace_print_string_list_key

2018-09-10 Thread Junio C Hamano
Stefan Beller writes: >> Of course, even though these are 1/2 and 2/2, only one of them and >> not both would apply. > > Or you could squash them once we reach consensus that both are good. Ah, sorry, I completely misread the first one. I thought that it was extending the implementation of

Re: [PATCH 1/2] trace: add trace_print_string_list_key

2018-09-10 Thread Junio C Hamano
Stefan Beller writes: > I separated this from the other series, making it into 2 patches: > This first patch adds tracing for string lists and the next patch that > removes the unused function from the string list API. > That way we can decide on these two patches separately if needed. Of

Re: [PATCH v2] config: document value 2 for protocol.version

2018-09-10 Thread Junio C Hamano
Jonathan Nieder writes: > Josh Steadmon wrote: > >> From: Brandon Williams >> >> Update the config documentation to note the value `2` as an acceptable >> value for the protocol.version config. >> >> Signed-off-by: Brandon Williams >> Signed-off-by: Josh Steadmon >> --- >>

Re: [PATCH v2 2/2] mingw: fix mingw_open_append to work with named pipes

2018-09-10 Thread Junio C Hamano
Johannes Sixt writes: >> +#define IS_SBS(ch) (((ch) == '/') || ((ch) == '\\')) I think you already have mingw_is_dir_sep() and its shorter alias is_dir_sep() available to you. >> +/* >> + * Does the pathname map to the local named pipe filesystem? >> + * That is, does it have a "//./pipe/"

Re: git silently ignores include directive with single quotes

2018-09-10 Thread Junio C Hamano
Stas Bekman writes: > [include] > path = .gitconfig > > Not realizing that the two were not in the same folder. And probably > assuming that .git/config was referring to the root of repository, and > not relative to .git/, which is a reasonable assumption. > > Of course he had no way of

Re: [PATCH v3 14/23] patch-ids.c: remove implicit dependency on the_index

2018-09-10 Thread Junio C Hamano
Stefan Beller writes: > On Sun, Sep 9, 2018 at 1:54 AM Nguyễn Thái Ngọc Duy wrote: >> >> --- > > Junio would have to forge your Sign off here? > (I just realize this holds true for the whole series, > but it occurred to me in this patch, as I was looking at > the diff_setup[_done] part on the

Re: [PATCH 0/4] un-breaking pack-objects with bitmaps

2018-09-10 Thread Junio C Hamano
Jeff King writes: >> Either is fine. I am not moving 'next' beyond what is necessary for >> this release cycle during the pre-release freeze period, and because >> I thought that Peff was in favor of squashing in the changes to the >> original when the next cycle starts, I haven't bothered to

Re: git silently ignores include directive with single quotes

2018-09-10 Thread Junio C Hamano
Jonathan Nieder writes: > Updated proposal: > > 1. Treat strings starting or ending with single-quote as worth > quoting in config.c::write_pair (line 3269). This would already > help with the original issue, since the config would say > > [foo] > bar = "'baz'" >

Re: [Possible GIT Bug]

2018-09-10 Thread Junio C Hamano
"Eckhard Maaß" writes: > On Mon, Sep 10, 2018 at 09:03:10AM -0700, Junio C Hamano wrote: >> It is neither but if I have to pick one between the two, it is much >> closer to the former than the latter. The primary source of this is >> that we have only *one* paths

Re: git silently ignores include directive with single quotes

2018-09-10 Thread Junio C Hamano
Jonathan Nieder writes: > 1. Treat single-quote as worth quoting in config.c::write_pair (line > 2516). This would already help with the original issue, since the > config would say > > [foo] > bar = \'baz\' > > allowing a quick diagnosis. I am mildly against

Re: [GIT PULL] l10n updates for 2.19.0 round 2

2018-09-10 Thread Junio C Hamano
Jiang Xin writes: > Hi Junio, > > The following changes since commit 2f743933341f27603550fbf383a34dfcfd38: > > Git 2.19-rc1 (2018-08-28 12:01:01 -0700) > > are available in the Git repository at: > > git://github.com/git-l10n/git-po tags/l10n-2.19.0-rnd2 > > for you to fetch changes up

Re: [PATCH] t3701-add-interactive: tighten the check of trace output

2018-09-10 Thread Junio C Hamano
Jeff King writes: > Not that I'm totally opposed to your patch, but it's a little sad that > we have to match the specific text used in GIT_TRACE now (and if they > ever changed we won't even notice, but rather the test will just become > a silent noop). > > I think it would be nice if we could

Re: [PATCH v6 17/21] range-diff: populate the man page

2018-09-10 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Looking at the git-range-diff manpage though it recommends > over ... when the topic has been rebased, which is > usually the case for e.g. a topic that's submitted to git.git (usually > be the time feedback has been gathered & a re-submission has been made >

Re: git silently ignores include directive with single quotes

2018-09-10 Thread Junio C Hamano
Jeff King writes: > On Sat, Sep 08, 2018 at 11:58:47AM -0700, Stas Bekman wrote: > >> This doesn’t: >> >> [include] >> path = '../.gitconfig' > > So I think it's been covered elsewhere that single quotes aren't a thing > in git's config format. I will say that this was actually a minor

Re: [PATCH v2 10/11] builtin rebase: only store fully-qualified refs in `options.head_name`

2018-09-10 Thread Junio C Hamano
SZEDER Gábor writes: >> } else { >> -options.head_name = xstrdup("detached HEAD"); >> +free(options.head_name); >> +options.head_name = NULL; > > Please use FREE_AND_NULL(options.head_name) here. Good; did

Re: [PATCH 0/4] un-breaking pack-objects with bitmaps

2018-09-10 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > I'm just reverting jk/pack-delta-reuse-with-bitmap out of next when > building my own package of git, but I think this really should be fixed > in that branch, either by merging the fix down or reverting the original > series out of next, I think just merging

Re: [PATCH 2/2] mingw: fix mingw_open_append to work with named pipes

2018-09-10 Thread Junio C Hamano
Jeff Hostetler writes: > Yeah, this whole thing is a little under-documented for my tastes. > Let's leave it as you have it. I'll re-roll with a fix to route > named pipes to the existing _wopen() code. OK, I have these two patches in 'next', but let's postpone it for now. Windows port will

Re: [PATCH v4] http-backend: allow empty CONTENT_LENGTH

2018-09-10 Thread Junio C Hamano
Jeff King writes: > But that couldn't have been what older versions were doing, since they > never looked at CONTENT_LENGTH at all, and instead always read to EOF. > So presumably the original problem wasn't that we tried to read a body, > but that the empty string caused git_parse_ssize_t to

Re: [Possible GIT Bug]

2018-09-10 Thread Junio C Hamano
Jeff King writes: > Your explanation is correct. To be fair, though, it seems like > --find-copies-harder is made a lot less useful by the not considering > the larger set of sources, since that's kind of its point. I'm not sure > if this behavior actually is intentional, or simply what happens

Re: [PATCH] Revert "Merge branch 'sb/submodule-core-worktree'" (was Re: Old submodules broken in 2.19rc1 and 2.19rc2)

2018-09-07 Thread Junio C Hamano
Jonathan Nieder writes: > It is late in the release cycle, so revert the whole 3-patch series. > We can try again later for 2.20. > > Reported-by: Allan Sandfeld Jensen > Helped-by: Stefan Beller > Signed-off-by: Jonathan Nieder > --- > Stefan Beller wrote: >> Jonathan Nieder wrote: > >>> I

Re: [PATCH v3 4/4] wt-status.c: Set the committable flag in the collect phase.

2018-09-07 Thread Junio C Hamano
Junio C Hamano writes: > "Stephen P. Smith" writes: > >> void wt_status_collect(struct wt_status *s) >> { >> +struct wt_status_state state; >> wt_status_collect_changes_worktree(s); >> >> if (s->is_initial) >> @@

Re: [PATCH v3 4/4] wt-status.c: Set the committable flag in the collect phase.

2018-09-07 Thread Junio C Hamano
"Stephen P. Smith" writes: > void wt_status_collect(struct wt_status *s) > { > + struct wt_status_state state; > wt_status_collect_changes_worktree(s); > > if (s->is_initial) > @@ -746,6 +752,11 @@ void wt_status_collect(struct wt_status *s) > else >

Re: [PATCH v3 0/4] wt-status.c: commitable flag

2018-09-07 Thread Junio C Hamano
"Stephen P. Smith" writes: > A couple of years ago, during a patch review Junio found that the > commitable bit as implemented in wt-status.c was broken. > > Stephen P. Smith (4): > Move has_unmerged earlier in the file. > wt-status: rename commitable to committable > t7501: add test of

Re: [PATCH v3 2/4] wt-status: rename commitable to committable

2018-09-07 Thread Junio C Hamano
"Stephen P. Smith" writes: > Fix variable spelling error. > > Signed-off-by: Stephen P. Smith > --- Thanks ;-)

Re: [PATCH v3 3/4] read-cache: load cache extensions on a worker thread

2018-09-07 Thread Junio C Hamano
Ben Peart writes: > +struct load_index_extensions > +{ > +#ifndef NO_PTHREADS > + pthread_t pthread; > +#endif > + struct index_state *istate; > + void *mmap; > + size_t mmap_size; > + unsigned long src_offset; If the file format only allows uint32_t on any platform, perhaps

Re: [PATCH v3 2/4] eoie: add End of Index Entry (EOIE) extension

2018-09-07 Thread Junio C Hamano
Ben Peart writes: > The extension consists of: > > - 32-bit offset to the end of the index entries > > - 160-bit SHA-1 over the extension types and their sizes (but not > their contents). E.g. if we have "TREE" extension that is N-bytes > long, "REUC" extension that is M-bytes long, followed by

Re: [PATCH v3 0/4] read-cache: speed up index load through parallelization

2018-09-07 Thread Junio C Hamano
Ben Peart writes: > On further investigation with the previous patch, I noticed that my test > repos didn't contain the cache tree extension in their index. After doing a > commit to ensure they existed, I realized that in some instances, the time > to load the cache tree exceeded the time to

Re: Temporary git files for the gitdir created on a separate drive in workdir

2018-09-07 Thread Junio C Hamano
Hultqvist writes: > Considering that the gitdir could be located on a different drive than > the workdir wouldn't it make more sense to create the temporary files > in a subdirectory inside the gitdir rather tan in the workdir? I do not think we intend to create temporary files, whose final

Re: [PATCH 01/11] string_list: print_string_list to use trace_printf

2018-09-07 Thread Junio C Hamano
Jeff King writes: > I guess the question is: is this a thing we would want to make available > to code to leave in all the time? Or is it just for sticking in > temporarily for a quick dump? > > If the former, then I think it needs the early-return at the least (and > probably _should_ have the

Re: [PATCH] diff: allow --recurse-submodules as an synonym for --submodule

2018-09-07 Thread Junio C Hamano
Jonathan Nieder writes: > When I think about it this way, I suspect that (B) will provide a > better experience than (A), so this diff change doesn't seem like a > step in the wrong direction. OK, that's fair.

Re: [PATCH] http-backend: allow empty CONTENT_LENGTH

2018-09-07 Thread Junio C Hamano
Max Kirillov writes: > Actually, another reason for the latest issue was that CONTENT_LENGTH > is parsed for GET requests at all. It should be parsed only for POST > requests, or, rather, only for upoad-pack and receive-pack requests. Not really. The layered design of the HTTP protocol means

Re: [PATCH] http-backend: allow empty CONTENT_LENGTH

2018-09-06 Thread Junio C Hamano
Max Kirillov writes: > According to RFC3875, empty environment variable is equivalent to unset, > and for CONTENT_LENGTH it should mean zero body to read. > > However, as discussed in [1], unset CONTENT_LENGTH is also used for > chunked encoding to indicate reading until EOF, so keep this

Re: [PATCH 1/5] t1700-split-index: drop unnecessary 'grep'

2018-09-06 Thread Junio C Hamano
SZEDER Gábor writes: > The test 'disable split index' in 't1700-split-index.sh' runs the > following pipeline: > > cmd | grep | sed s/// > > Drop that 'grep' from the pipeline, and let 'sed' take over its > duties. > > Signed-off-by: SZEDER Gábor > --- Obviously good ;-) Thanks. >

Re: [PATCH 1/2] submodule.c: convert submodule_move_head new argument to object id

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > All callers use oid_to_hex to convert the desired oid to a string before > calling submodule_move_head. Defer the conversion to the > submodule_move_head as it will turn out to be useful in a bit. > > Signed-off-by: Stefan Beller > --- > > This is also part of the other

Re: [PATCH] diff: allow --recurse-submodules as an synonym for --submodule

2018-09-06 Thread Junio C Hamano
Jonathan Nieder writes: > It seems like various commands are gaining --recurse-submodules options > taking different kinds of arguments: > > - clone takes --recurse-submodules= > - fetch takes --recurse-submodules= > - after this patch, diff takes --recurse-submodules= > > Is there a unifying

Re: [PATCH v2 00/18] builtin rebase options

2018-09-06 Thread Junio C Hamano
Junio C Hamano writes: > I've rebuilt the collection of topics up to pk/rebase-in-c-6-final > with these two updated series twice, once doing it manually, like I > did the last time, and another using "rebase -i -r" on top of the > updated pk/rebase-in-c-4-opts. The

Re: [PATCH v2 00/18] builtin rebase options

2018-09-06 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > This patch series completes the support for all rebase options in the > builtin rebase, e.g. --signoff, rerere-autoupdate, etc. > > It is based on pk/rebase -in-c-3-acts. ... which in turn was based on pk/rebase-in-c-2-basic that just got

Re: [PATCH v3] Allow aliases that include other aliases

2018-09-06 Thread Junio C Hamano
Jeff King writes: > On Thu, Sep 06, 2018 at 12:16:58PM +0200, Tim Schumacher wrote: > >> @@ -691,17 +692,23 @@ static int run_argv(int *argcp, const char ***argv) >> /* .. then try the external ones */ >> execv_dashed_external(*argv); >> >> -/* It could be

Re: [PATCH 08/11] submodule.c: do not copy around submodule list

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > 'calculate_changed_submodule_paths' uses a local list to compute the > changed submodules, and then produces the result by copying appropriate > items into the result list. > > Instead use the result list directly and prune items afterwards > using

Re: [PATCH 07/11] submodule: move global changed_submodule_names into fetch submodule struct

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > The `changed_submodule_names` are only used for fetching, so let's make it > part of the struct that is passed around for fetching submodules. Yay.

Re: [PATCH 06/11] submodule.c: sort changed_submodule_names before searching it

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > Instead of sorting it after we created an unsorted list, we could insert > correctly into the list. It is unclear what problem you are solving, especially with subjunctive "could" there. We are creating an unsorted list and then sorting it and you see it as a problem

Re: [PATCH 05/11] submodule.c: fix indentation

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > The submodule subsystem is really bad at staying within 80 characters. > Fix it while we are here. > > Signed-off-by: Stefan Beller > --- > submodule.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/submodule.c b/submodule.c > index

Re: [PATCH 04/11] submodule.c: convert submodule_move_head new argument to object id

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > All callers use oid_to_hex to convert the desired oid to a string before > calling submodule_move_head. Defer the conversion to the > submodule_move_head as it will turn out to be useful in a bit. I would think this is a good change even without "as it will turn out..."

Re: [PATCH 03/11] sha1-array: provide oid_array_filter

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > +/* Call fn for each oid, and retain it if fn returns 0, remove it otherwise > */ > +int oid_array_filter(struct oid_array *array, > + for_each_oid_fn fn, > + void *cbdata); Comparing this with object_array_filter(), which I think this

Re: [PATCH 02/11] string-list.h: add string_list_{pop, last} functions

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > A string list can be used as a stack, but should we? verb missing. "We can use a string list as ..., but should we?" is readable. "A string list can be ..., but should it be?" also is. > A later patch shows > how useful this will be. Instead of all of the above, how

Re: [PATCH 01/11] string_list: print_string_list to use trace_printf

2018-09-06 Thread Junio C Hamano
Stefan Beller writes: > It is a debugging aid, so it should print to the debugging channel. ... and rename it with trace_ prefix. Use of trace_printf() is nice, as we can control its behavior at runtime ;-) > Signed-off-by: Stefan Beller > --- > string-list.c | 6 +++--- > string-list.h | 4

Re: What's cooking in git.git (Sep 2018, #01; Tue, 4)

2018-09-05 Thread Junio C Hamano
Jeff King writes: >> [1]: >> https://public-inbox.org/git/20180830075431.gf11...@sigill.intra.peff.net/ > > Yeah, I'm not sure which is easier for Junio. I figured by replying > inline, it makes it easy to pick up on top of the others (since it > really does depend on them and should be in the

Re: [RFC PATCH v2] Allow aliases that include other aliases

2018-09-05 Thread Junio C Hamano
Jeff King writes: >> This is what I've come up with to prevent looping aliases. I'm not too >> happy with the number of indentations needed, but this seemed to be the >> easiest way to search an array for a value. > > I think this approach is OK, though I wonder if we'd also be fine with > just:

Re: [PATCH 1/2] commit-graph write: add progress output

2018-09-05 Thread Junio C Hamano
Derrick Stolee writes: >>> for (i = 0; i < commits->nr; i++) { >>> + display_progress(progress, i); >>> if (commits->list[i]->generation != GENERATION_NUMBER_INFINITY >>> && >>> commits->list[i]->generation != GENERATION_NUMBER_ZERO) >>>

Re: How to handle patch series conflicts

2018-09-05 Thread Junio C Hamano
Stephen & Linda Smith writes: > Junio - > > On Tuesday, September 4, 2018 10:27:26 AM MST Junio C Hamano wrote: >> > t7500-commit.sh >> > t7501-commit.sh >> > t7502-commit.sh >> > t7509-commit.sh >> >> These seem to have organically g

Re: [PATCH v2 24/24] Rename functions to avoid breaking in-flight topics

2018-09-05 Thread Junio C Hamano
Stefan Beller writes: > Presumably you merge the tip of this series (which contains 24/24) > with the other in-flight topics, that make new uses of > init_revisions(revs, prefix), which 24/24 allows. Going on either > parent side of such a merge will have working commits, that compile. > > So

Re: What's cooking in git.git (Sep 2018, #01; Tue, 4)

2018-09-05 Thread Junio C Hamano
Eric Sunshine writes: > This description mischaracterizes what these changes are about. Thanks for a replacement text; very much appreciated.

Re: [RFC PATCH v2] Allow aliases that include other aliases

2018-09-05 Thread Junio C Hamano
Tim Schumacher writes: > @@ -691,17 +693,34 @@ static int run_argv(int *argcp, const char ***argv) > /* .. then try the external ones */ > execv_dashed_external(*argv); > > + /* Increase the array size and add the current > + * command to

Re: [PATCH] reopen_tempfile(): truncate opened file

2018-09-05 Thread Junio C Hamano
Jeff King writes: > On Wed, Sep 05, 2018 at 09:54:42AM -0700, Junio C Hamano wrote: > >> Jeff King writes: >> >> >> > So AFAIK this fsck catches everything and yields a non-zero exit in the >> >> > error case. And it should work for even a singl

Re: [PATCH] reopen_tempfile(): truncate opened file

2018-09-05 Thread Junio C Hamano
Jeff King writes: >> > So AFAIK this fsck catches everything and yields a non-zero exit in the >> > error case. And it should work for even a single byte of rubbish. >> >> Yes you're right. I forgot about the trailing hash. > > Thanks, I was worried that I was missing something. ;) > > Maybe it

Re: What's cooking in git.git (Sep 2018, #01; Tue, 4)

2018-09-05 Thread Junio C Hamano
Eric Sunshine writes: > On Wed, Sep 5, 2018 at 4:29 AM Ævar Arnfjörð Bjarmason > wrote: >> I recently gained access to a Solaris 10 SPARC (5.10) box and discovered >> that the chainlint.sed implementation in 2.19.0 has more sed portability >> issues. >> >> First, whoever implemented the

Re: jc/rebase-in-c-9-fixes, was Re: What's cooking in git.git (Sep 2018, #01; Tue, 4)

2018-09-05 Thread Junio C Hamano
Johannes Schindelin writes: > On Tue, 4 Sep 2018, Junio C Hamano wrote: > >> * jc/rebase-in-c-9-fixes (2018-09-04) 1 commit >> - rebase: re-add forgotten -k that stands for --keep-empty >> (this branch uses ag/rebase-i-in-c, >> js/rebase-in-c-5.5-work-with

Re: Re*: [PATCH 1/2] rebase -i --autosquash: demonstrate a problem skipping the last squash

2018-09-05 Thread Junio C Hamano
Johannes Schindelin writes: > On Tue, 4 Sep 2018, Junio C Hamano wrote: > >> "Johannes Schindelin via GitGitGadget" >> writes: >> >> > + test_must_fail git -c core.editor="grep -q ^pick" \ >> > + rebase -ki --autosquas

What's cooking in git.git (Sep 2018, #01; Tue, 4)

2018-09-04 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. Git 2.19-rc2 is out. Hopefully

Re: [PATCH 1/8] trace2: create new combined trace facility

2018-09-04 Thread Junio C Hamano
Stefan Beller writes: >> The API defines both fixed-field and printf-style functions. >> >> The trace2 performance tracing includes thread-specific function >> nesting and timings. > > So this only adds the new API, and we need to merge the TRACE > into the TRACE2 later? If this is a rhetorical

Re: [PATCH 2/2] commit-graph verify: add progress output

2018-09-04 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > For the reasons explained in the "commit-graph write: add progress > output" commit leading up to this one, emit progress on "commit-graph > verify". Since e0fd51e1d7 ("fsck: verify commit-graph", 2018-06-27) > "git fsck" has called this command if

Re: [PATCH 1/2] commit-graph write: add progress output

2018-09-04 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Before this change the "commit-graph write" command didn't report any Please describe the pre-patch state in present tense without "Before this change". > progress. On my machine this command takes more than 10 seconds to > write the graph for linux.git, and

Re: [PATCH v2 24/24] Rename functions to avoid breaking in-flight topics

2018-09-04 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > The three functions init_revisions(), diff_setup() and rerere() are > prefixed temporarily with repo_ to avoid breaking other topics which > add new call sites for these functions. This is a temporary > measure. Once everything is merged, it will be reverted and

Re: [PATCH v2 22/24] revision.c: remove implicit dependency on the_index

2018-09-04 Thread Junio C Hamano
Stefan Beller writes: >> - init_revisions(revs, prefix); >> + init_revisions(revs, the_repository, prefix); > > Thanks for this patch! > > At first I wondered why we put the repository as the second argument, > but that comes down to personal preference, so I wanted to keep it

Re: [PATCH v7 7/7] list-objects-filter: implement filter tree:0

2018-09-04 Thread Junio C Hamano
Matthew DeVore writes: > @@ -50,6 +50,10 @@ static int gently_parse_list_objects_filter( > return 0; > } > > + } else if (!strcmp(arg, "tree:0")) { > + filter_options->choice = LOFC_TREE_NONE; > + return 0; > + This is not wrong

Re: [PATCH v7 6/7] list-objects-filter: use BUG rather than die

2018-09-04 Thread Junio C Hamano
Matthew DeVore writes: > In some cases in this file, BUG makes more sense than die. In such > cases, a we get there from a coding error rather than a user error. > > 'return' has been removed following some instances of BUG since BUG does > not return. > > Signed-off-by: Matthew DeVore > ---

Re: [PATCH v7 5/7] revision: mark non-user-given objects instead

2018-09-04 Thread Junio C Hamano
Matthew DeVore writes: > diff --git a/revision.h b/revision.h > index 51189..2d381e636 100644 > --- a/revision.h > +++ b/revision.h > @@ -8,7 +8,11 @@ > #include "diff.h" > #include "commit-slab-decl.h" > > -/* Remember to update object flag allocation in object.h */ > +/* Remember to

Re: [PATCH] i18n: fix dangling dot in die() messages

2018-09-04 Thread Junio C Hamano
Jean-Noël Avila writes: > On 04/09/2018, Ævar Arnfjörð Bjarmason wrote:On Tue, Sep 4, 2018 at 4:59 > PM Jean-Noel Avila wrote: >> Your commit message says "dangling dot"... > > The dot is dangling on its own line. I don't really catch why this would > be needed. > >> >>> diff --git

Re: [PATCH 2/4] t5310: test delta reuse with bitmaps

2018-09-04 Thread Junio C Hamano
Stefan Beller writes: > From some offline discussion, maybe we want to adapt a philosophy of > > Each patch needs to add a test, that fails when the patch > is not applied, but succeeds when it is applied. This shows > that _some_ code in the patch is exercised at least. > > (and

Re: [PATCH v4 00/12] Hash-independent tests (part 3)

2018-09-04 Thread Junio C Hamano
Duy Nguyen writes: > On Tue, Sep 4, 2018 at 1:26 AM brian m. carlson > wrote: >> >> This is the next in the series of improvements to make tests >> hash-independent. > > If it helps, I looked over the series and didn't find anything questionable. Thanks. I'll tick the message I am resopnding

Re: [PATCH] i18n: fix mistakes in translated strings

2018-09-04 Thread Junio C Hamano
Jiang Xin writes: > Jean-Noël Avila 于2018年8月24日周五 上午5:02写道: >> diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c >> index 2bcc70fdfe..b56028ba9d 100644 >> --- a/builtin/submodule--helper.c >> +++ b/builtin/submodule--helper.c >> @@ -542,7 +542,7 @@ static void

Re: [PATCH v6] Implement --first-parent for git rev-list --bisect

2018-09-04 Thread Junio C Hamano
Duy Nguyen writes: > Hmm.. no? the commit-slab stores the pointer to the weight, not the > weight itself, so we still have the ability to check the third case, I > think. Good, thanks.

Re: [PATCH v2 1/1] read-cache.c: optimize reading index format v4

2018-09-04 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Index format v4 requires some more computation to assemble a path > based on a previous one. The current code is not very efficient > because > > - it doubles memory copy, we assemble the final path in a temporary >first before putting it back to a

Re*: [PATCH 1/2] rebase -i --autosquash: demonstrate a problem skipping the last squash

2018-09-04 Thread Junio C Hamano
630a70ea ("builtin rebase: support `keep-empty` option", 2018-08-08) forgot that the option comes with a short-and-sweet -k synonym. Add it back. Signed-off-by: Junio C Hamano --- builtin/rebase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/rebase.c b/buil

Re: [PATCH v2 1/1] read-cache.c: optimize reading index format v4

2018-09-04 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > +static struct cache_entry *create_from_disk(struct index_state *istate, > struct ondisk_cache_entry *ondisk, > unsigned long *ent_size, > -

Re: [RFC PATCH] Allow aliases that include other aliases

2018-09-04 Thread Junio C Hamano
Tim Schumacher writes: > I submitted this as RFC because I'm not sure whether disallowing > nested aliases was an intentional design choice. The done_alias > check implies that disallowing is intended, but the direct > recursion check for aliases that call themselves opposes that. "direct

Re: test files with same names?

2018-09-04 Thread Junio C Hamano
Duy Nguyen writes: > t2000-checkout-cache-clash.sh > t2001-checkout-cache-clash.sh These date back to 368f99d5 ("[PATCH 2/2] The core GIT tests: recent additions and fixes.", 2005-05-13) which later were renamed by f50c9f76 ("Rename some test scripts and describe the naming convention",

Re: [PATCH 2/2] rebase -i: be careful to wrap up fixup/squash chains

2018-09-04 Thread Junio C Hamano
> diff --git a/sequencer.c b/sequencer.c > index 84bf598c3e..ac5c805c14 100644 > --- a/sequencer.c > +++ b/sequencer.c > @@ -3578,9 +3578,20 @@ static int commit_staged_changes(struct replay_opts > *opts, >* the commit message and if there was a squash, let the user >

Re: [BUG] index corruption with git commit -p

2018-09-04 Thread Junio C Hamano
Jeff King writes: >> diff --git a/builtin/commit.c b/builtin/commit.c >> index 2be7bdb331..60f30b3780 100644 >> --- a/builtin/commit.c >> +++ b/builtin/commit.c >> @@ -432,6 +432,7 @@ static const char *prepare_index(int argc, const char >> **argv, const char *prefix >> if

Re: non-smooth progress indication for git fsck and git gc

2018-09-04 Thread Junio C Hamano
Jeff King writes: > That code isn't lib-ified enough to be run in process, but I think the > patch below should give similar behavior to what fsck currently does. > We'd need to tell index-pack to use our fsck.* config for its checks, I > imagine. The progress here is still per-pack, but I think

Re: [PATCH 2/5] t5303: test some corrupt deltas

2018-08-31 Thread Junio C Hamano
Jeff King writes: > - make it clear to other observers that there's at least one person > who hopes this is not the norm for this list Make it at least two by counting me ;-) > - make a general reminder that collaborating on the Internet is hard, > but it's worth spending the extra

Re: [PATCH 2/5] t5303: test some corrupt deltas

2018-08-31 Thread Junio C Hamano
Jeff King writes: >> So instead of typing 3 lines, you can just say "yes we use echo that >> emulates Unix". > > I actually found Dscho's response much more informative than a simple > yes/no. > > At any rate, it sounds like we are probably OK with echo, but I think it > is still worth doing the

Re: [PATCH v5 2/9] push tests: make use of unused $1 in test description

2018-08-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Fix up a logic error in 380efb65df ("push tests: assert re-pushing > annotated tags", 2018-07-31), where the $tag_type_description variable > was assigned to but never used, unlike in the subsequently added > companion test for fetches in 2d216a7ef6 ("fetch

Re: What's cooking in git.git (Aug 2018, #06; Wed, 29)

2018-08-31 Thread Junio C Hamano
Elijah Newren writes: >> Suggestions for a better rewrite is very much appreciated. > > That makes sense. I'm not sure I can concisely convey all the right > points, but here's a stab at rewording: > > Recent addition of "directory rename" heuristics to the > merge-recursive backend makes the

Re: [PATCH 0/3] doc-diff: add "clean" mode & fix portability problem

2018-08-31 Thread Junio C Hamano
Eric Sunshine writes: > This series replaces Peff's solo patch[1] which updates "make clean" to > remove doc-diff's temporary directory. Rather than imbuing the Makefile > with knowledge specific to doc-diff's internals, this series adds a > "clean" mode to doc-diff which removes its temporary

Re: [GSoC][PATCH v8 00/20] Convert "git stash" to C builtin

2018-08-31 Thread Junio C Hamano
Paul-Sebastian Ungureanu writes: > This a new iteration of `stash.c`. What is new? > > * Some commits got squashed. The commit related to replacing > `git apply` child process was dropped since it wasn't the best > idea. > > * In v7, there was a bug [1] related to config `git stash show` >

Re: [PATCH 3/3] wt-status.c: Set the commitable flag in the collect phase.

2018-08-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > On Fri, Aug 31 2018, Stephen P. Smith wrote: > >> In an update to fix a bug with "commit --dry-run" it was found that >> the commitable flag was broken. The update was, at the time, >> accepted as it was better than the previous version. > > What update is

<    6   7   8   9   10   11   12   13   14   15   >