rev-parse --is-bare-repository incorrect when work tree is set

2019-06-14 Thread Sam Bazley
rev-parse --is-bare-repository incorrectly outputs "false" when testing a bare repository with the work tree set. To reproduce: $ git init --bare testbare $ git --git-dir=testbare rev-parse --is-bare-repository true $ git --git-dir=testbare --work-tree=something rev-parse \ --is-bare-repository

Deadname rewriting

2019-06-14 Thread Phil Hord
I know name-scrubbing is already covered in filter-branch and other places. But we have a scenario becoming more common that makes it a more sensitive topic. At $work we have a long time employee who has changed their name from Alice to Bob. Bob doesn't want anyone to call him "Alice" anymore and

[PATCH v4 08/10] list-objects-filter-options: allow mult. --filter

2019-06-14 Thread Matthew DeVore
Allow combining of multiple filters by simply repeating the --filter flag. Before this patch, the user had to combine them in a single flag somewhat awkwardly (e.g. --filter=combine:FOO+BAR), including URL-encoding the individual filters. To make this work, in the --filter flag parsing callback, r

[PATCH v4 06/10] list-objects-filter-options: make filter_spec a string_list

2019-06-14 Thread Matthew DeVore
Make the filter_spec string a string_list rather than a raw C string. The list of strings must be concatted together to make a complete filter_spec. A future patch will use this capability to build "combine:" filter specs gradually. A strbuf would seem to be a more natural choice for this object,

[PATCH v4 07/10] strbuf: give URL-encoding API a char predicate fn

2019-06-14 Thread Matthew DeVore
Allow callers to specify exactly what characters need to be URL-encoded and which do not. This new API will be taken advantage of in a patch later in this set. Helped-by: Jeff King Signed-off-by: Matthew DeVore --- credential-store.c | 9 + http.c | 6 -- strbuf.c

[PATCH v4 10/10] list-objects-filter-options: make parser void

2019-06-14 Thread Matthew DeVore
This function always returns 0, so make it return void instead. Signed-off-by: Matthew DeVore --- list-objects-filter-options.c | 12 +--- list-objects-filter-options.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/list-objects-filter-options.c b/list-objects-fi

[PATCH v4 00/10] Filter combination

2019-06-14 Thread Matthew DeVore
I had to rebase this onto the latest master rev. master now has the patch which disables the sparse:path filter, and v3 of this patch set has conflicts with it. This version does not so it can be patched in and tried out by others. I have re-run the test suite on each commit. Sorry for the spammin

[PATCH v4 09/10] list-objects-filter-options: clean up use of ALLOC_GROW

2019-06-14 Thread Matthew DeVore
Introduce a new macro ALLOC_GROW_BY which automatically zeros the added array elements and takes care of updating the nr value. Use the macro in code introduced earlier in this patchset. Signed-off-by: Matthew DeVore --- cache.h | 22 ++ list-objects-fil

[PATCH v4 01/10] list-objects-filter: make API easier to use

2019-06-14 Thread Matthew DeVore
Make the list-objects-filter.h API more opaque and easier to use. This prepares for combined filter support, where filters will be created and used in a new context. Helped-by: Jeff Hostetler Helped-by: Junio C Hamano Signed-off-by: Matthew DeVore --- list-objects-filter.c | 111 ++

[PATCH v4 05/10] list-objects-filter-options: move error check up

2019-06-14 Thread Matthew DeVore
Move the check that filter_options->choice is set to higher in the call stack. This can only be set when the gentle parse function is called from one of the two call sites. This is important because in an upcoming patch this may or may not be an error, and whether it is an error is only known to t

[PATCH v4 02/10] list-objects-filter: put omits set in filter struct

2019-06-14 Thread Matthew DeVore
The oidset *omits pointer must be accessed by the combine filter in a type-agnostic way once the graph traversal is over. Store that pointer in the general `filter` struct. This will be used in a follow-up patch to implement the combine filter. Signed-off-by: Matthew DeVore --- list-objects-filt

[PATCH v4 03/10] list-objects-filter-options: always supply *errbuf

2019-06-14 Thread Matthew DeVore
Making errbuf an optional argument complicates error reporting. Fix this by making all callers supply an errbuf, even if they may ignore it. This will be important in follow-up patches where the filter-spec parsing has more pitfalls and possible errors. Signed-off-by: Matthew DeVore --- list-obj

[PATCH v4 04/10] list-objects-filter: implement composite filters

2019-06-14 Thread Matthew DeVore
Allow combining filters such that only objects accepted by all filters are shown. The motivation for this is to allow getting directory listings without also fetching blobs. This can be done by combining blob:none with tree:. There are massive repositories that have larger-than-expected trees - eve

Re: cherry-pick strangeness

2019-06-14 Thread Phil Hord
On Fri, Jun 14, 2019 at 12:29 AM Vincent Legoll wrote: > On Fri, Jun 14, 2019 at 12:56 AM Elijah Newren wrote: > > When you cherry-pick a commit, it reapplies its diff on top of a > > (usually different) commit, preserving the author name/email/date, but > > throwing away the committer name/email

[PATCH v3] rev-list: teach --no-object-names to enable piping

2019-06-14 Thread Emily Shaffer
Allow easier parsing by cat-file by giving rev-list an option to print only the OID of a non-commit object without any additional information. This is a short-term shim; later on, rev-list should be taught how to print the types of objects it finds in a format similar to cat-file's. Before this co

Re: [PATCH v2] rev-list: teach --oid-only to enable piping

2019-06-14 Thread Emily Shaffer
On Fri, Jun 14, 2019 at 12:07:28PM -0400, Jeff King wrote: > On Thu, Jun 13, 2019 at 02:51:03PM -0700, Emily Shaffer wrote: > > +test_expect_success 'rev-list --objects --oid-only is usable by cat-file' ' > > + git rev-list --objects --oid-only --all >list-output && > > + git cat-file --batch-

Re: Can we just get rid of kwset & obstack in favor of optimistically using PCRE v2 JIT?

2019-06-14 Thread Ævar Arnfjörð Bjarmason
On Sat, Jun 15 2019, Ævar Arnfjörð Bjarmason wrote: > On Thu, Jun 13 2019, Johannes Schindelin via GitGitGadget wrote: > >> The kwset functionality makes use of the obstack code, which expects to >> be handed a function that can allocate large chunks of data. It expects >> that function to accep

Re: [PATCH v2] rev-list: teach --oid-only to enable piping

2019-06-14 Thread Emily Shaffer
On Fri, Jun 14, 2019 at 01:25:59PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > But I wonder if things would be simpler if we did not touch the commit > > code path at all. I.e., if this were simply "--no-object-names", and it > > touched only show_object(). > > Yeah, that sounds more

Re: [RFC PATCH] rev-list: clarify --abbrev and --abbrev-commit usage

2019-06-14 Thread Emily Shaffer
On Fri, Jun 14, 2019 at 05:27:14PM -0400, Jeff King wrote: > On Fri, Jun 14, 2019 at 01:59:50PM -0700, Emily Shaffer wrote: > > > > So no, I cannot see a way in which "rev-list --abbrev" is useful without > > > "--abbrev-commit". Which means that perhaps the former should imply the > > > latter. >

Can we just get rid of kwset & obstack in favor of optimistically using PCRE v2 JIT?

2019-06-14 Thread Ævar Arnfjörð Bjarmason
On Thu, Jun 13 2019, Johannes Schindelin via GitGitGadget wrote: > The kwset functionality makes use of the obstack code, which expects to > be handed a function that can allocate large chunks of data. It expects > that function to accept a `size` parameter of type `long`. > > This upsets GCC 8

Re: [PATCH 2/4] kwset: allow building with GCC 8

2019-06-14 Thread Ævar Arnfjörð Bjarmason
On Thu, Jun 13 2019, Johannes Schindelin via GitGitGadget wrote: > From: Johannes Schindelin > > The kwset functionality makes use of the obstack code, which expects to > be handed a function that can allocate large chunks of data. It expects > that function to accept a `size` parameter of type

[RESEND PATCH v3 5/8] string-list: create string_list_append_all

2019-06-14 Thread Denton Liu
In a future patch, we'll need to take one string_list and append it to the end of another. Create the `string_list_append_all` function which does this. Signed-off-by: Denton Liu --- string-list.c | 9 + string-list.h | 7 +++ 2 files changed, 16 insertions(+) diff --git a/string-li

[RESEND PATCH v3 4/8] format-patch: move extra_headers logic later

2019-06-14 Thread Denton Liu
In a future patch, we need to perform the addition of To: and Cc: to extra_headers after the branch_name logic. Simply transpose this logic later in the function so that this happens. (This patch is best viewed with `git diff --color-moved`.) Note that this logic only depends on `git_config` and `

[RESEND PATCH v3 7/8] format-patch: move output_directory logic later

2019-06-14 Thread Denton Liu
In a future patch, we need to create the output_directory after the branch_name logic. Simply transpose this logic later in the function so that this happens. (This patch is best viewed with `git diff --color-moved`.) Note that this logic only depends on `git_config` and the parseopt logic and is

[RESEND PATCH v3 3/8] format-patch: infer cover letter from branch description

2019-06-14 Thread Denton Liu
We used to populate the subject of the cover letter generated by git-format-patch with "*** SUBJECT HERE ***". However, if a user submits multiple patchsets, they may want to keep a consistent subject between rerolls. If git-format-patch is run with `--infer-cover-letter` or `format.inferCoverSubj

[RESEND PATCH v3 6/8] format-patch: read branch-specific To: and Cc: headers

2019-06-14 Thread Denton Liu
If a user wishes to keep track of whom to Cc: on individual patchsets, they must manually keep track of each recipient and fill it in with the `--cc` option on git-format-patch each time. However, on the Git mailing list, Cc:'s are typically never dropped. As a result, it would be nice to have a me

[RESEND PATCH v3 2/8] Doc: add more detail for git-format-patch

2019-06-14 Thread Denton Liu
In git-format-patch.txt, we were missing some key user information. First of all, using the `--to` and `--cc` options don't override `format.to` and `format.cc` variables, respectively. They add on to each other. Document this. In addition, document the special value of `--base=auto`. Next, while

[RESEND PATCH v3 8/8] format-patch: read branch-specific output directory

2019-06-14 Thread Denton Liu
If a user wishes to have a per-branch output directory for patches, they must manually specify this on the command-line with `-o` for each invocation of format-patch. However, this can be cumbersome for a user to keep track of. Read `format..outputDirectory` to give a branch-specific output direct

[RESEND PATCH v3 1/8] t4014: clean up style

2019-06-14 Thread Denton Liu
In Git's tests, there is typically no space between the redirection operator and the filename. Remove these spaces. Since output is silenced when running without `-v` and debugging output is useful with `-v`, remove redirections to /dev/null. Change here-docs from `<<\EOF` to `<<-\EOF` so that th

[RESEND PATCH v3 0/8] teach branch-specific options for format-patch

2019-06-14 Thread Denton Liu
Hi all, Although 'config: learn the "onbranch:" includeIf condition'[1] seems to be on track for "next", the content in this patchset is not entirely superseded by it. Patches 1 and 2 should be relatively uncontroversial since they just do a bit of cleanup. Patch 3 is a new feature that isn't in

Re: [RFC PATCH] rev-list: clarify --abbrev and --abbrev-commit usage

2019-06-14 Thread Jeff King
On Fri, Jun 14, 2019 at 01:59:50PM -0700, Emily Shaffer wrote: > > So no, I cannot see a way in which "rev-list --abbrev" is useful without > > "--abbrev-commit". Which means that perhaps the former should imply the > > latter. > > Maybe it should; maybe this patch is a good excuse to do so, and

Re: [RFC/PATCH v1 0/4] compat/obstack: update from upstream

2019-06-14 Thread Ramsay Jones
On 14/06/2019 21:30, Ramsay Jones wrote: > > > On 14/06/2019 11:00, SZEDER Gábor wrote: >> Update 'compat/obstack.{c,h}' from upstream, because they already use >> 'size_t' instead of 'long' in places that might eventually end up as >> an argument to malloc(), which might solve build errors wi

Re: [RFC/PATCH v2] doc branch: provide examples for listing remote tracking branches

2019-06-14 Thread Philip Oakley
Hi Junio, On 10/06/2019 18:57, Junio C Hamano wrote: Philip Oakley writes: The availability of these pattern selections is not obvious from the man pages, as per mail thread <87lfz3vcbt@evledraar.gmail.com>. Provide examples. Re-order the `git branch` synopsis to emphasise the `--list `

Re: [RFC PATCH] rev-list: clarify --abbrev and --abbrev-commit usage

2019-06-14 Thread Emily Shaffer
On Fri, Jun 14, 2019 at 12:18:41PM -0400, Jeff King wrote: > On Thu, Jun 13, 2019 at 03:15:41PM -0700, Emily Shaffer wrote: > > > I thought this was odd when I was working on the other rev-list changes > > - --abbrev doesn't do anything on its own. It looks like it does work by > > itself in other

What's cooking in git.git (Jun 2019, #04; Fri, 14)

2019-06-14 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. The first batch of topics post 2.2

Re: [RFC/PATCH v1 0/4] compat/obstack: update from upstream

2019-06-14 Thread Ramsay Jones
On 14/06/2019 11:00, SZEDER Gábor wrote: > Update 'compat/obstack.{c,h}' from upstream, because they already use > 'size_t' instead of 'long' in places that might eventually end up as > an argument to malloc(), which might solve build errors with GCC 8 on > Windows. > > The first patch just imp

Re: [PATCH v2] rev-list: teach --oid-only to enable piping

2019-06-14 Thread Junio C Hamano
Jeff King writes: > But I wonder if things would be simpler if we did not touch the commit > code path at all. I.e., if this were simply "--no-object-names", and it > touched only show_object(). Yeah, that sounds more tempting. And the refined code structure you suggested ... >> @@ -255,6 +262

Re: [PATCH v3 00/10] Filter combination

2019-06-14 Thread Junio C Hamano
Matthew DeVore writes: > It has been a while since a sent a roll-up. Here are the changes since v2: > > - Re-use more URL-encoding logic in strbuf.c >* This was partially achieved by changing the helper function to accept a > function that will indicate whether some character must be es

Re: [PATCH 1/1] ci: split the `linux-gcc` job into two jobs

2019-06-14 Thread Johannes Schindelin
Hi Gábor, On Thu, 13 Jun 2019, SZEDER Gábor wrote: > On Thu, Jun 13, 2019 at 06:51:04PM +0200, Johannes Schindelin wrote: > > > On Thu, 13 Jun 2019, Junio C Hamano wrote: > > > > > SZEDER Gábor writes: > > > > > > > On Thu, Jun 13, 2019 at 05:53:51AM -0700, Johannes Schindelin via > > > > GitGit

Bloggin with Rohit

2019-06-14 Thread Rohit Ashiwal
Hey Everyone! I sent my first patch[1] to the mailing list this week and received very nice feedback. The blog about my week is hosted here[2]. Hope you'll find it interesting. Thanks Rohit [1]: https://public-inbox.org/git/20190608191958.4593-1-rohit.ashiwal...@gmail.com/ [2]: https://rashiwal

Re: [PATCH v2 3/4] rebase: fix garbled progress display with '-x'

2019-06-14 Thread Johannes Schindelin
Hi, On Wed, 12 Jun 2019, SZEDER Gábor wrote: > On Wed, Jun 12, 2019 at 09:14:40PM +0200, Johannes Schindelin wrote: > > > On Tue, 11 Jun 2019, SZEDER Gábor wrote: > > > > > On Tue, Jun 11, 2019 at 01:36:16PM -0700, Junio C Hamano wrote: > > > > SZEDER Gábor writes: > > > > > > > > > -Rebasing (1

RE: commit sized around 100 gb in changes failed to push to a TFS remote - Git

2019-06-14 Thread Aram Maliachi (WIPRO LIMITED)
We have a hard limit in the service of 5GB for a single push. The advice we've given other customers is to do partial pushes by checking out an older commit, pushing that, and then checking out a newer commit, pushing, etc. You have to push multiple times, but you can build up the entire histor

Re: [RFC/PATCH v1 0/4] compat/obstack: update from upstream

2019-06-14 Thread Junio C Hamano
SZEDER Gábor writes: > And here is an all-green build of these patches on Travis CI: > > https://travis-ci.org/szeder/git/builds/545645247 > > (and one bonus patch on top to deal with some Homebrew nonsense) Is this the one that making all of the jobs pass in the above output, including the ma

Re: [RFC/PATCH v1 0/4] compat/obstack: update from upstream

2019-06-14 Thread Jeff King
On Fri, Jun 14, 2019 at 12:00:55PM +0200, SZEDER Gábor wrote: > Update 'compat/obstack.{c,h}' from upstream, because they already use > 'size_t' instead of 'long' in places that might eventually end up as > an argument to malloc(), which might solve build errors with GCC 8 on > Windows. > > The f

commit sized around 100 gb in changes failed to push to a TFS remote - Git

2019-06-14 Thread Aram Maliachi (WIPRO LIMITED)
To @Git Community >From the perspective of an Azure DevOps support engineer. I have a customer >who is unable to make a push with following error: fatal: The remote end hung up unexpectedly failed to push some refs into https://zelos.healthcare.siemens.com/tfs/Hoover/VA20A.DevInt.Gvfs/_git/Satur

Re: [RFC PATCH] rev-list: clarify --abbrev and --abbrev-commit usage

2019-06-14 Thread Jeff King
On Thu, Jun 13, 2019 at 03:15:41PM -0700, Emily Shaffer wrote: > I thought this was odd when I was working on the other rev-list changes > - --abbrev doesn't do anything on its own. It looks like it does work by > itself in other commands, but apparently not in rev-list. > > Listed this patch as

Re: [PATCH 2/4] kwset: allow building with GCC 8

2019-06-14 Thread Junio C Hamano
SZEDER Gábor writes: >> Now, the proper thing to do would be to switch to `size_t`. But this >> would make us deviate from the "upstream" code even further, > > This is not entirely true: upstream already uses 'size_t', so the > switch would actually bring our copy closer to upstream. Ah, earlie

Re: [RFC PATCH] rev-list: clarify --abbrev and --abbrev-commit usage

2019-06-14 Thread Junio C Hamano
Emily Shaffer writes: > It looks like `git log --abbrev=5` also doesn't work the way one might > expect, which makes sense to me, as they use the same internals for > option parsing (parse_revisions()). I suspect that was primarily because --abbrev-commit was only to abbreviate the commit object

Re: [PATCH v2] rev-list: teach --oid-only to enable piping

2019-06-14 Thread Jeff King
On Thu, Jun 13, 2019 at 02:51:03PM -0700, Emily Shaffer wrote: > It didn't appear that using an existing --pretty string would do the > trick, as the formatting options for --pretty apply specifically to > commit objects (you can specify the commit hash and the tree hash, but > I didn't see a way

Re: [RFC PATCH 2/3] trace2: Add a JSON schema for trace2 events

2019-06-14 Thread Jeff Hostetler
On 6/11/2019 7:31 PM, Josh Steadmon wrote: Define a JSON schema[1] that can be used to validate trace2 event objects. This can be used to add regression tests to verify that the event output format does not change unexpectedly. Two versions of the schema are provided: * event_schema.json is m

Re: [GSoC][PATCH v3 2/3] cherry-pick/revert: add --skip option

2019-06-14 Thread Junio C Hamano
Rohit Ashiwal writes: >> Is this correct, or do we need to enclose these choices inside (), >> i.e. >> >> 'git cherry-pick' ( --continue | --skip | --abort | --quit ) >> >> ? > > Documentation of `git rebase` also lists these options without the > '('s so, I thought to make it similar to t

Re: [RFC PATCH 1/3] trace2: correct trace2 field name documentation

2019-06-14 Thread Jeff Hostetler
On 6/11/2019 7:31 PM, Josh Steadmon wrote: Correct the api-trace2 documentation, which lists "signal" as an expected field for the signal event type, but which actually outputs "signo" as the field name. Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 2 +- 1 fil

Re: advertised commit fetch using commit id fails

2019-06-14 Thread Jeff King
On Fri, Jun 14, 2019 at 11:27:10AM -0400, Jeff King wrote: > So in short, it was never supposed to work, but between bugs and > protocol vagaries, there are a few version and protocol combinations > where it did. I'd add that in protocol v2, the reachability restrictions are lifted (i.e., every s

Re: advertised commit fetch using commit id fails

2019-06-14 Thread Jeff King
On Fri, Jun 14, 2019 at 01:54:15PM +0300, Karen Arutyunov wrote: > git 2.22, in contrast to previous versions, fails to fetch advertised commit > using commit id: > > Is it a bug or advertised object semantics change? This is working as designed, but the behavior is a rather tricky historical cas

Re: 'git interpret-trailers' is tripped by comment characters other than '#'

2019-06-14 Thread Jeff King
On Fri, Jun 14, 2019 at 08:35:04PM +0900, Masahiro Yamada wrote: > Perhaps, 'git interpret-trailers' should be changed > to recognize core.commentChar ? It looks like the trailer code does respect it, but the interpret-trailers program never loads the config. Does the patch below make your proble

So I want to meet with you, It"s importantly for me..

2019-06-14 Thread Sian Walker
ÓO=ó4ïÝøÓO5Ó_yçßvÔ*'µéíO*^µìmþ™ZŠw!j»

[PATCH 1/1] t3404: fix a typo

2019-06-14 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This one slipped through the review of a9279c678588 (sequencer: do not squash 'reword' commits when we hit conflicts, 2018-06-19). Signed-off-by: Johannes Schindelin --- t/t3404-rebase-interactive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH 0/1] t3404: fix a typo

2019-06-14 Thread Johannes Schindelin via GitGitGadget
Just a typo I found while debugging something else. Johannes Schindelin (1): t3404: fix a typo t/t3404-rebase-interactive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 0aae918dd929862d3ce0ea2960897787bb269a3b Published-As: https://github.com/gitgitgadget/git/releases

[RFC] submodule: display progress by default

2019-06-14 Thread Mateusz Krawczuk
Currently, git submodule does not display operation progress unless explicitly demanded by adding the --progress option to the command. This makes a bad user experience in cases of initializing a huge submodule, as one might get an impression that something went wrong and the execution froze (which

'git interpret-trailers' is tripped by comment characters other than '#'

2019-06-14 Thread Masahiro Yamada
Hi. When I tried to add ChangeId tag for Gerrit Code Review, I noticed 'git interpret-trailers' went wrong if a comment character other than '#' is used. Quick Test Code --- cat < ; This is a comment line with non-default char EOF [result] subject: this is commit subject Blah B

advertised commit fetch using commit id fails

2019-06-14 Thread Karen Arutyunov
Hello, git 2.22, in contrast to previous versions, fails to fetch advertised commit using commit id: $ git --version git version 2.22.0 $ git init git $ git -C git remote add origin https://github.com/git/git $ git ls-remote https://github.com/git/git | grep v2.21 2bb64867dc05d9a8432488ddc1d

Re: [PATCH 2/3] t: add t0016-oidmap.sh

2019-06-14 Thread Christian Couder
On Fri, Jun 14, 2019 at 12:22 AM Junio C Hamano wrote: > > Jeff King writes: > > >> > I know there are testing philosophies that go to this level of > >> > white-box testing, but I don't think we usually do in Git. A unit > >> > test of oidmap's externally visible behavior seems like the right >

Git Test Coverage Report (Friday, June 14)

2019-06-14 Thread Derrick Stolee
Here is today's test coverage report. -Stolee [1] https://derrickstolee.github.io/git-test-coverage/reports/2019-06-14.htm [2] https://derrickstolee.github.io/git-test-coverage/reports/2019-06-14.txt --- pu d3545145f9e3f092c0031535c51c6c88e4646c44 jch c7b1a102ca91f3fc04951c551da7a92f91

[PATCH v1 3/4] SQUASH??? compat/obstack: fix build errors with Clang

2019-06-14 Thread SZEDER Gábor
Compiling 'compat/obstack.c' with Clang on Linux and macOS fails with different errors: On Linux: CC compat/obstack.o compat/obstack.c:330:31: error: incompatible pointer types initializing 'void (*)(void) __attribute__((noreturn))' with an expression of type 'void (void)'

[PATCH v1 4/4] compat/obstack: fix some sparse warnings

2019-06-14 Thread SZEDER Gábor
'compat/obstack.c' occasionally assigns/compares a plain 0 to a pointer, which triggers sparse warnings. Use NULL instead. This is basically a cherry-pick of 3254310863 (obstack.c: Fix some sparse warnings, 2011-09-11) on top of the just updated code from upstream. Signed-off-by: SZEDER Gábor -

[PATCH v1 1/4] compat/obstack: update from upstream

2019-06-14 Thread SZEDER Gábor
!! This does not compile !! Update 'compat/obstack.{c,h}' from commit 5905d8ca9945f0d60ff40eb6cfa42afc0199ab8f in https://git.savannah.gnu.org/git/gnulib.git We have made a couple of changes to our copy of 'compat/obstack.{c,h}' since it was introduced in e831171d67 (Add obstack.[ch] from EGLIBC

[PATCH v1 2/4] SQUASH??? compat/obstack: fix portability issues

2019-06-14 Thread SZEDER Gábor
This is sort-of a cherry-pick of d190a0875f (obstack: Fix portability issues, 2011-08-28), which is necessary to make 'compat/obstack.c' compile again. Only "sort-of a cherry-pick", because the divergence between upstream and our copy was just too bit and I gave up on the conflict resolution, and

[RFC/PATCH v1 0/4] compat/obstack: update from upstream

2019-06-14 Thread SZEDER Gábor
Update 'compat/obstack.{c,h}' from upstream, because they already use 'size_t' instead of 'long' in places that might eventually end up as an argument to malloc(), which might solve build errors with GCC 8 on Windows. The first patch just imports from upstream and doesn't modify anything at all, a

Re: [PATCH 2/4] kwset: allow building with GCC 8

2019-06-14 Thread SZEDER Gábor
> Subject: Re: [PATCH 2/4] kwset: allow building with GCC 8 The subject could benefit from a "on Windows" at the end; 'kwset' and compat/obstack can be build with GCC 8 and 9 just fine on some other platforms. On Thu, Jun 13, 2019 at 04:49:45AM -0700, Johannes Schindelin via GitGitGadget wrote:

`git stash ` stopped working in 2.22.0

2019-06-14 Thread Mike Hommey
Hi, `git stash ` where n is a number used to work until 2.21.*. It doesn't work in 2.22.0. Bisection points to: dc7bd382b1063303f4f45d243bff371899285acb is the first bad commit commit dc7bd382b1063303f4f45d243bff371899285acb Author: Paul-Sebastian Ungureanu Date: Mon Feb 25 23:16:20 2019 +00

Re: cherry-pick strangeness

2019-06-14 Thread Vincent Legoll
Hello, On Fri, Jun 14, 2019 at 12:56 AM Elijah Newren wrote: > > On Thu, Jun 13, 2019 at 3:42 PM Vincent Legoll > wrote: > > > > What am I missing ? > > When you cherry-pick a commit, it reapplies its diff on top of a > (usually different) commit, preserving the author name/email/date, but > th