Re: [PATCH v2 1/1] ref-filter: sort detached HEAD lines firstly

2019-06-12 Thread Junio C Hamano
Junio C Hamano writes: >> +/* >> + * When sorting by name, we should put "detached" head lines, >> + * which are all the lines in parenthesis, before all others. >> + * This usually is automatic, since "(" is before "refs/" and >> + * "r

[PATCH v2 0/1] submodule foreach: fix recursion of options

2019-06-12 Thread Morian Sonnet via GitGitGadget
During the usage of git in Buildkite we noted that git fails upon calling git submodule foreach --recursive git reset --hardafter updating git version to 2.22.0. This is due to a problem with the recursive calling of git submodule--helper itself, which is fixed in the patch below. Morian Sonnet

[PATCH v2 1/1] submodule foreach: fix recursion of options

2019-06-12 Thread Morian Sonnet via GitGitGadget
From: Morian Sonnet Calling git submodule foreach --recursive git reset --hard leads to an error stating that the option --hard is unknown to submodule--helper. Reasons: . Above call is internally translated into git submodule--helper foreach --recursive -- git reset --hard . After

Re: BUG: Git checkout on Linux sets always CRLF regardless of core.eol

2019-06-12 Thread Torsten Bögershausen
On Wed, Jun 12, 2019 at 12:48:00PM +0200, Alexander wrote: > Hello, > > I am trying to checkout out various 3rd party Git projects on Linux > and build them. > Some of them have text files created under Windows with CRLF endings > and it is not under my responsibility to change it. > > Thus I have

Re: [PATCH v2 4/4] progress: use term_clear_line()

2019-06-12 Thread Johannes Schindelin
Hi, On Tue, 11 Jun 2019, SZEDER Gábor wrote: > diff --git a/t/t5541-http-push-smart.sh b/t/t5541-http-push-smart.sh > index 8ef8763e06..2e4802e206 100755 > --- a/t/t5541-http-push-smart.sh > +++ b/t/t5541-http-push-smart.sh > @@ -213,7 +213,7 @@ test_expect_success TTY 'push shows progress when s

Re: [PATCH v2 1/1] ref-filter: sort detached HEAD lines firstly

2019-06-12 Thread Johannes Schindelin
Hi Matthew, On Tue, 11 Jun 2019, Matthew DeVore wrote: > diff --git a/ref-filter.c b/ref-filter.c > index 8500671bc6..056d21d666 100644 > --- a/ref-filter.c > +++ b/ref-filter.c > @@ -2157,25 +2157,37 @@ static int cmp_ref_sorting(struct ref_sorting *s, > struct ref_array_item *a, stru > c

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

2019-06-12 Thread SZEDER Gábor
On Wed, Jun 12, 2019 at 09:14:40PM +0200, Johannes Schindelin wrote: > Hi, > > 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/4)QRebasing (2/4)QRebasing (3/4)QRebasing > > > > (

Re: [PATCH] revision: remove stray whitespace when name empty

2019-06-12 Thread Emily Shaffer
On Mon, Jun 10, 2019 at 09:29:14AM -0700, Junio C Hamano wrote: > Jeff King writes: > > > Your patch only helps with this at all because you're using the "tree:1" > > ... > > because there you'll have actual names which cat-file will choke on. So > > it seems like this is helping only a very limi

Re: [PATCH 1/1] submodule foreach: fix recursion of options

2019-06-12 Thread Eric Sunshine
On Wed, Jun 12, 2019 at 2:10 PM Morian Sonnet via GitGitGadget wrote: > [...] > . Add -- before the command to execute, such that now correctly > > git --super-prefix submodule--helper \ > foreach --recursive -- git reset --hard > > is called. > > Signed-off-by: Morian Sonnet > --- >

Re: [PATCH] revision: remove stray whitespace when name empty

2019-06-12 Thread Emily Shaffer
On Fri, Jun 07, 2019 at 08:42:45PM -0400, Eric Sunshine wrote: > On Fri, Jun 7, 2019 at 6:59 PM Emily Shaffer wrote: > > Teach show_object_with_name() to avoid writing a space before a name > > which is empty. Also teach tests for rev-list --objects --filter to not > > require a space between the

Re: [RFC PATCH 3/3] trace2: add a schema validator for trace2 events

2019-06-12 Thread Jeff King
On Wed, Jun 12, 2019 at 09:23:41AM -0700, Josh Steadmon wrote: > The problem with the existing validators is that they expect each file to be a > complete JSON entity, whereas the trace output is one object per line. You can > of course loop over the lines in a shell script, but in my testing this

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

2019-06-12 Thread Johannes Schindelin
Hi, 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/4)QRebasing (2/4)QRebasing (3/4)QRebasing (4/4)QSuccessfully > > > rebased and updated refs/heads/missing-commit. > > > +Rebasing (1/4)Q

Re: cgit and global configuration

2019-06-12 Thread Jeff King
On Tue, Jun 11, 2019 at 04:22:32PM -0400, Jeff Hostetler wrote: > As for going forward, I see 3 options: > > [1] update your tests to allow this. (I didn't dig thru your > tests to see how extensive this might be.) > > [2] define your own version of common-main.c and link with it > inst

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

2019-06-12 Thread Phillip Wood
On 12/06/2019 19:11, Junio C Hamano wrote: Phillip Wood writes: Thanks for the new version, this is looking pretty good now, just a few comments below I agree that this step is looking pretty good now. I didn't check closely, but when 1/3 undergoes necessary polishing, it may have repercuss

Re: Git status parse error after v.2.22.0 upgrade

2019-06-12 Thread Johannes Schindelin
Hi Espen, On Wed, 12 Jun 2019, Espen Antonsen wrote: > I don't have any hooks, just the default sample scripts. GIT_TRACE > doesn't show anything else. Okay, it was just a guess. And here is another guess: unless you impart with more details about your test case, I guess there is little anybody

Re: Git Pull Hangs

2019-06-12 Thread Brandon McCaig
Allen: On Wed, Jun 12, 2019 at 08:35:44AM -0500, Allen Kinzalow wrote: > Hello, Hi, > I have attached the output of a "git pull" command. Suddenly we > are unable to pull or fetch anything from our repository. It is > temporarily fixed by deleting .git/packed-refs but quickly > starts happening

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

2019-06-12 Thread Josh Steadmon
On 2019.06.12 11:00, Junio C Hamano wrote: > Josh Steadmon writes: > > > 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. > > > Nice. Is this one of the findings made by your

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

2019-06-12 Thread Junio C Hamano
Phillip Wood writes: > Thanks for the new version, this is looking pretty good now, just a > few comments below I agree that this step is looking pretty good now. I didn't check closely, but when 1/3 undergoes necessary polishing, it may have repercussions on this step, though (I did see that t

[PATCH 0/1] submodule foreach: fix recursion of options

2019-06-12 Thread Morian Sonnet via GitGitGadget
During the usage of git in Buildkite we noted that git fails upon calling git submodule foreach --recursive git reset --hardafter updating git version to 2.22.0. This is due to a problem with the recursive calling of git submodule--helper itself, which is fixed in the patch below. Morian Sonnet

[PATCH 1/1] submodule foreach: fix recursion of options

2019-06-12 Thread Morian Sonnet via GitGitGadget
From: Morian Sonnet Calling git submodule foreach --recursive git reset --hard leads to an error stating that the option --hard is unknown to submodule--helper. Reasons: . Above call is internally translated into git submodule--helper foreach --recursive -- git reset --hard . After

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

2019-06-12 Thread Junio C Hamano
Josh Steadmon writes: > 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. Nice. Is this one of the findings made by your validation, by the way? > > Signed-off-by: Josh Steadmon

Re: [PATCH] Revert "test-lib: whitelist GIT_TR2_* in the environment"

2019-06-12 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > This reverts my commit c1ee5796dc ("test-lib: whitelist GIT_TR2_* in > the environment", 2019-03-30), which is now redundant. > > Since e4b75d6a1d ("trace2: rename environment variables to > GIT_TRACE2*", 2019-05-19) the GIT_TRACE2* variables match the existing

Re: What's cooking in git.git (Jun 2019, #02; Thu, 6)

2019-06-12 Thread Junio C Hamano
Derrick Stolee writes: >> (this branch uses ds/commit-graph-write-refactor; is tangled with >> ds/close-object-store.) > > Sorry for the tangle here. I'll place the proper use of > close_commit_graph(struct raw_object_store *) into my changes > in the next version. FWIW, "tangled" is no bad th

Re: [PATCH v2] completion: do not cache if --git-completion-helper fails

2019-06-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > "git --git-completion-helper" could fail if the command checks for > a repo before parse_options(). If the result is cached, later on when > the user moves to a worktree with repo, tab completion will still fail. > > Avoid this by detecting errors and not cache th

Re: push.recurseSubmodules=check doesn't consider tags

2019-06-12 Thread Junio C Hamano
Scott Johnson writes: > I occasionally rebase my submodules. I realize the danger (historical > submodule pointers could point to commits that get garbage-collected away) so > I always create and push a tag before the rebase, to make sure the old > commits will never get purged. I believe this

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

2019-06-12 Thread Christian Couder
On Tue, Jun 11, 2019 at 12:12 PM SZEDER Gábor wrote: > > On Tue, Jun 11, 2019 at 10:23:24AM +0200, Christian Couder wrote: > > diff --git a/t/t0016-oidmap.sh b/t/t0016-oidmap.sh > > new file mode 100755 > > index 00..cbd2cb71d6 > > --- /dev/null > > +++ b/t/t0016-oidmap.sh > > @@ -0,0 +1,1

Re: rebase drops patches that have since been reverted

2019-06-12 Thread Johannes Sixt
Am 12.06.19 um 17:03 schrieb Shawn Landden: > If a patch has been applied upstream AND THEN reverted, rebase still > drops the patch, requiring the use of relative rebase git rebase -i > HEAD~5 et cetera. > > git rebase should detect reverts as well. You have the same patch that upstream has. Per

[PATCH v2 2/4] t7610-mergetool: use test_cmp instead of test $(cat file) = $txt

2019-06-12 Thread Johannes Sixt
Fix that anti-pattern by a sequence of echo and test_cmp. The patch was generated with this command: sed -i -e '/test.*(cat/s/^\(\t*\)test "..cat \(.*\))" = \(".*"\)\(.*\)/\1echo \3 >expect \&\&\n\1test_cmp expect \2\4/' t7610-mergetool.sh This helps on Windows, where test_cmp avoids spawni

[PATCH v2 4/4] mergetool: use shell variable magic instead of `awk`

2019-06-12 Thread Johannes Sixt
git-mergetool spawns an enormous amount of processes. For this reason, the test script, t7610, is exceptionally slow, in particular, on Windows. Most of the processes are invocations of git. There are also some that can be replaced with shell builtins. Avoid repeated calls of `git ls-files` and `aw

[PATCH v2 3/4] mergetool: dissect strings with shell variable magic instead of `expr`

2019-06-12 Thread Johannes Sixt
git-mergetool spawns an enormous amount of processes. For this reason, the test script, t7610, is exceptionally slow, in particular, on Windows. Most of the processes are invocations of git. There are also some that can be replaced with shell builtins. Do so with `expr`. Signed-off-by: Johannes Si

[PATCH v2 1/4] t7610-mergetool: do not place pipelines headed by `yes` in subshells

2019-06-12 Thread Johannes Sixt
Subshells for pipelines are not required. This can save a number of processes (if the shell does not optimize it away anyway). The patch was generated with the command sed -i 's/( *\(yes.*[^ ]\) *) *\&\&/\1 \&\&/' t7610-mergetool.sh with a manual fixup of the case having no && at the end. Si

[PATCH v2 0/4] Reduce number of processes spawned by git-mergetool

2019-06-12 Thread Johannes Sixt
git-mergetool spawns an enormous amount of processes. For this reason, the test script, t7610, is exceptionally slow, in particular, on Windows. Most of the processes are invocations of git. There are also some that can be replaced with shell builtins. I've measured the number of processes and the

Re: [RFC PATCH 3/3] trace2: add a schema validator for trace2 events

2019-06-12 Thread Josh Steadmon
On 2019.06.12 15:28, Ævar Arnfjörð Bjarmason wrote: > > On Wed, Jun 12 2019, Josh Steadmon wrote: > > > trace_schema_validator can be used to verify that trace2 event output > > conforms to the expectations set by the API documentation and codified > > in event_schema.json (or strict_schema.json)

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

2019-06-12 Thread Junio C Hamano
Junio C Hamano writes: > SZEDER Gábor writes: > >> Make sure that the previously displayed "Rebasing (N/M)" line is >> cleared by using the term_clear_line() helper function added in the >> previous patch. >> >> A couple of other rebase commands print similar messages, e.g. >> "Stopped at ... "

Re: [GSoC][PATCH v2 3/3] cherry-pick/revert: advise using --skip

2019-06-12 Thread Phillip Wood
Hi Rohit On 11/06/2019 08:31, Rohit Ashiwal wrote: The previous commit introduced a --skip flag for cherry-pick and revert. Update the advice messages, to tell users about this less cumbersome way of skipping commits. Also add tests to ensure everything is working fine. Signed-off-by: Rohit Ash

rebase drops patches that have since been reverted

2019-06-12 Thread Shawn Landden
If a patch has been applied upstream AND THEN reverted, rebase still drops the patch, requiring the use of relative rebase git rebase -i HEAD~5 et cetera. git rebase should detect reverts as well. -Shawn Landden

Re: [PATCH v2 6/9] list-objects-filter-options: make filter_spec a strbuf

2019-06-12 Thread Matthew DeVore
On Tue, Jun 11, 2019 at 05:37:16PM -0700, Matthew DeVore wrote: > On Tue, Jun 11, 2019 at 02:48:51PM -0700, Junio C Hamano wrote: > > Matthew DeVore writes: > > > > >> It is brittle because callers are bound to forget doing "if > > >> (!x->buf.buf) lazy_init(&x->buf)" at some point, and blindly u

[PATCH] Revert "test-lib: whitelist GIT_TR2_* in the environment"

2019-06-12 Thread Ævar Arnfjörð Bjarmason
This reverts my commit c1ee5796dc ("test-lib: whitelist GIT_TR2_* in the environment", 2019-03-30), which is now redundant. Since e4b75d6a1d ("trace2: rename environment variables to GIT_TRACE2*", 2019-05-19) the GIT_TRACE2* variables match the existing GIT_TRACE* pattern added in 95a1d12e9b ("tes

Re: Reducing git size by building libgit.so

2019-06-12 Thread Paul Smith
On Tue, 2019-06-11 at 23:48 +, brian m. carlson wrote: > Also, some people install Git into their home directories, and a > shared library means that they'll have to use LD_LIBRARY_PATH (or > equivalent) to run Git. I don't have strong feeling about .so's although obviously less disk space use

Git Pull Hangs

2019-06-12 Thread Allen Kinzalow
Hello, I have attached the output of a "git pull" command. Suddenly we are unable to pull or fetch anything from our repository. It is temporarily fixed by deleting .git/packed-refs but quickly starts happening again. I have attached the output of where it stops execution. We are unsure as t

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

2019-06-12 Thread Phillip Wood
Hi Rohit Thanks for the new version, this is looking pretty good now, just a few comments below On 11/06/2019 08:31, Rohit Ashiwal wrote: git am or rebase have a --skip flag to skip the current commit if the user wishes to do so. During a cherry-pick or revert a user could likewise skip a com

[PATCH v5 09/11] commit-graph: extract count_distinct_commits()

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too complex, so we are extracting helper functions one by one. Extract count_distinct_commits(), which sorts the oids list, then iterates through to find duplicates. Signed-off-by: Derrick Stolee --- commit-graph.c | 35 +

[PATCH v5 11/11] commit-graph: extract write_commit_graph_file()

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too complex, so we are extracting helper functions one by one. Extract write_commit_graph_file() that takes all of the information in the context struct and writes the data to a commit-graph file. Signed-off-by: Derrick Stolee --- commit

[PATCH v5 07/11] commit-graph: extract fill_oids_from_commit_hex()

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too complex, so we are extracting helper functions one by one. Extract fill_oids_from_commit_hex() that reads the given commit id list and fille the oid list in the context. Signed-off-by: Derrick Stolee --- commit-graph.c | 72 +

[PATCH v5 06/11] commit-graph: extract fill_oids_from_packs()

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too complex, so we are extracting helper functions one by one. This extracts fill_oids_from_packs() that reads the given pack-file list and fills the oid list in the context. Signed-off-by: Derrick Stolee --- commit-graph.c | 83

[PATCH v5 08/11] commit-graph: extract fill_oids_from_all_packs()

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too complex, so we are extracting helper functions one by one. Extract fill_oids_from_all_packs() that reads all pack-files for commits and fills the oid list in the context. Signed-off-by: Derrick Stolee --- commit-graph.c | 26

[PATCH v5 03/11] commit-graph: collapse parameters into flags

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() and write_commit_graph_reachable() methods currently take two boolean parameters: 'append' and 'report_progress'. As we update these methods, adding more parameters this way becomes cluttered and hard to maintain. Collapse these parameters into a 'fl

[PATCH v5 10/11] commit-graph: extract copy_oids_to_commits()

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too complex, so we are extracting helper functions one by one. Extract copy_oids_to_commits(), which fills the commits list with the distinct commits from the oids list. During this loop, it also counts the number of "extra" edges from octo

[PATCH v5 00/11] Commit-graph write refactor (was: Create commit-graph file format v2)

2019-06-12 Thread Derrick Stolee via GitGitGadget
This series replaces ds/commit-graph-file-v2, and I'm using the same gitgitgadget PR to continue the version numbers and hopefully make that clear. This is a slight modification on patches 1-11 from the incremental file format RFC [0]. The commit-graph feature is growing, thanks to all of the cont

[PATCH v5 05/11] commit-graph: create write_commit_graph_context

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method is too large and complex. To simplify it, we should extract several helper functions. However, we will risk repeating a lot of declarations related to progress incidators and object id or commit lists. Create a new write_commit_graph_context s

[PATCH v5 01/11] commit-graph: fix the_repository reference

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The parse_commit_buffer() method takes a repository pointer, so it should not refer to the_repository anymore. Signed-off-by: Derrick Stolee --- commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit.c b/commit.c index a5333c7ac6..e4d1233226 10

[PATCH v5 04/11] commit-graph: remove Future Work section

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The commit-graph feature began with a long list of planned benefits, most of which are now complete. The future work section has only a few items left. As for making more algorithms aware of generation numbers, some are only waiting for generation number v2 to ensure the per

[PATCH v5 02/11] commit-graph: return with errors during write

2019-06-12 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The write_commit_graph() method uses die() to report failure and exit when confronted with an unexpected condition. This use of die() in a library function is incorrect and is now replaced by error() statements and an int return type. Return zero on success and a negative val

Re: [RFC PATCH 3/3] trace2: add a schema validator for trace2 events

2019-06-12 Thread Ævar Arnfjörð Bjarmason
On Wed, Jun 12 2019, Josh Steadmon wrote: > trace_schema_validator can be used to verify that trace2 event output > conforms to the expectations set by the API documentation and codified > in event_schema.json (or strict_schema.json). This allows us to build a > regression test to verify that tr

Re: What's cooking in git.git (Jun 2019, #02; Thu, 6)

2019-06-12 Thread Derrick Stolee
On 6/6/2019 3:57 PM, Junio C Hamano wrote: > * ds/commit-graph-incremental (2019-06-06) 15 commits > - SQUASH??? 5323 is already taken > - commit-graph: clean up chains after flattened write > - commit-graph: verify chains with --shallow mode > - commit-graph: create options for split files >

Re: Git status parse error after v.2.22.0 upgrade

2019-06-12 Thread Espen Antonsen
I don't have any hooks, just the default sample scripts. GIT_TRACE doesn't show anything else. On Tue, 11 Jun 2019, at 21:28, Johannes Schindelin wrote: > Hi Espen, > > On Tue, 11 Jun 2019, Espen Antonsen wrote: > > > Seeing an error after upgrading to git v2.22.0. > > > > git status shows “err

BUG: Git checkout on Linux sets always CRLF regardless of core.eol

2019-06-12 Thread Alexander
Hello, I am trying to checkout out various 3rd party Git projects on Linux and build them. Some of them have text files created under Windows with CRLF endings and it is not under my responsibility to change it. Thus I have to force LF line ending for Git checkout (regardless of which line ending

Re: Reducing git size by building libgit.so

2019-06-12 Thread SZEDER Gábor
On Wed, Jun 12, 2019 at 11:41:10AM +0200, Ævar Arnfjörð Bjarmason wrote: > On Tue, Jun 11 2019, Elmar Pruesse wrote: > > The total compiled size of libexec/git-core is currently somewhere > > around 30 MB. This is largely due to a number of binaries linking > > statically against libgit.a. For some

Re: Reducing git size by building libgit.so

2019-06-12 Thread Duy Nguyen
On Wed, Jun 12, 2019 at 4:42 PM Ævar Arnfjörð Bjarmason wrote: > I.e. we'd just have one git binary, everything else symlinking to that, > and we'd route to the right program by inspecting argv, which we mostly > do already. If I remember correctly libcurl.so startup time was the reason it's spli

hello

2019-06-12 Thread eddy william
Mijn naam is Eddy William. Ik ben van beroep advocaat. Ik wil je aanbieden nabestaanden van mijn cliënt. Je ervaart de som van ($ 14,2 miljoen) dollars die mijn cliënt voor zijn overlijden op de bank heeft achtergelaten. Mijn klant is een burger van jouw land die stierf in auto-ongeluk met zijn vr

Re: Reducing git size by building libgit.so

2019-06-12 Thread Ævar Arnfjörð Bjarmason
On Tue, Jun 11 2019, Elmar Pruesse wrote: > Hi! > > The total compiled size of libexec/git-core is currently somewhere > around 30 MB. This is largely due to a number of binaries linking > statically against libgit.a. For some folks, every byte counts. I > meddled with the Makefile briefly to ma

Re: Reducing git size by building libgit.so

2019-06-12 Thread Duy Nguyen
On Wed, Jun 12, 2019 at 2:11 PM brian m. carlson wrote: > > On 2019-06-11 at 19:52:18, Elmar Pruesse wrote: > > Hi! > > > > The total compiled size of libexec/git-core is currently somewhere > > around 30 MB. This is largely due to a number of binaries linking > > statically against libgit.a. For

[PATCH 1/1] add -p: fix checkout -p with pathological context

2019-06-12 Thread Phillip Wood via GitGitGadget
From: Phillip Wood Commit fecc6f3a68 ("add -p: adjust offsets of subsequent hunks when one is skipped", 2018-03-01) fixed adding hunks in the correct place when a previous hunk has been skipped. However it did not address patches that are applied in reverse. In that case we need to adjust the pre

[PATCH 0/1] add -p: fix checkout -p with pathological context

2019-06-12 Thread Phillip Wood via GitGitGadget
When I fixed the hunk offsets in add -p when hunks are skipped I forgot that the reverse patch case needs to be handled differently. Phillip Wood (1): add -p: fix checkout -p with pathological context git-add--interactive.perl | 6 +- t/t3701-add-interactive.sh | 8 2 files chang

Re: What's cooking in git.git (Jun 2019, #02; Thu, 6)

2019-06-12 Thread Duy Nguyen
On Fri, Jun 7, 2019 at 3:19 AM Junio C Hamano wrote: > * nd/switch-and-restore (2019-05-07) 43 commits > - Declare both git-switch and git-restore experimental > - help: move git-diff and git-reset to different groups > - doc: promote "git restore" > - user-manual.txt: prefer 'merge --abort' o

[PATCH v2] completion: do not cache if --git-completion-helper fails

2019-06-12 Thread Nguyễn Thái Ngọc Duy
"git --git-completion-helper" could fail if the command checks for a repo before parse_options(). If the result is cached, later on when the user moves to a worktree with repo, tab completion will still fail. Avoid this by detecting errors and not cache the completion output. We can try again and

Re: [PATCH] completion: do not cache if --git-completion-helper fails

2019-06-12 Thread Duy Nguyen
On Sat, Jun 8, 2019 at 12:33 AM Felipe Contreras wrote: > > On Fri, Jun 7, 2019 at 5:02 AM SZEDER Gábor wrote: > > > > On Fri, Jun 07, 2019 at 04:30:34PM +0700, Nguyễn Thái Ngọc Duy wrote: > > > "git --git-completion-helper" could fail if the command checks for > > > a repo before parse_options(