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

2018-08-31 Thread Kaartic Sivaraam
On 30 August 2018 21:41:35 GMT+05:30, Elijah Newren wrote: >That makes sense. I'm not sure I can concisely convey all the right >points, but here's a stab at rewording: > >Recent addition of "directory rename" heuristics to the >merge-recursive backend makes the command susceptible to false

[PATCH 0/2] rebase --autosquash: handle manual "final fixups"

2018-08-31 Thread Johannes Schindelin via GitGitGadget
'tis bug fix season! I admit, though, that this bug might be a bit too off the trodden path to merit fast-tracking into v2.19.0. While pairing with Jameson Miller to rebase Git for Windows to v2.19.0-rc1, we had to fix a couple of commits which had somehow lost their proper authorship (probably

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

2018-08-31 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin When an interactive rebase was stopped at the end of a fixup/squash chain, the user might have edited the commit manually before continuing (with either `git rebase --skip` or `git rebase --continue`, it does not really matter which). We need to be very careful to wrap

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

2018-08-31 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin The `git commit --squash` command can be used not only to amend commit messages and changes, but also to record notes for an upcoming rebase. For example, when the author information of a given commit is incorrect, a user might call `git commit --allow-empty -m "Fix

Re: [PATCH 5/6] pack-bitmap: save "have" bitmap from walk

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 05:23:17PM +0200, Ævar Arnfjörð Bjarmason wrote: > On Tue, Aug 21 2018, Jeff King wrote: > > > +int bitmap_has_sha1_in_uninteresting(struct bitmap_index *bitmap_git, > > +const unsigned char *sha1) > > +{ > > + int pos; > > + > > + if

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

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

Re: [PATCH 0/9] worktree: fix bugs and broaden --force applicability

2018-08-31 Thread Ramsay Jones
On 31/08/18 01:54, Jeff King wrote: > On Fri, Aug 31, 2018 at 12:49:39AM +0100, Ramsay Jones wrote: > >> On 30/08/18 21:14, Junio C Hamano wrote: >>> Jeff King writes: >>> I suppose so. I don't think I've _ever_ used distclean, and I only rarely use "clean" (a testament to our

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

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

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

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 11:14:20PM +0200, Johannes Schindelin wrote: > On Fri, 31 Aug 2018, Junio C Hamano wrote: > [...] > > So instead of typing 3 lines, you can just say "yes we use echo that > > emulates Unix". > > You could just express your gratitude that I do more than just answer a >

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

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

Re: Possible bug: identical lines added/removed in git diff

2018-08-31 Thread Johannes Schindelin
Hi, On Thu, 30 Aug 2018, Stefan Beller wrote: > On Thu, Aug 30, 2018 at 12:20 PM Jeff King wrote: > > > > [...] Myers does not promise to find the absolute minimal diff. [...] > > The `Myers` (our default) diff algorithm is really the Myers algorithm + > a heuristic that cuts off the long tail

Re: [PATCH 3/3] doc/Makefile: drop doc-diff worktree and temporary files on "make clean"

2018-08-31 Thread Eric Sunshine
On Fri, Aug 31, 2018 at 4:07 PM Jeff King wrote: > On Fri, Aug 31, 2018 at 02:33:18AM -0400, Eric Sunshine wrote: > > diff --git a/Documentation/Makefile b/Documentation/Makefile > > @@ -332,6 +332,7 @@ clean: > > $(RM) manpage-base-url.xsl > > + '$(SHELL_PATH_SQ)' ./doc-diff --clean >

Re: [PATCH 2/3] doc-diff: add --clean mode to remove temporary working gunk

2018-08-31 Thread Eric Sunshine
On Fri, Aug 31, 2018 at 4:01 PM Jeff King wrote: > On Fri, Aug 31, 2018 at 02:33:17AM -0400, Eric Sunshine wrote: > > OPTIONS_SPEC="\ > > doc-diff [options] [-- ] > > +doc-diff (-c|--clean) > > -- > > j=n parallel argument to pass to make > > fforce rebuild; do not rely on cached

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

2018-08-31 Thread Johannes Schindelin
Hi Junio, On Fri, 31 Aug 2018, Junio C Hamano wrote: > Johannes Schindelin writes: > > >> Would "echo base >base" give us 5-byte long base even on Windows? > > > > Please note that Unix shell scripting is a foreign thing on Windows. As > > such, there is not really any "native" shell we can

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

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

Re: [PATCH] config.mak.uname: resolve FreeBSD iconv-related compilation warning

2018-08-31 Thread Eric Sunshine
On Fri, Aug 31, 2018 at 1:00 PM Jonathan Nieder wrote: > > From: Jonathan Nieder > > OLD_ICONV has long been needed by FreeBSD so config.mak.uname defines > > it unconditionally. However, recent versions do not need it, and its > > presence results in compilation warnings. Resolve this issue by

Re: [PATCH v2 1/1] builtin rebase: prepare for builtin rebase -i

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 10:38:44PM +0200, Johannes Schindelin wrote: > > > Is there any reason why you avoid using `git rebase -ir` here? This should > > > be so much easier via > > > > > > git checkout pk/rebase-i-in-c-6-final > > > git rebase -ir js/rebase-in-c-5.5-work-with-rebase-i-in-c^

Re: [PATCH v2 1/1] builtin rebase: prepare for builtin rebase -i

2018-08-31 Thread Johannes Schindelin
Hi Peff, On Thu, 30 Aug 2018, Jeff King wrote: > On Thu, Aug 30, 2018 at 01:03:41PM +0200, Johannes Schindelin wrote: > > > > Will replace by doing: > > > > > > $ git checkout js/rebase-in-c-5.5-work-with-rebase-i-in-c > > > $ git checkout HEAD^ > > > $ git am -s mbox > > > $

[PATCH v5 8/9] fetch: document local ref updates with/without --force

2018-08-31 Thread Ævar Arnfjörð Bjarmason
Refer to the new git-push(1) documentation about when ref updates are and aren't allowed with and without --force, noting how "git-fetch" differs from the behavior of "git-push". Perhaps it would be better to split this all out into a new gitrefspecs(7) man page, or present this information using

[PATCH v5 9/9] fetch: stop clobbering existing tags without --force

2018-08-31 Thread Ævar Arnfjörð Bjarmason
Change "fetch" to treat "+" in refspecs (aka --force) to mean we should clobber a local tag of the same name. This changes the long-standing behavior of "fetch" added in 853a3697dc ("[PATCH] Multi-head fetch.", 2005-08-20). Before this change, all tag fetches effectively had --force enabled. See

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

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

[PATCH v5 3/9] push tests: use spaces in interpolated string

2018-08-31 Thread Ævar Arnfjörð Bjarmason
The quoted -m'msg' option would mean the same as -mmsg when passed through the test_force_push_tag helper. Let's instead use a string with spaces in it, to have a working example in case we need to pass other whitespace-delimited arguments to git-tag. Signed-off-by: Ævar Arnfjörð Bjarmason ---

[PATCH v5 4/9] fetch tests: add a test for clobbering tag behavior

2018-08-31 Thread Ævar Arnfjörð Bjarmason
The test suite only incidentally (and unintentionally) tested for the current behavior of eager tag clobbering on "fetch". This is a followup to 380efb65df ("push tests: assert re-pushing annotated tags", 2018-07-31) which tests for it explicitly. Signed-off-by: Ævar Arnfjörð Bjarmason ---

[PATCH v5 5/9] push doc: remove confusing mention of remote merger

2018-08-31 Thread Ævar Arnfjörð Bjarmason
Saying that "git push :" won't push a merger of and to is clear from the rest of the context here, so mentioning it is redundant, furthermore the mention of "EXAMPLES below" isn't specific or useful. This phrase was originally added in 149f6ddfb3 ("Docs: Expand explanation of the use of + in

[PATCH v5 0/9] git fetch" should not clobber existing tags without --force

2018-08-31 Thread Ævar Arnfjörð Bjarmason
Addresses Junio's comments to v4, and I had a few fixes of my own. I don't know if this range-diff is more or less readble than just re-reading it, but here goes: 1: d05fd561f3 = 1: d05fd561f3 fetch: change "branch" to "reference" in --force -h output -: -- > 2: 28275baca2 push

[PATCH v5 1/9] fetch: change "branch" to "reference" in --force -h output

2018-08-31 Thread Ævar Arnfjörð Bjarmason
The -h output has been referring to the --force command as forcing the overwriting of local branches, but since "fetch" more generally fetches all sorts of references in all refs/ namespaces, let's talk about forcing the update of a a "reference" instead. This wording was initially introduced in

[PATCH v5 6/9] push doc: move mention of "tag " later in the prose

2018-08-31 Thread Ævar Arnfjörð Bjarmason
This change will be followed-up with a subsequent change where I'll change both sides of this mention of "tag " to be something that's best read without interruption. To make that change smaller, let's move this mention of "tag " to the end of the "..." section, it's now somewhere in the middle.

[PATCH v5 7/9] push doc: correct lies about how push refspecs work

2018-08-31 Thread Ævar Arnfjörð Bjarmason
There's complex rules governing whether a push is allowed to take place depending on whether we're pushing to refs/heads/*, refs/tags/* or refs/not-that/*. See is_branch() in refs.c, and the various assertions in refs/files-backend.c. (e.g. "trying to write non-commit object %s to branch '%s'").

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

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 02:33:15AM -0400, Eric Sunshine wrote: > This series replaces Peff's solo patch[1] which updates "make clean" to > remove doc-diff's temporary directory. Rather than imbuing the Makefile > with knowledge specific to doc-diff's internals, this series adds a > "clean" mode

Re: [PATCH 3/3] doc/Makefile: drop doc-diff worktree and temporary files on "make clean"

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 02:33:18AM -0400, Eric Sunshine wrote: > doc-diff creates a temporary working tree (git-worktree) and generates a > bunch of temporary files which it does not remove since they act as a > cache to speed up subsequent runs. Although doc-diff's working tree and > generated

Re: [PATCH 2/3] doc-diff: add --clean mode to remove temporary working gunk

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 02:33:17AM -0400, Eric Sunshine wrote: > As part of its operation, doc-diff creates a bunch of temporary > working files and holds onto them in order to speed up subsequent > invocations. These files are never deleted. Moreover, it creates a > temporary working tree (via

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

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

Re: [PATCH 1/3] doc-diff: fix non-portable 'man' invocation

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 02:33:16AM -0400, Eric Sunshine wrote: > doc-diff invokes 'man' with the -l option to force "local" mode, > however, neither MacOS nor FreeBSD recognize this option. On those > platforms, if the argument to 'man' contains a slash, it is > automatically interpreted as a

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

2018-08-31 Thread Jeff King
On Fri, Aug 31, 2018 at 08:33:26AM -0700, Junio C Hamano wrote: > Johannes Schindelin writes: > > >> Would "echo base >base" give us 5-byte long base even on Windows? > > > > Please note that Unix shell scripting is a foreign thing on Windows. As > > such, there is not really any "native" shell

Re: A rebase regression in Git 2.18.0

2018-08-31 Thread Elijah Newren
Hi Dscho, On Fri, Aug 31, 2018 at 3:12 AM Johannes Schindelin wrote: > On Thu, 30 Aug 2018, Elijah Newren wrote: > > On Tue, Aug 28, 2018 at 9:58 AM Junio C Hamano wrote: > > > Elijah Newren writes: ... > > > I'd say this is the only practical solution, before you deprecate > > > the "pipe

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

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

Re: [PATCH v3 05/11] t0027: make hash size independent

2018-08-31 Thread Eric Sunshine
On Fri, Aug 31, 2018 at 2:21 PM Torsten Bögershausen wrote: > > diff --git a/t/t0027-auto-crlf.sh b/t/t0027-auto-crlf.sh > > @@ -14,11 +14,13 @@ compare_files () { > > compare_ws_file () { > > + tmp=$2.tmp > > act=$pfx.actual.$3 > > - tr '\015\000abcdef0123456789'

Re: [PATCH] config.mak.uname: resolve FreeBSD iconv-related compilation warning

2018-08-31 Thread Eric Sunshine
On Fri, Aug 31, 2018 at 7:54 AM Ævar Arnfjörð Bjarmason wrote: > On Fri, Aug 31, 2018 at 11:52 AM Eric Sunshine > wrote: > > OLD_ICONV has long been needed by FreeBSD so config.mak.uname defines > > it unconditionally. However, recent versions do not need it, and its > > presence results in

Re: [PATCH v3 05/11] t0027: make hash size independent

2018-08-31 Thread Torsten Bögershausen
On Wed, Aug 29, 2018 at 12:56:36AM +, brian m. carlson wrote: > We transform various object IDs into all-zero object IDs for comparison. > Adjust the length as well so that this works for all hash algorithms. > > Signed-off-by: brian m. carlson > --- > t/t0027-auto-crlf.sh | 6 -- > 1

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

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

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

2018-08-31 Thread Stephen & Linda Smith
On Friday, August 31, 2018 9:54:50 AM MST Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> Leave the setting of the commitable flag in show_merge_in_progress. If > >> a check for merged commits is moved to the collect phase then other > >> --dry-run tests fail. > > "Some tests fail"

Re: [PATCH 2/3] Add test for commit --dry-run --short.

2018-08-31 Thread Stephen & Linda Smith
On Friday, August 31, 2018 9:26:02 AM MST Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > > > > Ditto my comment on 1/3 on this. I.e. this changes the failing tests in > > this series from 2 to 3. > > Correct. Thanks for helping Stephen on this topic. I wasn't sure how this

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

2018-08-31 Thread Derrick Stolee
On 8/31/2018 12:49 PM, Jeff Hostetler via GitGitGadget wrote: + if (tr2key_trace_want(_event)) { + struct tr2tls_thread_ctx *ctx = tr2tls_get_self(); + if (ctx->nr_open_regions <= tr2env_event_depth_wanted) { This should also compare to TR2_MAX_REGION_NESTING

Re: [PATCH 0/8] WIP: trace2: a new trace facility

2018-08-31 Thread Derrick Stolee
On 8/31/2018 12:49 PM, Jeff Hostetler via GitGitGadget wrote: This patch series contains a new trace2 facility that hopefully addresses the recent trace- and structured-logging-related discussions. The intent is to eventually replace the existing trace_ routines (or to route them to the new

Re: [PATCH] config.mak.uname: resolve FreeBSD iconv-related compilation warning

2018-08-31 Thread Jonathan Nieder
Eric Sunshine wrote: > From: Jonathan Nieder > > OLD_ICONV has long been needed by FreeBSD so config.mak.uname defines > it unconditionally. However, recent versions do not need it, and its > presence results in compilation warnings. Resolve this issue by defining > OLD_ICONV only for older

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

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

[PATCH 4/8] trace2: demonstrate trace2 child process classification

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Classify editory, pager, and sub-process child processes. The former two can be used to identify interactive commands, for example. Signed-off-by: Jeff Hostetler --- editor.c | 1 + pager.c | 1 + sub-process.c | 1 + 3 files changed, 3 insertions(+) diff

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

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Create trace2 API allowing event-based tracing. This will hopefully eventually replace the existing trace API. Create GIT_TR2 trace-key to replace GIT_TRACE, GIT_TR2_PERFORMANCE to replace GIT_TRACE_PERFORMANCE, and a new trace-key GIT_TR2_EVENT to generate JSON data for

[PATCH 5/8] trace2: demonstrate instrumenting do_read_index

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Signed-off-by: Jeff Hostetler --- read-cache.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/read-cache.c b/read-cache.c index 7b1354d759..7a31ac4da8 100644 --- a/read-cache.c +++ b/read-cache.c @@ -1867,6 +1867,8 @@ static void tweak_split_index(struct

[PATCH 0/8] WIP: trace2: a new trace facility

2018-08-31 Thread Jeff Hostetler via GitGitGadget
This patch series contains a new trace2 facility that hopefully addresses the recent trace- and structured-logging-related discussions. The intent is to eventually replace the existing trace_ routines (or to route them to the new trace2_ routines) as time permits. This draft adds new trace2_

[PATCH 6/8] trace2: demonstrate instrumenting threaded preload_index

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Add trace2_region_enter() and _leave() around the entire preload_index() call. Also add thread-specific events in the preload_thread() threadproc. Signed-off-by: Jeff Hostetler --- preload-index.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 3/8] trace2: demonstrate trace2 regions in wt-status

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Add trace2_region_enter() and trace2_region_leave() calls around the various phases of a status scan. This gives elapsed time for each phase in the GIT_TR2_PERFORMANCE trace target. Signed-off-by: Jeff Hostetler --- wt-status.c | 14 -- 1 file changed, 12

[PATCH 7/8] trace2: demonstrate setting sub-command parameter in checkout

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Add trace2_param() events in checkout to report whether the command is switching branches or just checking out a file. Signed-off-by: Jeff Hostetler --- builtin/checkout.c | 5 + 1 file changed, 5 insertions(+) diff --git a/builtin/checkout.c b/builtin/checkout.c

[PATCH 8/8] trace2: demonstrate use of regions in read_directory_recursive

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Add trace2_region_enter() and _leave() calls inside read_directory_recursive() to show nesting and per-level timing. TODO Drop this commit or ifdef the calls. It generates too much data to be in the production version. It is included in this patch series for illustration

[PATCH 2/8] trace2: add trace2 to main

2018-08-31 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Signed-off-by: Jeff Hostetler --- compat/mingw.h| 3 +-- git-compat-util.h | 7 +++ git.c | 9 - repository.c | 2 ++ run-command.c | 8 +++- run-command.h | 5 + usage.c | 5 + 7 files changed, 35

Re: [PATCH v4 4/6] push doc: correct lies about how push refspecs work

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Fri, Aug 31, 2018 at 6:24 PM Junio C Hamano wrote: > > Ævar Arnfjörð Bjarmason writes: > > > On Thu, Aug 30 2018, Ævar Arnfjörð Bjarmason wrote: > > > > [Notes to self] > > ... > > > > Later below this we say: > > > > Pushing an empty allows you to delete the ref from the > > remote

Re: [PATCH 2/3] Add test for commit --dry-run --short.

2018-08-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > On Fri, Aug 31 2018, Stephen P. Smith wrote: > >> Add test for commit with --dry-run --short for a new file of zero >> length. >> >> The test demonstrated that the setting of the commitable flag was >> broken as was found durning an earlier patch review. >> >>

Re: [PATCH v4 4/6] push doc: correct lies about how push refspecs work

2018-08-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > On Thu, Aug 30 2018, Ævar Arnfjörð Bjarmason wrote: > > [Notes to self] > ... > > Later below this we say: > > Pushing an empty allows you to delete the ref from the > remote repository. > > Which, perhaps given the discussion of deletions as updates,

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

2018-08-31 Thread Junio C Hamano
Johannes Schindelin writes: >> Would "echo base >base" give us 5-byte long base even on Windows? > > Please note that Unix shell scripting is a foreign thing on Windows. As > such, there is not really any "native" shell we can use [*1*], and Yeah, I know that; otherwise I wouldn't have asked.

Re: [PATCH 5/6] pack-bitmap: save "have" bitmap from walk

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Tue, Aug 21 2018, Jeff King wrote: > +int bitmap_has_sha1_in_uninteresting(struct bitmap_index *bitmap_git, > + const unsigned char *sha1) > +{ > + int pos; > + > + if (!bitmap_git) > + return 0; /* no bitmap loaded */ > + if

Re: Feature request: hooks directory

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Fri, Aug 31 2018, Wesley Schwengle wrote: > Hop, > > 2018-08-30 16:45 GMT+02:00 Ævar Arnfjörð Bjarmason : > >>> Solution: >>> We discussed this at work and we thought about making a .d directory >>> for the hooks, eg. $GIT_DIR/hooks/post-commit.d, where a user can put >>> the post-commit

Re: Automatic core.autocrlf?

2018-08-31 Thread Torsten Bögershausen
On Fri, Aug 31, 2018 at 07:57:04AM -0400, Randall S. Becker wrote: > > On August 30, 2018 11:29 PM, Jonathan Nieder wrote: > > Torsten Bögershausen wrote: > > > > > My original plan was to try to "make obsolete"/retire and phase out > > > core.autocrlf completely. > > > However, since e.g.

Re: Feature request: hooks directory

2018-08-31 Thread Wesley Schwengle
Hop, 2018-08-30 16:45 GMT+02:00 Ævar Arnfjörð Bjarmason : >> Solution: >> We discussed this at work and we thought about making a .d directory >> for the hooks, eg. $GIT_DIR/hooks/post-commit.d, where a user can put >> the post-commit hooks in. This allows us to provide post commit hooks >> and

RE: Automatic core.autocrlf?

2018-08-31 Thread Randall S. Becker
On August 30, 2018 11:29 PM, Jonathan Nieder wrote: > Torsten Bögershausen wrote: > > > My original plan was to try to "make obsolete"/retire and phase out > > core.autocrlf completely. > > However, since e.g. egit/jgit uses it > > (they don't have support for .gitattributes at all) I am not

Re: [PATCH] config.mak.uname: resolve FreeBSD iconv-related compilation warning

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Fri, Aug 31, 2018 at 11:52 AM Eric Sunshine wrote: > OLD_ICONV has long been needed by FreeBSD so config.mak.uname defines > it unconditionally. However, recent versions do not need it, and its > presence results in compilation warnings. Resolve this issue by defining > OLD_ICONV only for

Re: Thank you for public-inbox!

2018-08-31 Thread Eric Wong
Jonathan Nieder wrote: > Eric Wong wrote: > > Jonathan Nieder wrote: > >> Jeff King wrote: > > >>> I guess I just wonder if I set up a mirror on another domain, would > >>> anybody actually _use_ it? I'd think most people would just go to > >>> public-inbox.org as the de facto URL. > >> > >> If

Re: Git in Outreachy Dec-Mar?

2018-08-31 Thread Оля Тележная
Hi everyone, I was Outreachy intern last winter. I guess I need to speak up: I will be happy if my feedback helps you. At first, I want to repeat all thanks to Outreachy organizers and Git mentors. That was unique experience and I am so proud of being a part of this project. But, I need to say

Re: A rebase regression in Git 2.18.0

2018-08-31 Thread Johannes Schindelin
Hi Elijah, On Thu, 30 Aug 2018, Elijah Newren wrote: > On Tue, Aug 28, 2018 at 9:58 AM Junio C Hamano wrote: > > > > Elijah Newren writes: > > > > > - Add a flag to turn off directory rename detection, and set the > > > flag for every call from am.c in order to avoid problems like this. > >

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

2018-08-31 Thread Johannes Schindelin
Hi Junio, On Thu, 30 Aug 2018, Junio C Hamano wrote: > Jeff King writes: > > > +test_expect_success \ > > +'apply delta with too many copied bytes' \ > > +'printf "\5\1\221\0\2" > too_big_copy && > > + echo base >base && > > + test_must_fail test-tool delta -p base too_big_copy

Re: improved diff tool

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Thu, Aug 30 2018, Piers Titus van der Torren wrote: > Is there interest to incorporate this algorithm in the main git > codebase? And if so, any hints on how to proceed? This looks very nice, it would be great to have it in git. I think it's more useful to focus on getting it into the git C

Re: improved diff tool

2018-08-31 Thread Christian Couder
On Thu, Aug 30, 2018 at 7:22 PM, Stefan Beller wrote: > > AFAICT this is more than just a coloring scheme as it both produces > a different low level diff, which would need code in the xdiff parts > as well as colors, that is in diff.c. About the low level diff, Michael Haggerty's tools for

Re: Git in Outreachy Dec-Mar?

2018-08-31 Thread Christian Couder
On Thu, Aug 30, 2018 at 9:24 PM, Jeff King wrote: > On Thu, Aug 30, 2018 at 01:46:00PM +0200, Johannes Schindelin wrote: > >> I am willing to mentor, and the only reason that kept me from already >> stepping forward and trying to brush up the landing page is this concern: >> traditionally, we (as

[PATCH] config.mak.uname: resolve FreeBSD iconv-related compilation warning

2018-08-31 Thread Eric Sunshine
From: Jonathan Nieder OLD_ICONV has long been needed by FreeBSD so config.mak.uname defines it unconditionally. However, recent versions do not need it, and its presence results in compilation warnings. Resolve this issue by defining OLD_ICONV only for older FreeBSD versions. Specifically,

Re: Git in Outreachy Dec-Mar?

2018-08-31 Thread Christian Couder
Hi, On Tue, Aug 28, 2018 at 5:14 PM, Jeff King wrote: > The Outreachy application period is set to begin on September 10th for > interns participating in the December-March program. Do we want to > participate? > > Details on the program are here: > > https://www.outreachy.org/communities/cfp/

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

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

Re: [PATCH 2/3] Add test for commit --dry-run --short.

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Fri, Aug 31 2018, Stephen P. Smith wrote: > Add test for commit with --dry-run --short for a new file of zero > length. > > The test demonstrated that the setting of the commitable flag was > broken as was found durning an earlier patch review. > > Signed-off-by: Stephen P. Smith > --- >

Re: [PATCH 1/3] Change tests from expecting to fail to expecting success.

2018-08-31 Thread Ævar Arnfjörð Bjarmason
On Fri, Aug 31 2018, Stephen P. Smith wrote: > diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh > index 4cae92804..810d4cea7 100755 > --- a/t/t7501-commit.sh > +++ b/t/t7501-commit.sh > @@ -99,12 +99,12 @@ test_expect_success '--dry-run with stuff to commit > returns ok' ' > git commit

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

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

[PATCH 3/3] doc/Makefile: drop doc-diff worktree and temporary files on "make clean"

2018-08-31 Thread Eric Sunshine
doc-diff creates a temporary working tree (git-worktree) and generates a bunch of temporary files which it does not remove since they act as a cache to speed up subsequent runs. Although doc-diff's working tree and generated files are not strictly build products of the Makefile (which, itself,

[PATCH 1/3] doc-diff: fix non-portable 'man' invocation

2018-08-31 Thread Eric Sunshine
doc-diff invokes 'man' with the -l option to force "local" mode, however, neither MacOS nor FreeBSD recognize this option. On those platforms, if the argument to 'man' contains a slash, it is automatically interpreted as a file specification, so a "local"-like mode is not needed. And, it turns

[PATCH 2/3] doc-diff: add --clean mode to remove temporary working gunk

2018-08-31 Thread Eric Sunshine
As part of its operation, doc-diff creates a bunch of temporary working files and holds onto them in order to speed up subsequent invocations. These files are never deleted. Moreover, it creates a temporary working tree (via git-wortkree) which likewise never gets removed. Without knowing the