Re: [PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Carlo Arenas
On Mon, Aug 5, 2019 at 2:53 PM Junio C Hamano wrote: > > Carlo Arenas writes: > > > LGTM except from the suggestion below that might make the code more > > "standard" > > and probably be a good base for a similar PCRE1 fix > >> > >> +static pcre2_general_context *get_pcre2_context(void) > >> +{

Re: RFC - Git Developer Blog

2019-08-05 Thread Christian Couder
On Tue, Aug 6, 2019 at 5:35 AM Junio C Hamano wrote: > > Emily Shaffer writes: > > > In backchannels recently there has been some discussion about the idea > > of a Git-project-blessed blog written by Git contributors, generally > > covering usability tips or overviews of the internals of Git whi

Re: RFC - Git Developer Blog

2019-08-05 Thread Andrew Ardill
On Tue, 6 Aug 2019 at 11:51, Emily Shaffer wrote: > Are folks interested in writing and reviewing this kind of content? The idea sounds great, and I would be happy to review content - even if it's only for readability and spelling! In terms of collaborating, I've found the processes over at Git

Re: amend warnings with no changes staged

2019-08-05 Thread Jeff King
On Mon, Aug 05, 2019 at 07:16:18PM -0700, Jonathan Nieder wrote: > Lukas Gross wrote: > > > I had intended to stage commits but forgot to do so. Git responded > > with a normal commit creation message, so I pushed to the remote to > > begin a CI build. When the build failed for the same reason, I

Re: amend warnings with no changes staged

2019-08-05 Thread Junio C Hamano
Junio C Hamano writes: > Jonathan Nieder writes: > Some non-judgemental descriptive output like $ git commit --amend --no-edit No changes. $ would address this case, without bothering people who are doing it intentionally. So I think there's room

Re: RFC - Git Developer Blog

2019-08-05 Thread Junio C Hamano
Emily Shaffer writes: > In backchannels recently there has been some discussion about the idea > of a Git-project-blessed blog written by Git contributors, generally > covering usability tips or overviews of the internals of Git which the > general public tend to find confusing. > ... > The idea

Re: amend warnings with no changes staged

2019-08-05 Thread Junio C Hamano
Jonathan Nieder writes: >>> Some non-judgemental descriptive output like >>> >>> $ git commit --amend --no-edit >>> No changes. >>> $ >>> >>> would address this case, without bothering people who are doing it >>> intentionally. So I think there's room for a simple improvement here. >

Re: amend warnings with no changes staged

2019-08-05 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> Lukas Gross wrote: >>> I had intended to stage commits but forgot to do so. Git responded >>> with a normal commit creation message, so I pushed to the remote to >>> begin a CI build. When the build failed for the same reason, I >>> realized [...

Re: [GSoC] My project blog

2019-08-05 Thread Matheus Tavares Bernardino
Hi, Here's my report from last week: https://matheustavares.gitlab.io/posts/week-11-wip-grep-protecting-textconv-and-submodules I'm working to protect the operations I left behind on the first version of the patchset[1]. And for that, I used a lot of the code Duy provided[2] me as an example in th

Re: amend warnings with no changes staged

2019-08-05 Thread Junio C Hamano
Jonathan Nieder writes: > Lukas Gross wrote: > >> I had intended to stage commits but forgot to do so. Git responded >> with a normal commit creation message, so I pushed to the remote to >> begin a CI build. When the build failed for the same reason, I >> realized I had forgotten to stage the ch

Re: amend warnings with no changes staged

2019-08-05 Thread Jonathan Nieder
Lukas Gross wrote: > I had intended to stage commits but forgot to do so. Git responded > with a normal commit creation message, so I pushed to the remote to > begin a CI build. When the build failed for the same reason, I > realized I had forgotten to stage the changes. An additional line in > th

Re: amend warnings with no changes staged

2019-08-05 Thread Jonathan Nieder
(administrivia: please don't top-post) Lukas Gross wrote: > I had intended to stage commits but forgot to do so. Git responded > with a normal commit creation message, so I pushed to the remote to > begin a CI build. When the build failed for the same reason, I > realized I had forgotten to stage

RFC - Git Developer Blog

2019-08-05 Thread Emily Shaffer
Hi all, In backchannels recently there has been some discussion about the idea of a Git-project-blessed blog written by Git contributors, generally covering usability tips or overviews of the internals of Git which the general public tend to find confusing. Ideally, we could use a channel like th

Кредитное финансирование и инвестиции

2019-08-05 Thread SUNRISE FUNDING LIMITED
Хорошего дня Мы являемся зарегистрированной Кредитной Инвестиционной Компанией в Англии, Великобритания, мы также зарегистрирован в турецко-британской торговой палате и Промышленность (TBCCI) мы работаем в обеих странах. Мы ищем бенефициаров, которые получают средства для расширения / перемещения

Re: amend warnings with no changes staged

2019-08-05 Thread Lukas Gross
Hi Jonathan, I had intended to stage commits but forgot to do so. Git responded with a normal commit creation message, so I pushed to the remote to begin a CI build. When the build failed for the same reason, I realized I had forgotten to stage the changes. An additional line in the response to th

Re: amend warnings with no changes staged

2019-08-05 Thread Jonathan Nieder
Hi, Lukas Gross wrote: > I have occasionally used git commit --amend without staging any > changes or modifying the commit message (--no-edit). Since this is > often done unintentionally, could amend warn when it is being used in > this way? Can you say more about the context? What were you try

amend warnings with no changes staged

2019-08-05 Thread Lukas Gross
Hi, I have occasionally used git commit --amend without staging any changes or modifying the commit message (--no-edit). Since this is often done unintentionally, could amend warn when it is being used in this way? Thanks!

[PATCH v4 1/4] t7503: verify proper hook execution

2019-08-05 Thread Josh Steadmon
t7503 did not verify that the expected hooks actually ran during testing. Fix that by making the hook scripts write their $0 into a file so that we can compare actual execution vs. expected execution. While we're at it, do some test style cleanups, such as using write_script() and doing setup insi

[PATCH v4 2/4] merge: do no-verify like commit

2019-08-05 Thread Josh Steadmon
From: Michael J Gruber f8b863598c ("builtin/merge: honor commit-msg hook for merges", 2017-09-07) introduced the no-verify flag to merge for bypassing the commit-msg hook, though in a different way from the implementation in commit.c. Change the implementation in merge.c to be the same as in com

[PATCH v4 3/4] git-merge: honor pre-merge-commit hook

2019-08-05 Thread Josh Steadmon
From: Michael J Gruber git-merge does not honor the pre-commit hook when doing automatic merge commits, and for compatibility reasons this is going to stay. Introduce a pre-merge-commit hook which is called for an automatic merge commit just like pre-commit is called for a non-automatic merge co

[PATCH v4 0/4] pre-merge-commit hook

2019-08-05 Thread Josh Steadmon
This series adds a new pre-merge-commit hook, similar in usage to pre-commit. It also improves hook testing in t7503, by verifying that the correct hooks are run or bypassed as expected. The original series was done by Michael J Gruber . I have addressed the outstanding review comments, and noted

[PATCH v4 4/4] merge: --no-verify to bypass pre-merge-commit hook

2019-08-05 Thread Josh Steadmon
From: Michael J Gruber Analogous to commit, introduce a '--no-verify' option which bypasses the pre-merge-commit hook. The shorthand '-n' is taken by '--no-stat' already. [js: * reworded commit message to reflect current state of --no-stat flag and new hook name * fixed flag document

[PATCH 1/1] merge-recursive: avoid directory rename detection in recursive case

2019-08-05 Thread Elijah Newren
Ever since commit 8c8e5bd6eb33 ("merge-recursive: switch directory rename detection default", 2019-04-05), the default handling with directory rename detection was to report a conflict and leave unstaged entries in the index. However, when creating a virtual merge base in the recursive case, we ab

Re: [PATCH 3/6] GIT-VERSION-GEN: Use sed instead of expr

2019-08-05 Thread Junio C Hamano
"lufia via GitGitGadget" writes: > From: lufia > > Plan 9 don't have expr(1). > > Signed-off-by: lufia > --- > GIT-VERSION-GEN | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN > index a0766f64ed..754d4486f5 100755 > --- a/GIT-VERSION-GE

Re: [PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Junio C Hamano
Carlo Arenas writes: > LGTM except from the suggestion below that might make the code more "standard" > and probably be a good base for a similar PCRE1 fix >> >> +static pcre2_general_context *get_pcre2_context(void) >> +{ >> + static pcre2_general_context *context; >> + >> + if (!con

Re: [RFC PATCH 2/2] grep: make default number of threads reflect runtime

2019-08-05 Thread Junio C Hamano
Carlo Marcelo Arenas Belón writes: > 5b594f457a (Threaded grep, 2010-01-25) added a hardcoded number of > threads(8) to use in grep and 89f09dd34e (grep: add --threads= > option and grep.threads configuration, 2015-12-15) made it configurable > through a knob as a workaround for systems where th

Re: [PATCH v2] l10n: reformat some localized strings for v2.23.0

2019-08-05 Thread Jeff King
On Mon, Aug 05, 2019 at 11:49:46AM -0700, Junio C Hamano wrote: > Jeff King writes: > > >>OPT_STRING('s', "source", &opts.from_treeish, "", > >> - N_("where the checkout from")), > >> + N_("where the checkout is from")), > > > > I think your or

[PATCH v2 2/2] tests: show the test name and number at the start of verbose output

2019-08-05 Thread SZEDER Gábor
The verbose output of every test looks something like this: expecting success: echo content >file && git add file && git commit -m "add file" [master (root-commit) d1fbfbd] add file Author: A U Thor 1 file changed, 1 insertion(+) create mode 100644 file

[PATCH v2 0/2] tests: show the test name and number at the start of verbose output

2019-08-05 Thread SZEDER Gábor
Include the test script number, test number, and the test name at the start of the verbose output of each test, to help navigating the tests' logs. Changes since v1: - Include not only the test name, but the test script number and test number as well. - An additional small adjustment was

[PATCH v2 1/2] t0000-basic: use realistic test script names in the verbose tests

2019-08-05 Thread SZEDER Gábor
Our test scripts are named something like 't1234-command.sh', but the script names used in 't-basic.sh' don't follow this naming convention. Normally this doesn't matter, because the test scripts themselves don't care how they are called. However, the next patch will start to include the test

Re: [RFC PATCH v3] grep: treat PCRE2 jit compilation memory error as non fatal

2019-08-05 Thread Junio C Hamano
Carlo Arenas writes: > * code is suspiciously similar to one[2] that was rejected, but > hopefully commit message is better > ... > [2] https://public-inbox.org/git/20181209230024.43444-3-care...@gmail.com/ I do not recall ever rejecting that one. It did not come with a good proposed log messag

Re: [PATCH] restore: fix typo in docs

2019-08-05 Thread Junio C Hamano
William Chargin writes: > Signed-off-by: William Chargin > --- > Assuming this is a typo, because I can't parse the sentence. Looks good. Thanks. > > Documentation/git-restore.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/git-restore.txt b/Documen

Re: [PATCH v2] grep: avoid leak of chartables in PCRE2

2019-08-05 Thread Junio C Hamano
Carlo Arenas writes: > Thanks for fixing the conflicts in pu as well; apologize if I could > had made it easier by doings things differently With many topics in flight, conflicts between topics happen all the time. Thanks for checking to catch a mismerge.

Re: [PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Johannes Schindelin
Hi Carlo, On Mon, 5 Aug 2019, Carlo Arenas wrote: > And forgot to mention that technically these are not UTF-8 tables but > single byte tables like for example the ones used with en_US.ISO8859-1 Thank you for pointing that out, I completely missed that. Junio, do you want me to re-send, or can

Re: [PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Johannes Schindelin
Hi Carlo, On Mon, 5 Aug 2019, Carlo Arenas wrote: > On Mon, Aug 5, 2019 at 4:51 AM Johannes Schindelin via GitGitGadget > wrote: > > > > Since 7d3bf769994 (grep: avoid leak of chartables in PCRE2, 2019-08-01), > > we try to release the UTF-8 tables obtained via `pcre2_maketables()`. To > > do th

Re: [PATCH v2] l10n: reformat some localized strings for v2.23.0

2019-08-05 Thread Junio C Hamano
Jeff King writes: >> OPT_STRING('s', "source", &opts.from_treeish, "", >> - N_("where the checkout from")), >> + N_("where the checkout is from")), > > I think your original "where to checkout from" is better. Would we even want to do s/wh

Re: js/visual-studio, was Re: What's cooking in git.git (Aug 2019, #01; Thu, 1)

2019-08-05 Thread Junio C Hamano
Johannes Schindelin writes: >> Yup. I think they are now in good shape to be among the first to >> graduate post release. Building the warning facility necessary to >> start dropping the $GIT_DIR/branches/ support would be too late for >> this cycle, but now this topic is independent from that,

Re: [RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-05 Thread Josh Steadmon
On 2019.08.05 11:34, Jeff Hostetler wrote: > > > On 8/2/2019 6:02 PM, Josh Steadmon wrote: > > trace2 can write files into a target directory. With heavy usage, this > > directory can fill up with files, causing difficulty for > > trace-processing systems. > > > > This patch adds a config option

Re: [RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-05 Thread Josh Steadmon
On 2019.08.05 20:01, SZEDER Gábor wrote: > On Fri, Aug 02, 2019 at 03:02:35PM -0700, Josh Steadmon wrote: > > +test_expect_success "don't overload target directory" ' > > + mkdir trace_target_dir && > > + test_when_finished "rm -r trace_target_dir" && > > + ( > > + GIT_TRACE2_MAX_FI

Re: [RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-05 Thread SZEDER Gábor
On Fri, Aug 02, 2019 at 03:02:35PM -0700, Josh Steadmon wrote: > +test_expect_success "don't overload target directory" ' > + mkdir trace_target_dir && > + test_when_finished "rm -r trace_target_dir" && > + ( > + GIT_TRACE2_MAX_FILES=5 && > + export GIT_TRACE2_MA

Re: [PATCH 3/3] commit-graph: error out on invalid commit oids in 'write --stdin-commits'

2019-08-05 Thread SZEDER Gábor
On Mon, Aug 05, 2019 at 09:57:19AM -0400, Derrick Stolee wrote: > On 8/5/2019 4:02 AM, SZEDER Gábor wrote: > > While 'git commit-graph write --stdin-commits' expects commit object > > ids as input, it accepts and silently skips over any invalid commit > > object ids, and still exits with success: >

Re: [PATCH 0/1] Fix two documentation typos

2019-08-05 Thread Junio C Hamano
Jeff King writes: > On Sat, Aug 03, 2019 at 07:48:20AM -0700, Junio C Hamano wrote: > >> > Then I noticed a "can not" and updated that and other occurrences in >> > Documentation to cannot. The glossary sentence with "can not" was >> > "Consequently, an object can not be changed." To me, that rea

[PATCH 0/1] [v2.23.0 BUG] commit-graph: fix bug around octopus merges

2019-08-05 Thread Derrick Stolee via GitGitGadget
I come, hat in hand, with a bug-fix for a bug that I wrote. I just happened to discover this issue while playing around with turning the commit-graph on by default and stumbled into this warning. Please see the commit message for full details, but putting octopus merges in a tip commit-graph file

[PATCH 1/1] commit-graph: fix bug around octopus merges

2019-08-05 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee In 1771be90 "commit-graph: merge commit-graph chains" (2019-06-18), the method sort_and_scan_merged_commits() was added to merge the commit lists of two commit-graph files in the incremental format. Unfortunately, there was an off-by-one error in that method around incrementi

Re: [PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Carlo Arenas
And forgot to mention that technically these are not UTF-8 tables but single byte tables like for example the ones used with en_US.ISO8859-1 Carlo

Re: [PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Carlo Arenas
On Mon, Aug 5, 2019 at 4:51 AM Johannes Schindelin via GitGitGadget wrote: > > Since 7d3bf769994 (grep: avoid leak of chartables in PCRE2, 2019-08-01), > we try to release the UTF-8 tables obtained via `pcre2_maketables()`. To > do that, we use the function `free()`. That is all fine and dandy as

Re: [RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-05 Thread Jeff Hostetler
On 8/2/2019 6:02 PM, Josh Steadmon wrote: trace2 can write files into a target directory. With heavy usage, this directory can fill up with files, causing difficulty for trace-processing systems. This patch adds a config option (trace2.maxFiles) to set a maximum number of files that trace2 wi

Re: [PATCH 3/3] commit-graph: error out on invalid commit oids in 'write --stdin-commits'

2019-08-05 Thread Derrick Stolee
On 8/5/2019 4:02 AM, SZEDER Gábor wrote: > While 'git commit-graph write --stdin-commits' expects commit object > ids as input, it accepts and silently skips over any invalid commit > object ids, and still exits with success: > > # nonsense > $ echo not-a-commit-oid | git commit-graph write --

[PATCH 0/1] Fix a problem with PCRE2 and nedmalloc, found via Azure Pipelines

2019-08-05 Thread Johannes Schindelin via GitGitGadget
For a couple of days, maybe even a week, pu fails consistently, in the Windows job where it tests t7816. The symptom is a segmentation fault. I finally got to diagnose this, and it looked at first as if there was yet another buffer overrun that was so small that valgrind failed to detect it (see h

[PATCH 1/1] pcre2: allow overriding the system allocator

2019-08-05 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin Since 7d3bf769994 (grep: avoid leak of chartables in PCRE2, 2019-08-01), we try to release the UTF-8 tables obtained via `pcre2_maketables()`. To do that, we use the function `free()`. That is all fine and dandy as long as that refers to the system allocator. However, w

Re: [PATCH] test-lib-functions: show the test name at the start of verbose output

2019-08-05 Thread Johannes Schindelin
Hi Gábor, On Mon, 5 Aug 2019, SZEDER Gábor wrote: > On Sun, Aug 04, 2019 at 09:14:46PM +0200, Johannes Schindelin wrote: > > > > On Sat, 3 Aug 2019, SZEDER Gábor wrote: > > > > > So the dummy test above would start like this: > > > > > > expecting success of 'commit works': > > > echo

Re: [PATCH 0/3] commit-graph: error out on invalid commit oids in 'write --stdin-commits'

2019-08-05 Thread SZEDER Gábor
On Mon, Aug 05, 2019 at 10:02:37AM +0200, SZEDER Gábor wrote: > While 'git commit-graph write --stdin-commits' expects commit object > ids as input, it accepts and silently skips over any invalid commit > object ids, and still exits with success: > > $ echo not-a-commit-oid | git commit-graph wr

Re: [PATCH] test-lib-functions: show the test name at the start of verbose output

2019-08-05 Thread SZEDER Gábor
On Sun, Aug 04, 2019 at 09:14:46PM +0200, Johannes Schindelin wrote: > Hi, > > On Sat, 3 Aug 2019, SZEDER Gábor wrote: > > > So the dummy test above would start like this: > > > > expecting success of 'commit works': > > echo content >file && > > [...] > > Maybe it would make sense

[PATCH 3/3] commit-graph: error out on invalid commit oids in 'write --stdin-commits'

2019-08-05 Thread SZEDER Gábor
While 'git commit-graph write --stdin-commits' expects commit object ids as input, it accepts and silently skips over any invalid commit object ids, and still exits with success: # nonsense $ echo not-a-commit-oid | git commit-graph write --stdin-commits $ echo $? 0 # sometimes I forgot

[PATCH 1/3] t5318-commit-graph: use 'test_expect_code'

2019-08-05 Thread SZEDER Gábor
In 't5318-commit-graph.sh' the test 'close with correct error on bad input' manually verifies the exit code of a 'git commit-graph write' command. Use 'test_expect_code' instead. Signed-off-by: SZEDER Gábor --- t/t5318-commit-graph.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) dif

[PATCH 2/3] commit-graph: turn a group of write-related macro flags into an enum

2019-08-05 Thread SZEDER Gábor
Signed-off-by: SZEDER Gábor --- builtin/commit-graph.c | 6 +++--- builtin/gc.c | 2 +- commit-graph.c | 11 ++- commit-graph.h | 13 - 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c

[PATCH 0/3] commit-graph: error out on invalid commit oids in 'write --stdin-commits'

2019-08-05 Thread SZEDER Gábor
While 'git commit-graph write --stdin-commits' expects commit object ids as input, it accepts and silently skips over any invalid commit object ids, and still exits with success: $ echo not-a-commit-oid | git commit-graph write --stdin-commits $ echo $? $ ls -l .git/objects/info/commit-graph