[PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread brian m. carlson
When applying multiple patches with git am, or when rebasing using the am backend, it's possible that one of our patches has updated a gitattributes file. Currently, we cache this information, so if a file in a subsequent patch has attributes applied, the file will be written out with the attribute

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread Taylor Blau
Hi brian, On Fri, Aug 09, 2019 at 10:02:17AM +, brian m. carlson wrote: > When applying multiple patches with git am, or when rebasing using the > am backend, it's possible that one of our patches has updated a > gitattributes file. Currently, we cache this information, so if a > file in a sub

Re: Git For Windows' installer can't see my Atom installation.

2019-08-09 Thread Taylor Blau
Hi Jadian, On Fri, Aug 09, 2019 at 12:31:12AM -0500, Jadian Radiator wrote: > Git For Windows' installer can't see my Atom installation. > I got Atom directly from Atom's official site. This is the Git mailing list, which does not answers questions about Git for Windows, or Atom, both of which ar

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Taylor Blau
Hi Ariadne, On Thu, Aug 08, 2019 at 10:21:02PM -0500, Ariadne Conill wrote: > Hello, > > On Thu, Aug 8, 2019 at 10:07 PM Phil Hord wrote: > > > > The issue of deadnaming aside, turning on log.mailmap by default is > > the sensible thing to do given that other Git features already honor > > it tha

Re: [RFC PATCH v5 0/3] grep: almost no more leaks, hopefully no crashes

2019-08-09 Thread Carlo Arenas
disregard this version, it still broken (and wouldn't even build on some cases), the reasons why are still unclear though but at least it might seem from the last known run in windows that segfaults were prevented at last and something was still off enough to trigger a BUG (shouldn't be a concern w

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread brian m. carlson
On 2019-08-09 at 11:14:52, Taylor Blau wrote: > > diff --git a/apply.c b/apply.c > > index cde95369bb..b959b88b8e 100644 > > --- a/apply.c > > +++ b/apply.c > > @@ -4643,6 +4643,7 @@ static int apply_patch(struct apply_state *state, > > struct patch *list = NULL, **listp = &list; > > int sk

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread Jeff King
On Fri, Aug 09, 2019 at 11:25:52AM +, brian m. carlson wrote: > > > + if (!flush_attributes && patch->new_name) { > > > + char *dummy = > > > strip_path_suffix(patch->new_name, GITATTRIBUTES_FILE); > > > > It's a shame that 'strip_path_suffix' doesn't

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Jeff King
On Thu, Aug 08, 2019 at 08:07:36PM -0700, Phil Hord wrote: > The long form you give there is to be used in case the old email > address is not a unique key. See 'git help shortlog'. > > The problem we have at work is that one woman's old email address > includes her deadname, like . I will > lea

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread brian m. carlson
On 2019-08-09 at 11:36:14, Jeff King wrote: > I think you could do this with: > > size_t len; > if (strip_suffix(patch->new_name, GITATTRIBUTES_FILE, &len) && > len > 0 && is_dir_sep(patch->new_name[len-1])) > flush_attributes = 1; > > Not sure if that is better or worse. It a

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread SZEDER Gábor
On Fri, Aug 09, 2019 at 07:36:14AM -0400, Jeff King wrote: > On Fri, Aug 09, 2019 at 11:25:52AM +, brian m. carlson wrote: > > > > > + if (!flush_attributes && patch->new_name) { > > > > + char *dummy = > > > > strip_path_suffix(patch->new_n

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread Jeff King
On Fri, Aug 09, 2019 at 02:43:18PM +0200, SZEDER Gábor wrote: > > I think you could do this with: > > > > size_t len; > > if (strip_suffix(patch->new_name, GITATTRIBUTES_FILE, &len) && > > len > 0 && is_dir_sep(patch->new_name[len-1])) > > flush_attributes = 1; > > > > Not su

RE: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Randall S. Becker
On 01 Aug 2019 13:05:12, Junio wrote: > >> *snip* I think this got missed in the shuffle, but I am getting questions about the topic from my own team that I cannot answer. I noticed that the switch and restore commands are now available in 2.23.0 but are not discussed in recent What's Cooking o

Re: [PATCH] git-gui: Call do_quit before destroying the main window

2019-08-09 Thread Pratyush Yadav
On 8/8/19 3:23 AM, Junio C Hamano wrote: Pratyush Yadav writes: I think you misunderstood me. I do not mean to create a GitHub pull request, because as you say, no one other than me and you will look at it. What I meant was that I can pile up a bunch of commits, and send them on this list here

[PATCH v3 2/7] trace2: trim whitespace in region messages in perf target format

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Avoid unecessary trailing whitespace in "region_enter" and "region_leave" messages in perf target format. Signed-off-by: Jeff Hostetler --- trace2/tr2_tgt_perf.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/trace2/tr2_tgt_perf.c b/tra

[PATCH v3 3/7] trace2: remove dead code in maybe_add_string_va()

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Remove an unnecessary "if" block in maybe_add_string_va(). Commit "ad006fe419e trace2: NULL is not allowed for va_list" changed "if (fmt && *fmt && ap)" to just "if (fmt && *fmt)" because it isn't safe to treat 'ap' as a pointer. This made the "if" block following it unnece

[PATCH v3 7/7] trace2: cleanup whitespace in perf format

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Make use of new sq_append_quote_argv_pretty() to normalize how we handle leading whitespace in perf format messages. Signed-off-by: Jeff Hostetler --- t/t0211-trace2-perf.sh | 4 ++-- trace2/tr2_tgt_perf.c | 31 --- 2 files changed, 22 inserti

[PATCH v3 6/7] trace2: cleanup whitespace in normal format

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Make use of new sq_append_quote_argv_pretty() to normalize how we handle leading whitespace in normal format messages. Signed-off-by: Jeff Hostetler --- trace2/tr2_tgt_normal.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/tr

[PATCH v3 4/7] trace2: trim trailing whitespace in normal format error message

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Avoid creating unnecessary trailing whitespace in normal target format error messages when the message is omitted. Signed-off-by: Jeff Hostetler --- trace2/tr2_tgt_normal.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trace2/tr2_tgt_normal.c b

[PATCH v3 0/7] trace2: clean up formatting in perf target format

2019-08-09 Thread Jeff Hostetler via GitGitGadget
V2 of this patch series cleans up some whitespace and column alignment issues in the trace2 perf and normal formats. It also removes some dead code. Jeff Hostetler (7): trace2: cleanup column alignment in perf target format trace2: trim whitespace in region messages in perf target format tra

[PATCH v3 5/7] quote: add sq_append_quote_argv_pretty()

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler sq_quote_argv_pretty() builds a "pretty" string from the given argv. It inserts whitespace before each value, rather than just between them, so the resulting string always has a leading space. Lets give callers an option to not have the leading space or have to ltrim() it la

[PATCH v3 1/7] trace2: cleanup column alignment in perf target format

2019-08-09 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Truncate/elide very long "filename:linenumber" field. Truncate region and data "category" field if necessary. Adjust overall column widths. Signed-off-by: Jeff Hostetler --- trace2/tr2_tgt_perf.c | 39 +-- 1 file changed, 29 insertions(+

RE: suggestion for improved docs on autocrlf

2019-08-09 Thread Yagnatinsky, Mark
After correcting spelling of renormalize, the end result of the script you gave is that line endings in working directory are CRLF, and in the repo are LF. Is that expected? Surprising? Not sure what you were trying to test there. I also fixed my script to use printf, new version is: (using co

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Jeff King
On Fri, Aug 09, 2019 at 10:06:06AM -0400, Randall S. Becker wrote: > On 01 Aug 2019 13:05:12, Junio wrote: > > >> *snip* > > I think this got missed in the shuffle, but I am getting questions about the > topic from my own team that I cannot answer. > > I noticed that the switch and restore comm

RE: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Randall S. Becker
On August 9, 2019 12:29 PM, Jeff King wrote: > On Fri, Aug 09, 2019 at 10:06:06AM -0400, Randall S. Becker wrote: > > > On 01 Aug 2019 13:05:12, Junio wrote: > > > >> *snip* > > > > I think this got missed in the shuffle, but I am getting questions about the > topic from my own team that I cannot

Re: [PATCH] blame: document actual range specifier behavior

2019-08-09 Thread Junio C Hamano
Junio C Hamano writes: > ... If anything, > perhaps such a description should go to "git help revisions", as it > is not just "blame" but "log". "The dots notation is not about > date-based cutoff, unlike the --since/--until options" is shared by > all history traversal tools. By this, I do not

Re: [RFC PATCH v5 0/3] grep: almost no more leaks, hopefully no crashes

2019-08-09 Thread René Scharfe
Am 09.08.19 um 13:24 schrieb Carlo Arenas: > disregard this version, it still broken (and wouldn't even build on > some cases), the reasons why are still unclear though but at least it > might > seem from the last known run in windows that segfaults were prevented > at last and something was still

Re: [PATCH v2 5/7] quote: add sq_quote_argv_pretty_ltrim

2019-08-09 Thread Jeff Hostetler
On 8/8/2019 6:49 PM, René Scharfe wrote: Am 08.08.19 um 21:04 schrieb Jeff Hostetler: On 8/8/2019 2:05 PM, Junio C Hamano wrote: Having made the primary purpose of the helper clearer leads me to wonder if "do not add SP before the first element, i.e. argv[0]", is really what we want.  If we

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Phil Hord
On Fri, Aug 9, 2019 at 4:41 AM Jeff King wrote: > > On Thu, Aug 08, 2019 at 08:07:36PM -0700, Phil Hord wrote: > > > The long form you give there is to be used in case the old email > > address is not a unique key. See 'git help shortlog'. > > > > The problem we have at work is that one woman's ol

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Junio C Hamano
"Randall S. Becker" writes: > On 01 Aug 2019 13:05:12, Junio wrote: >> >> *snip* > > I think this got missed in the shuffle, but I am getting questions > about the topic from my own team that I cannot answer. > > I noticed that the switch and restore commands are now available > in 2.23.0 but are

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Junio C Hamano
Jeff King writes: > I don't know of any plans for checkout in particular, but I think the > docs for restore/switch make it clear that it's way too early to start > scripting around them: > > $ git grep EXPERIMENTAL Documentation/ > Documentation/git-restore.txt:THIS COMMAND IS EXPERIMENTAL.

Re: [RFC PATCH v5 0/3] grep: almost no more leaks, hopefully no crashes

2019-08-09 Thread Junio C Hamano
René Scharfe writes: > So how about starting stupidly simple? You can test it everywhere, it > just needs libpcre2. It works without that library as well (tested with > "make USE_LIBPCRE= USE_LIBPCRE2= test"), but doesn't allocate anything > in that case, of course. The character tables leak f

Re: [PATCH v3 5/7] quote: add sq_append_quote_argv_pretty()

2019-08-09 Thread Junio C Hamano
"Jeff Hostetler via GitGitGadget" writes: > +/* > + * Legacy function to append each argv value, quoted as necessasry, > + * with whitespace before each value. This results in a leading > + * space in the result. > + */ > void sq_quote_argv_pretty(struct strbuf *dst, const char **argv) > +{ > +

Re: [PATCH v2 5/7] quote: add sq_quote_argv_pretty_ltrim

2019-08-09 Thread René Scharfe
Am 09.08.19 um 19:13 schrieb Jeff Hostetler: > On 8/8/2019 6:49 PM, René Scharfe wrote: >>   void sq_quote_argv_pretty(struct strbuf *dst, const char **argv) >>   { >> -    int i; >> - >> -    for (i = 0; argv[i]; i++) { >> -    strbuf_addch(dst, ' '); >> -    sq_quote_buf_pretty(dst, argv[

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Phil Hord
On Fri, Aug 9, 2019 at 10:48 AM Junio C Hamano wrote: > > Jeff King writes: > > > I don't know of any plans for checkout in particular, but I think the > > docs for restore/switch make it clear that it's way too early to start > > scripting around them: > > > > $ git grep EXPERIMENTAL Documenta

Re: [PATCH v3 0/7] trace2: clean up formatting in perf target format

2019-08-09 Thread Junio C Hamano
Thanks. Will queue.

Re: [PATCH v3 5/7] quote: add sq_append_quote_argv_pretty()

2019-08-09 Thread Jeff Hostetler
On 8/9/2019 1:54 PM, Junio C Hamano wrote: "Jeff Hostetler via GitGitGadget" writes: +/* + * Legacy function to append each argv value, quoted as necessasry, + * with whitespace before each value. This results in a leading + * space in the result. + */ void sq_quote_argv_pretty(struct st

Re: $> git branch splat response considered harmful

2019-08-09 Thread Philip Oakley
On 08/08/2019 22:28, Emily Shaffer wrote: On Thu, Aug 8, 2019 at 2:20 PM Bryan Turner wrote: On Thu, Aug 8, 2019 at 2:08 PM wrote: fwiw, jimc@frodo:~/prj-1/capnproto.git$ git branch -l * master I find the splat in the response unhelpful when wrapped in shell for loop, the splat expands into

RE: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Randall S. Becker
On August 9, 2019 1:45 PM, Junio C Hamano wrote: > "Randall S. Becker" writes: > > > On 01 Aug 2019 13:05:12, Junio wrote: > >> >> *snip* > > > > I think this got missed in the shuffle, but I am getting questions > > about the topic from my own team that I cannot answer. > > > > I noticed that th

[ANNOUNCE] Git v2.23.0-rc2

2019-08-09 Thread Junio C Hamano
A release candidate Git v2.23.0-rc2 is now available for testing at the usual places. It is comprised of 483 non-merge commits since v2.22.0, contributed by 67 people, 24 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The following pu

"git log" does not display refs info when executed via C# Process class on Windows

2019-08-09 Thread Cliff Schomburg
Hello, I have an open Git for Windows issue here: https://github.com/git-for-windows/git/issues/2285 "git log" works as expected from the command prompt. But when I execute it via C# Process class and read from Standard Output, the refs are missing. Is anyone familiar with this issue? Any ide

Re: "git log" does not display refs info when executed via C# Process class on Windows

2019-08-09 Thread SZEDER Gábor
On Fri, Aug 09, 2019 at 07:36:19PM +, Cliff Schomburg wrote: > I have an open Git for Windows issue here: > https://github.com/git-for-windows/git/issues/2285 > > "git log" works as expected from the command prompt. But when I execute it > via C# Process class and read from Standard Output,

Re: [PATCH] git-gui: Call do_quit before destroying the main window

2019-08-09 Thread Junio C Hamano
Pratyush Yadav writes: >> If you meant to volunteer to act as a git-gui maintainer, that would >> be wonderful. Then I do not have to play an interim maintainer. > > Yes, I do mean to volunteer to act as a git-gui maintainer. > > Is there something I should know other than > Documentation/howto/

RE: "git log" does not display refs info when executed via C# Process class on Windows

2019-08-09 Thread Cliff Schomburg
Adding --decorate gave me the desired result. Thanks for your help! -Original Message- From: SZEDER Gábor Sent: Friday, August 9, 2019 3:51 PM To: Cliff Schomburg Cc: git@vger.kernel.org Subject: Re: "git log" does not display refs info when executed via C# Process class on Windows O

Re: [RFC PATCH v3 0/3] grep: no leaks or crashes (windows testing needed)

2019-08-09 Thread Johannes Schindelin
Hi Carlo, On Thu, 8 Aug 2019, Carlo Arenas wrote: > PS. I might had broken something here as I can't see the test results > that failed > https://dev.azure.com/git/git/_build/results?buildId=857&view=ms.vss-test-web.build-test-results-tab The test results load dynamically, so you'll probably jus

Re: [ANNOUNCE] Git v2.23.0-rc2

2019-08-09 Thread Bhaskar Chowdhury
Thanks, Junio! will dig in. On 12:29 Fri 09 Aug 2019, Junio C Hamano wrote: A release candidate Git v2.23.0-rc2 is now available for testing at the usual places. It is comprised of 483 non-merge commits since v2.22.0, contributed by 67 people, 24 of which are new faces. The tarballs are fo

RE: [ANNOUNCE] Git v2.23.0-rc2

2019-08-09 Thread Randall S. Becker
On 12:29 Fri 09 Aug 2019, Junio C Hamano wrote: > >A release candidate Git v2.23.0-rc2 is now available for testing at the > >usual places. It is comprised of 483 non-merge commits since v2.22.0, > >contributed by 67 people, 24 of which are new faces. > > > >The tarballs are found at: > > > >h

Re: [RFC PATCH v5 0/3] grep: almost no more leaks, hopefully no crashes

2019-08-09 Thread Johannes Schindelin
Hi, On Fri, 9 Aug 2019, René Scharfe wrote: > Am 09.08.19 um 13:24 schrieb Carlo Arenas: > > disregard this version, it still broken (and wouldn't even build on > > some cases), the reasons why are still unclear though but at least it > > might > > seem from the last known run in windows that se

Git for Windows v2.23.0-rc2, was Re: [ANNOUNCE] Git v2.23.0-rc2

2019-08-09 Thread Johannes Schindelin
Team, On Fri, 9 Aug 2019, Junio C Hamano wrote: > A release candidate Git v2.23.0-rc2 is now available for testing > at the usual places. It is comprised of 483 non-merge commits > since v2.22.0, contributed by 67 people, 24 of which are new faces. > > The tarballs are found at: > > https://

RE: "git log" does not display refs info when executed via C# Process class on Windows

2019-08-09 Thread Cliff Schomburg
Strangely, when I run this command: Git log origin/master --pretty=oneline --decorate -1 I get the format I want from STDOUT. However, when I try to filter it to show only the tag refs: Git log origin/master --pretty=oneline --decorate --decorate-refs=^tag* -1 No refs are returned to standard

Re: "git log" does not display refs info when executed via C# Process class on Windows

2019-08-09 Thread Junio C Hamano
Cliff Schomburg writes: > Strangely, when I run this command: > > Git log origin/master --pretty=oneline --decorate -1 > > I get the format I want from STDOUT. However, when I try to filter it to > show only the tag refs: > > Git log origin/master --pretty=oneline --decorate --decorate-refs=^ta

Re: [PATCH] apply: reload .gitattributes after patching it

2019-08-09 Thread brian m. carlson
On 2019-08-09 at 13:51:49, Jeff King wrote: > On Fri, Aug 09, 2019 at 02:43:18PM +0200, SZEDER Gábor wrote: > > But there is an other subtlety here: when I read the commit message > > saying "patch that touches a path ending in ".gitattributes"." and saw > > the new call to strip_path_suffix(), I i

RE: "git log" does not display refs info when executed via C# Process class on Windows

2019-08-09 Thread Cliff Schomburg
Thanks, I will try that as well. Strange it works on command line but not STDOUT though. -Original Message- From: Junio C Hamano Sent: Friday, August 9, 2019 5:50 PM To: Cliff Schomburg Cc: SZEDER Gábor ; git@vger.kernel.org Subject: Re: "git log" does not display refs info when execu

PDF.pdf

2019-08-09 Thread Gabriel Camaisa Reyes
PDF.pdf Description: Adobe PDF document gabrielreyes...@gmail.com

[PATCH] SQUASH

2019-08-09 Thread Carlo Marcelo Arenas Belón
Make using a general context (that is only needed with NED) to depend on NED being selected at compile time. the compile_context could be also make conditional but it gets ugly really fasts with #ifdef --- Makefile | 2 +- grep.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff -

Re: [RFC PATCH v5 0/3] grep: almost no more leaks, hopefully no crashes

2019-08-09 Thread Carlo Arenas
On Fri, Aug 9, 2019 at 2:26 PM Johannes Schindelin wrote: > > FWIW I am very much in favor of this approach. FWIW this is (almost) exactly what I had in mind with my first reply, except I wanted to make setting of the global context be conditioned to having NED enabled to avoid possible performan

Dear Facebook User

2019-08-09 Thread FACEBOOK INC

[PATCH 1/1] doc: fix repeated words

2019-08-09 Thread Mark Rushakoff via GitGitGadget
From: Mark Rushakoff Inspired by 21416f0a07 ("restore: fix typo in docs", 2019-08-03), I ran "git grep -E '(\b[a-zA-Z]+) \1\b' -- Documentation/" to find other cases where words were duplicated, e.g. "the the", and in most cases removed one of the repeated words. There were many false positives

[PATCH 0/1] doc: fix repeated words

2019-08-09 Thread Mark Rushakoff via GitGitGadget
Inspired by 21416f0a07 ("restore: fix typo in docs", 2019-08-03), I ran "git grep -E '(\b[a-zA-Z]+) \1\b' -- Documentation/" to find other cases where words were duplicated, e.g. "the the", and in most cases removed one of the repeated words. Mark Rushakoff (1): doc: fix repeated words Documen

Re: [PATCH 1/1] doc: fix repeated words

2019-08-09 Thread Jeff King
On Fri, Aug 09, 2019 at 10:59:14PM -0700, Mark Rushakoff via GitGitGadget wrote: > From: Mark Rushakoff > > Inspired by 21416f0a07 ("restore: fix typo in docs", 2019-08-03), I ran > "git grep -E '(\b[a-zA-Z]+) \1\b' -- Documentation/" to find other cases > where words were duplicated, e.g. "the

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-09 Thread Jeff King
On Fri, Aug 09, 2019 at 11:05:34AM -0700, Phil Hord wrote: > On Fri, Aug 9, 2019 at 10:48 AM Junio C Hamano wrote: > > > > Jeff King writes: > > > > > I don't know of any plans for checkout in particular, but I think the > > > docs for restore/switch make it clear that it's way too early to star