Re: [PATCH 0/2] Fix warnings on access of a remote with Windows paths

2017-05-23 Thread Johannes Sixt
Am 24.05.2017 um 00:08 schrieb Junio C Hamano: So in short: (1) Hannes's patches are good, but they solve a problem that is different from what their log messages say; the log message needs to be updated; (2) In nd/fopen-errors topic, we need a new patch that deals with

[PATCH 08/29] blame: rename ent_score function

2017-05-23 Thread Jeff Smith
Functions that will be publicly exposed should have names that better reflect what they are a part of. Signed-off-by: Jeff Smith --- builtin/blame.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index

Re: [PATCH v2 4/7] grep: add support for the PCRE v1 JIT API

2017-05-23 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > diff --git a/grep.c b/grep.c > index 1157529115..49e9aed457 100644 > --- a/grep.c > +++ b/grep.c > @@ -351,6 +351,9 @@ static void compile_pcre1_regexp(struct grep_pat *p, > const struct grep_opt *opt) > const char *error; > int

[PATCH 15/29] blame: move xdl_opts flags to scoreboard

2017-05-23 Thread Jeff Smith
The xdl_opts flags are used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/builtin/blame.c

[PATCH 29/29] blame: move entry prepend to libgit

2017-05-23 Thread Jeff Smith
Signed-off-by: Jeff Smith --- blame.c | 16 blame.h | 2 ++ builtin/blame.c | 14 -- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/blame.c b/blame.c index f6c9cb7..00404b9 100644 --- a/blame.c +++ b/blame.c @@

[PATCH 28/29] blame: move scoreboard setup to libgit

2017-05-23 Thread Jeff Smith
Signed-off-by: Jeff Smith --- blame.c | 279 +++- blame.h | 10 +- builtin/blame.c | 276 --- 3 files changed, 281 insertions(+), 284 deletions(-) diff

[PATCH 27/29] blame: move scoreboard-related methods to libgit

2017-05-23 Thread Jeff Smith
Signed-off-by: Jeff Smith --- blame.c | 1313 ++ blame.h | 11 + builtin/blame.c | 1318 --- 3 files changed, 1324 insertions(+), 1318 deletions(-) diff

[PATCH 21/29] blame: create scoreboard init function

2017-05-23 Thread Jeff Smith
Create function that initializes blame_scoreboard to default values. Signed-off-by: Jeff Smith --- builtin/blame.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index e343520..f839571 100644 ---

[PATCH 17/29] blame: make sanity_check use a callback in scoreboard

2017-05-23 Thread Jeff Smith
Allow the interface user to decide how to handle a failed sanity check, whether that be to output with the current state or to do nothing. Signed-off-by: Jeff Smith --- builtin/blame.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff

[PATCH 20/29] blame: rework methods that determine 'final' commit

2017-05-23 Thread Jeff Smith
Either prepare_initial or prepare_final is used to determine which commit is marked as 'final'. Call the underlying methods directly to make this more clear. Signed-off-by: Jeff Smith --- builtin/blame.c | 49 +++-- 1 file changed,

[PATCH 25/29] blame: move origin-related methods to libgit

2017-05-23 Thread Jeff Smith
Signed-off-by: Jeff Smith --- Makefile| 1 + blame.c | 62 + blame.h | 15 builtin/blame.c | 72 - 4 files changed, 78 insertions(+),

[PATCH 18/29] blame: move progess updates to a scoreboard callback

2017-05-23 Thread Jeff Smith
Allow the interface user to decide how to handle a progress update. Signed-off-by: Jeff Smith --- builtin/blame.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index 1b53325..d05907b 100644

[PATCH 24/29] blame: move core structures to header

2017-05-23 Thread Jeff Smith
The origin, entry, and scoreboard structures are core to the blame interface and need to be exposed for blame functionality. Signed-off-by: Jeff Smith --- blame.h | 143 builtin/blame.c | 134

[PATCH 26/29] blame: move fake-commit-related methods to libgit

2017-05-23 Thread Jeff Smith
Signed-off-by: Jeff Smith --- blame.c | 203 +++- blame.h | 4 +- builtin/blame.c | 197 -- 3 files changed, 205 insertions(+), 199 deletions(-) diff

[PATCH 22/29] blame: create scoreboard setup function

2017-05-23 Thread Jeff Smith
Create function that completes setting up blame_scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 190 ++-- 1 file changed, 101 insertions(+), 89 deletions(-) diff --git a/builtin/blame.c

[PATCH 07/29] blame: rename coalesce function

2017-05-23 Thread Jeff Smith
Functions that will be publicly exposed should have names that better reflect what they are a part of. Signed-off-by: Jeff Smith --- builtin/blame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index

[PATCH 12/29] blame: move contents_from to scoreboard

2017-05-23 Thread Jeff Smith
The argument from --contents is used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 4 1 file changed, 4 insertions(+) diff --git a/builtin/blame.c

[PATCH 09/29] blame: rename nth_line function

2017-05-23 Thread Jeff Smith
Functions that will be publicly exposed should have names that better reflect what they are a part of. Signed-off-by: Jeff Smith --- builtin/blame.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index

[PATCH 14/29] blame: move show_root flag to scoreboard

2017-05-23 Thread Jeff Smith
The show_root flag is used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builtin/blame.c

[PATCH 16/29] blame: move no_whole_file_rename flag to scoreboard

2017-05-23 Thread Jeff Smith
The no_whole_file_rename flag is used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/blame.c

[PATCH 23/29] blame: create entry prepend function

2017-05-23 Thread Jeff Smith
Create function that populates a blame_entry and prepends it to a list. Signed-off-by: Jeff Smith --- builtin/blame.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index fd41551..29771b7

[PATCH 13/29] blame: move reverse flag to scoreboard

2017-05-23 Thread Jeff Smith
The reverse flag is used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git

[PATCH 19/29] blame: wrap blame_sort and compare_blame_final

2017-05-23 Thread Jeff Smith
The new method's interface is marginally cleaner than blame_sort, and will avoid the need to expose the compare_blame_final method. Signed-off-by: Jeff Smith --- builtin/blame.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH 03/29] blame: remove unused parameters

2017-05-23 Thread Jeff Smith
Clean up blame code before moving it into libgit Signed-off-by: Jeff Smith --- builtin/blame.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index fbd757e..3529f01 100644 ---

[PATCH 10/29] blame: move stat counters to scoreboard

2017-05-23 Thread Jeff Smith
Statistic counters are used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff

[PATCH 01/29] blame: remove unneeded dependency on blob.h

2017-05-23 Thread Jeff Smith
With commit 21666f1 ("convert object type handling from a string to a number", 2007-02-26), there was no longer a need for blame.c to include blob.h but it was not removed. Signed-off-by: Jeff Smith --- builtin/blame.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 00/29] Add blame to libgit

2017-05-23 Thread Jeff Smith
Rather than duplicate large portions of builtin/blame.c in cgit, it would be better to shift its core functionality into libgit.a. The functionality left in builtin/blame.c mostly relates to terminal presentation. Since RFC v2 patchset: Rebased (merged in timestamp_t changes) Reorganized to

[PATCH 11/29] blame: move copy/move thresholds to scoreboard

2017-05-23 Thread Jeff Smith
Copy and move score thresholds are used in parts of blame that are being moved to libgit, and should be accessible via the scoreboard structure. Signed-off-by: Jeff Smith --- builtin/blame.c | 41 +++-- 1 file changed, 23 insertions(+), 18

[PATCH 05/29] blame: rename scoreboard structure to blame_scoreboard

2017-05-23 Thread Jeff Smith
The scoreboard structure is core to the blame interface. Since scoreboard will become more exposed, rename it to blame_scoreboard to clarify what it is a part of. Signed-off-by: Jeff Smith --- builtin/blame.c | 58 - 1

[PATCH 04/29] blame: rename origin structure to blame_origin

2017-05-23 Thread Jeff Smith
The origin structure is core to the blame interface. Since origin will become more exposed, rename it to blame_origin to clarify what it is a part of. Signed-off-by: Jeff Smith --- builtin/blame.c | 114 1 file

[PATCH 06/29] blame: rename origin-related functions

2017-05-23 Thread Jeff Smith
Functions related to blame_origin that will be publicly exposed should have names that better reflect what they are a part of. Signed-off-by: Jeff Smith --- builtin/blame.c | 58 - 1 file changed, 29 insertions(+), 29

[PATCH 02/29] blame: move textconv_object with related functions

2017-05-23 Thread Jeff Smith
textconv_object is used in places other than blame.c and should be moved to a more appropriate location. Other textconv related functions are located in diff.c so that seems as good a place as any. Signed-off-by: Jeff Smith --- builtin.h | 2 -- builtin/blame.c

Re: [PATCH v2 2/7] grep: skip pthreads overhead when using one thread

2017-05-23 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Skip the administrative overhead of using pthreads when only using one > thread. Instead take the non-threaded path which would be taken under > NO_PTHREADS. > > The threading support was initially added in commit > 5b594f457a ("Threaded

Re: [PATCH v2 1/7] grep: don't redundantly compile throwaway patterns under threading

2017-05-23 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Rather, it's just to make the code easier to reason about. It's > confusing to debug this under threading & non-threading when the > threading codepaths redundantly compile a pattern which is never used. > > The reason the patterns are

Re: [PATCH v6 6/6] clean: teach clean -d to preserve ignored paths

2017-05-23 Thread Torsten Bögershausen
diff --git a/builtin/clean.c b/builtin/clean.c index d861f836a..937eb17b6 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -857,6 +857,38 @@ static void interactive_main_loop(void) } } +static void correct_untracked_entries(struct dir_struct *dir) +{ + int src, dst,

Re: [PATCH 03/15] handle_revision_arg: stop using "dotdot" as a generic pointer

2017-05-23 Thread Junio C Hamano
Jeff King writes: > The handle_revision_arg() function has a "dotdot" variable > that it uses to find a ".." or "..." in the argument. If we > don't find one, we look for other marks, like "^!". But we > just keep re-using the "dotdot" variable, which is > confusing. > > Let's

Re: [PATCH v2 00/25] Prepare to separate out a packed_ref_store

2017-05-23 Thread Junio C Hamano
Michael Haggerty writes: > * Since v1, branch `bc/object-id` has been merged to `next`, and it > has lots of conflicts with these changes. So I rebased this branch > onto a merge of `master` and `bc/object-id`. (I hope this makes > Junio's job easier.) This

Re: [PATCH 0/15] retain blob info for git diff HEAD:foo HEAD:bar

2017-05-23 Thread Junio C Hamano
Patches around [PATCH 06-08/15] made some unexpected (at least to me) turns but the series told a coherent story, building on top of what has been achieved in the previous steps. Thanks for a pleasant read.

Re: [PATCH 05/15] handle_revision_arg: add handle_dotdot() helper

2017-05-23 Thread Junio C Hamano
Jeff King writes: > The handle_revision_arg function is rather long, and a big > chunk of it is handling the range operators. Let's pull that > out to a separate helper. While we're doing so, we can clean > up a few of the rough edges that made the flow hard to > follow: > > -

Re: [WIP/RFC 00/23] repository object

2017-05-23 Thread Junio C Hamano
Brandon Williams writes: > On 05/22, Jeff King wrote: >> That said, even if we never reached the point where we could handle all >> submodule requests in-process, I think sticking the repo-related global >> state in a struct certainly could not hurt general readability. So

Re: Passing revs to git-bundle-create via stdin

2017-05-23 Thread Junio C Hamano
Jeff King writes: > I think what's happening is that git-bundle actually runs _two_ > traversals using the command-line arguments. ... > ... It was just a way of confirming my > guess about the double-read. > > The real solutions I can think of are: > > 1. Teach git-bundle not

RE: git submodule update --remote fails on non-master branches with shallow clones enabled

2017-05-23 Thread Maxim Chuvilyaev
Hi, I am experiencing a problem with git submodules: git cannot update submodules from remote when using a non-master branch and shallow clones. Tested git versions client: 2.13 (Windows) server: 2.10 (CentOS 7) Behaviour when I have a submodule that is configured to get updates from a

Re: Another git repo at kernel.org?

2017-05-23 Thread Stefan Beller
On Tue, May 23, 2017 at 4:32 PM, Junio C Hamano wrote: > Theodore Ts'o writes: > >> So Junio owns the pub/scm/git/git.git tree on kernel.org, and he may >> already have access to create new repo's under the pub/scm/git >> hierarchy. In which case we might not

Re: [PATCH 01/15] handle_revision_arg: reset "dotdot" consistently

2017-05-23 Thread Philip Oakley
From: "Jeff King" On Sat, May 20, 2017 at 03:56:32PM +0100, Philip Oakley wrote: > That means we do report the correct name for "a" in the > pending array. But some code paths try to show the whole > "a..b" name in error messages, and these erroneously show > only "a" instead

Re: Another git repo at kernel.org?

2017-05-23 Thread Junio C Hamano
Theodore Ts'o writes: > So Junio owns the pub/scm/git/git.git tree on kernel.org, and he may > already have access to create new repo's under the pub/scm/git > hierarchy. In which case we might not need to bug the kernel.org > administrators at all. Yes, sorry for a premature

Re: [Non-Bug] cloning a repository with a default MASTER branch tries to check out the master branch

2017-05-23 Thread Philip Oakley
From: "Junio C Hamano" Félix Saparelli writes: I created a git repository that, for joke reasons, has a single branch called MASTER (in uppercase). Upon cloning this repo, git attempts to checkout the master branch (in lowercase), which does not exist.

Re: `pull --rebase --autostash` fails when fast forward in dirty repo

2017-05-23 Thread Junio C Hamano
Jeff King writes: > ...we can probably restrict it to when autostash is in use, like: > > /* >* If this is a fast-forward, we can skip calling rebase and >* just do the merge ourselves. But we don't know about >* autostash, so use the real rebase command when it's in

Re: [PATCH v6 6/6] clean: teach clean -d to preserve ignored paths

2017-05-23 Thread Junio C Hamano
Samuel Lijin writes: > There is an implicit assumption that a directory containing only > untracked and ignored paths should itself be considered untracked. This > makes sense in use cases where we're asking if a directory should be > added to the git database, but not when

Re: [PATCH 0/2] Fix warnings on access of a remote with Windows paths

2017-05-23 Thread Junio C Hamano
Johannes Schindelin writes: >> In this case, the warning occurs because I build with nd/fopen-errors. > > Ah. So the base commit Junio chose for your v1 is completely > inappropriate. It should be nd/fopen-errors instead. Actuallly, Hannes's patch text and problem

Re: [PATCH v3 22/30] grep: factor test for \0 in grep patterns into a function

2017-05-23 Thread Brandon Williams
On 05/20, Ævar Arnfjörð Bjarmason wrote: > Factor the test for \0 in grep patterns into a function. Since commit > 9eceddeec6 ("Use kwset in grep", 2011-08-21) any pattern containing a > \0 is considered fixed as regcomp() can't handle it. > > This change makes later changes that make use of

Re: [GSoC][PATCH v4 2/2] submodule: port subcommand foreach from shell to C

2017-05-23 Thread Brandon Williams
On 05/23, Stefan Beller wrote: > On Tue, May 23, 2017 at 12:36 PM, Brandon Williams wrote: > > > > You can set .git_cmd = 1 instead. > > > >> + cpr.dir = list_item->name; > >> + prepare_submodule_repo_env(_array); > >> + > >> +

Re: [GSoC][PATCH v4 2/2] submodule: port subcommand foreach from shell to C

2017-05-23 Thread Stefan Beller
On Tue, May 23, 2017 at 12:36 PM, Brandon Williams wrote: > > You can set .git_cmd = 1 instead. > >> + cpr.dir = list_item->name; >> + prepare_submodule_repo_env(_array); >> + >> + argv_array_pushl(, "git", "--super-prefix", >> displaypath,

Re: [PATCH] usage: add NORETURN to BUG() function definitions

2017-05-23 Thread Ramsay Jones
On 23/05/17 04:32, Junio C Hamano wrote: > Interesting. One thing that I found somewhat suboptimal is that we > do not get signalled by non-zero exit. Warnings don't lead to non-zero exit, but similarly to -Werror, you can provide a -Wsparse-error to turn warnings into errors: $ make

Re: [PATCH 01/15] handle_revision_arg: reset "dotdot" consistently

2017-05-23 Thread Jeff King
On Sat, May 20, 2017 at 03:56:32PM +0100, Philip Oakley wrote: > > That means we do report the correct name for "a" in the > > pending array. But some code paths try to show the whole > > "a..b" name in error messages, and these erroneously show > > only "a" instead of "a..b". E.g.: > > > > $

Re: What's cooking in git.git (May 2017, #07; Tue, 23)

2017-05-23 Thread Ævar Arnfjörð Bjarmason
On Tue, May 23, 2017 at 9:38 PM, Stefan Beller wrote: > On Tue, May 23, 2017 at 12:08 PM, Stefan Beller wrote: >> On Tue, May 23, 2017 at 1:08 AM, Junio C Hamano wrote: >> >>> * sb/submodule-blanket-recursive (2017-05-23) 6 commits >>>

Re: [PATCH v2 25/25] cache_ref_iterator_begin(): avoid priming unneeded directories

2017-05-23 Thread Jeff King
On Mon, May 22, 2017 at 04:17:55PM +0200, Michael Haggerty wrote: > So: > > * Move the responsibility for doing the prefix check directly to > `cache_ref_iterator`. This means that `cache_ref_iterator_begin()` > never has to wrap its return value in a `prefix_ref_iterator`. > > * Teach

Re: What's cooking in git.git (May 2017, #07; Tue, 23)

2017-05-23 Thread Stefan Beller
On Tue, May 23, 2017 at 12:08 PM, Stefan Beller wrote: > On Tue, May 23, 2017 at 1:08 AM, Junio C Hamano wrote: > >> * sb/submodule-blanket-recursive (2017-05-23) 6 commits >> . builtin/push.c: respect 'submodule.recurse' option >> . builtin/grep.c:

Re: [GSoC][PATCH v4 2/2] submodule: port subcommand foreach from shell to C

2017-05-23 Thread Brandon Williams
On 05/21, Prathamesh Chavan wrote: > This aims to make git-submodule foreach a builtin. This is the very > first step taken in this direction. Hence, 'foreach' is ported to > submodule--helper, and submodule--helper is called from git-submodule.sh. > The code is split up to have one function to

[PATCH v6 6/6] clean: teach clean -d to preserve ignored paths

2017-05-23 Thread Samuel Lijin
There is an implicit assumption that a directory containing only untracked and ignored paths should itself be considered untracked. This makes sense in use cases where we're asking if a directory should be added to the git database, but not when we're asking if a directory can be safely removed

[PATCH v6 3/6] dir: recurse into untracked dirs for ignored files

2017-05-23 Thread Samuel Lijin
We consider directories containing only untracked and ignored files to be themselves untracked, which in the usual case means we don't have to search these directories. This is problematic when we want to collect ignored files with DIR_SHOW_IGNORED_TOO, though, so we teach

[PATCH v6 2/6] t7061: status --ignored should search untracked dirs

2017-05-23 Thread Samuel Lijin
Per eb8c5b87, `status --ignored` by design does not list ignored files if they are in a directory which contains only ignored and untracked files (which is itself considered to be untracked) without `-uall`. This does not make sense for `--ignored`, which claims to "Show ignored files as well."

[PATCH v6 4/6] dir: hide untracked contents of untracked dirs

2017-05-23 Thread Samuel Lijin
When we taught read_directory_recursive() to recurse into untracked directories in search of ignored files given DIR_SHOW_IGNORED_TOO, that had the side effect of teaching it to collect the untracked contents of untracked directories. It doesn't always make sense to return these, though (we do

[PATCH v6 5/6] dir: expose cmp_name() and check_contains()

2017-05-23 Thread Samuel Lijin
We want to use cmp_name() and check_contains() (which both compare `struct dir_entry`s, the former in terms of the sort order, the latter in terms of whether one lexically contains another) outside of dir.c, so we have to (1) change their linkage and (2) rename them as appropriate for the global

[PATCH v6 1/6] t7300: clean -d should skip dirs with ignored files

2017-05-23 Thread Samuel Lijin
If git sees a directory which contains only untracked and ignored files, clean -d should not remove that directory. It was recently discovered that this is *not* true of git clean -d, and it's possible that this has never worked correctly; this test and its accompanying patch series aims to fix

[PATCH v6 0/6] Fix clean -d and status --ignored

2017-05-23 Thread Samuel Lijin
Messed up on 6/6 in v5, forgot to include changes from earlier versions (karma for not running tests before I send-email'd the patch series). Samuel Lijin (6): t7300: clean -d should skip dirs with ignored files t7061: status --ignored should search untracked dirs dir: recurse into

[PATCH v2 1/7] grep: don't redundantly compile throwaway patterns under threading

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Change the pattern compilation logic under threading so that grep doesn't compile a pattern it never ends up using on the non-threaded code path, only to compile it again N times for N threads which will each use their own copy, ignoring the initially compiled pattern. This redundant compilation

[PATCH v2 7/7] grep: add support for PCRE v2

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Add support for v2 of the PCRE API. This is a new major version of PCRE that came out in early 2015[1]. The regular expression syntax is the same, but while the API is similar, pretty much every function is either renamed or takes different arguments. Thus using it via entirely new functions

[PATCH v2 4/7] grep: add support for the PCRE v1 JIT API

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Change the grep PCRE v1 code to use JIT when available. When PCRE support was initially added in commit 63e7e9d8b6 ("git-grep: Learn PCRE", 2011-05-09) PCRE had no JIT support, it was integrated into 8.20 released on 2011-10-21. Enabling JIT support usually improves performance by more than 40%.

[PATCH v2 3/7] log: add -P as a synonym for --perl-regexp

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Add a short -P option as a synonym for the longer --perl-regexp, for consistency with the options the corresponding grep invocations accept. This was intentionally omitted in commit 727b6fc3ed ("log --grep: accept --basic-regexp and --perl-regexp", 2012-10-03) for unspecified future use. Make it

[PATCH v2 0/7] PCRE v2, PCRE v1 JIT, log -P & fixes

2017-05-23 Thread Ævar Arnfjörð Bjarmason
On Sun, May 21, 2017 at 1:50 AM, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason   writes: > >> Easy to review? 29 (I mean 30) patches? Are you kidding me?! >> >> As noted in v1 (<20170511091829.5634-1-ava...@gmail.com>; >>

[PATCH v2 6/7] grep: un-break building with PCRE < 8.20

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Amend my change earlier in this series ("grep: add support for the PCRE v1 JIT API", 2017-04-11) to un-break the build on PCRE v1 versions earlier than 8.20. The 8.20 release was the first release to have JIT & pcre_jit_stack in the headers, so a mock type needs to be provided for it on those

[PATCH v2 2/7] grep: skip pthreads overhead when using one thread

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Skip the administrative overhead of using pthreads when only using one thread. Instead take the non-threaded path which would be taken under NO_PTHREADS. The threading support was initially added in commit 5b594f457a ("Threaded grep", 2010-01-25) with a hardcoded compile-time number of 8 threads.

[PATCH v2 5/7] grep: un-break building with PCRE < 8.32

2017-05-23 Thread Ævar Arnfjörð Bjarmason
Amend my change earlier in this series ("grep: add support for the PCRE v1 JIT API", 2017-04-11) to un-break the build on PCRE v1 versions earlier than 8.32. The JIT support was added in version 8.20 released on 2011-10-21, but it wasn't until 8.32 released on 2012-11-30 that the fast code path

Re: [PATCH v5 6/6] clean: teach clean -d to preserve ignored paths

2017-05-23 Thread Samuel Lijin
On Tue, May 23, 2017 at 8:52 AM, Junio C Hamano wrote: > Samuel Lijin writes: > >> @@ -931,6 +961,7 @@ int cmd_clean(int argc, const char **argv, const char >> *prefix) >> prefix, argv); >> >> fill_directory(, ); >> +

Re: [GSoC][PATCH v4 2/2] submodule: port subcommand foreach from shell to C

2017-05-23 Thread Brandon Williams
On 05/22, Stefan Beller wrote: > On Sun, May 21, 2017 at 5:58 AM, Prathamesh Chavan wrote: > > > I have also made some changes in git-submodule.sh for correcting > > the $path variable. And hence made the corresponding changes in > > the new test introduced in

Re: What's cooking in git.git (May 2017, #07; Tue, 23)

2017-05-23 Thread Stefan Beller
On Tue, May 23, 2017 at 1:08 AM, Junio C Hamano wrote: > * sb/submodule-blanket-recursive (2017-05-23) 6 commits > . builtin/push.c: respect 'submodule.recurse' option > . builtin/grep.c: respect 'submodule.recurse' option > . builtin/fetch.c: respect 'submodule.recurse'

Re: [GSoC][PATCH v4 1/2] t7407: test "submodule foreach --recursive" from subdirectory added

2017-05-23 Thread Brandon Williams
On 05/21, Prathamesh Chavan wrote: > Additional test cases added to the submodule-foreach test suite > to check the submodule foreach --recursive behavior from a > subdirectory as this was missing from the test suite. > > Mentored-by: Christian Couder > Mentored-by:

Re: [PATCHv2 1/6] submodule.c: add has_submodules to check if we have any submodules

2017-05-23 Thread Stefan Beller
On Tue, May 23, 2017 at 11:40 AM, Brandon Williams wrote: > It doesn't look like any patches actually use this helper, is this > intended? It was needed for https://public-inbox.org/git/20170411194616.4963-1-sbel...@google.com/ which we do not have in this series any more.

Re: [PATCHv2 1/6] submodule.c: add has_submodules to check if we have any submodules

2017-05-23 Thread Brandon Williams
On 05/22, Stefan Beller wrote: > When submodules are involved, it often slows down the process, as most > submodule related handling is either done via a child process or by > iterating over the index finding all gitlinks. > > For most commands that may interact with submodules, we need have a >

Re: [PATCH 0/2] Fix warnings on access of a remote with Windows paths

2017-05-23 Thread Johannes Sixt
Am 23.05.2017 um 12:53 schrieb Johannes Schindelin: Hi Hannes (& Junio, see below), On Mon, 22 May 2017, Johannes Sixt wrote: Am 22.05.2017 um 13:59 schrieb Johannes Schindelin: On Sat, 20 May 2017, Johannes Sixt wrote: This small series fixes these warnings on Windows: C:\Temp\gittest>git

Re: [PATCHv2 2/6] submodule test invocation: only pass additional arguments

2017-05-23 Thread Stefan Beller
On Mon, May 22, 2017 at 11:26 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> diff --git a/t/t2013-checkout-submodule.sh b/t/t2013-checkout-submodule.sh >> index e8f70b806f..2672f104cf 100755 >> --- a/t/t2013-checkout-submodule.sh >> +++

Re: [PATCHv4 09/17] submodule.c: convert show_submodule_summary to use emit_line_fmt

2017-05-23 Thread Stefan Beller
On Mon, May 22, 2017 at 10:59 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> diff --git a/submodule.c b/submodule.c >> index d3299e29c0..428c996c97 100644 >> --- a/submodule.c >> +++ b/submodule.c >> ... >> @@ -547,15 +543,16 @@ void

Re: BUG: The .gitignore rules can't be made to cross submodule boundaries

2017-05-23 Thread Stefan Beller
On Tue, May 23, 2017 at 2:55 AM, Ævar Arnfjörð Bjarmason wrote: > On Tue, May 23, 2017 at 11:17 AM, Johannes Schindelin > wrote: >> Hi Ævar, >> >> On Mon, 22 May 2017, Ævar Arnfjörð Bjarmason wrote: >> >>> When I was adding the sha1collisiondetection

Re: [WIP/RFC 17/23] repo: introduce new repository object

2017-05-23 Thread Brandon Williams
On 05/20, Stefan Beller wrote: > On Thu, May 18, 2017 at 4:21 PM, Brandon Williams wrote: > > Introduce 'struct repo' an object used to represent a repository. > > Is this the right place to outline what you expect from a repo object? > Are you planning to use it everywhere? >

Re: [WIP/RFC 00/23] repository object

2017-05-23 Thread Brandon Williams
On 05/19, Ben Peart wrote: > Glad to see you tackling this. This is definitely a step in the > right direction. > > I realize that it will take a lot of work and that intermediate > steps may just be pushing it the global state one level higher but > eventually it would be great to see an entire

Re: [WIP/RFC 00/23] repository object

2017-05-23 Thread Brandon Williams
On 05/22, Jeff King wrote: > On Thu, May 18, 2017 at 04:21:11PM -0700, Brandon Williams wrote: > > > When I first started working on the git project I found it very difficult to > > understand parts of the code base because of the inherently global nature of > > our code. It also made working on

Re: Passing revs to git-bundle-create via stdin

2017-05-23 Thread Jeff King
On Tue, May 23, 2017 at 01:44:55AM +0200, ch wrote: > I'm using git bundles to create (incremental) backups of my local > repositories. > This works quite well but for certain repositories I'm getting unexpectedly > big > incremental bundles. I did some testing and from what I can tell it seems

Re: Another git repo at kernel.org?

2017-05-23 Thread Theodore Ts'o
So Junio owns the pub/scm/git/git.git tree on kernel.org, and he may already have access to create new repo's under the pub/scm/git hierarchy. In which case we might not need to bug the kernel.org administrators at all. Also, I'll note that it is possible to set up some repo's such that a group

Re:Re: [PATCH v5] send-email: --batch-size to work around some SMTP server limit

2017-05-23 Thread 赵小强
At 2017-05-22 17:26:41, "Ævar Arnfjörð Bjarmason" wrote: >On Sun, May 21, 2017 at 2:59 PM, xiaoqiang zhao wrote: >> Some email servers (e.g. smtp.163.com) limit the number emails to be >> sent per session(connection) and this will lead to a faliure when >>

Re: `pull --rebase --autostash` fails when fast forward in dirty repo

2017-05-23 Thread Jeff King
[+cc Junio, whose code this is touching] On Sun, May 21, 2017 at 12:17:06AM -0500, Tyler Brazier wrote: > This script explains and tests what's going on: > https://gist.github.com/tylerbrazier/4478e76fe44bf6657d4d3da6c789531d > > pull is failing because it shortcuts to --ff-only then calls >

Re: [PATCH v2 0/2] Update sha1dc from upstream & optionally make it a submodule

2017-05-23 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Seems like it would be useful to have a way to ex-post-facto say "past > history should use these URLs". i.e. if all git.git mirrors go down > and we have to re-host, then you can just clone git.git and off you > go, but the same isn't true of

Re: [PATCH v5 6/6] clean: teach clean -d to preserve ignored paths

2017-05-23 Thread Junio C Hamano
Samuel Lijin writes: > @@ -931,6 +961,7 @@ int cmd_clean(int argc, const char **argv, const char > *prefix) > prefix, argv); > > fill_directory(, ); > + correct_untracked_entries(); > > for (i = 0; i < dir.nr; i++) { >

Re: How do I see “merge events” in history?

2017-05-23 Thread Jeff King
On Tue, May 23, 2017 at 03:07:40PM +0300, Stefan Monov wrote: > I use the GitHub web interface and the git cli. Answers for either or > both are appreciated. > > Sometimes, when I merge a branch into another branch, I see a commit > with a message like "Merge branch 'master' into other_branch"

Re: [Bug] cloning a repository with a default MASTER branch tries to check out the master branch

2017-05-23 Thread Jeff King
On Tue, May 23, 2017 at 04:01:06AM -0400, Samuel Lijin wrote: > For some reason the repo on GH does not have a HEAD pointer: > > $ git ls-remote https://github.com/passcod/UPPERCASE-NPM.git > efc7dbfd6ca155d5d19ce67eb98603896062f35arefs/heads/MASTER >

How do I see “merge events” in history?

2017-05-23 Thread Stefan Monov
I use the GitHub web interface and the git cli. Answers for either or both are appreciated. Sometimes, when I merge a branch into another branch, I see a commit with a message like "Merge branch 'master' into other_branch" in the GitHub history. But not always. So how do I see all "merge events",

Re: [PATCHv3 4/4] clone: use free_refspec() to free refspec list

2017-05-23 Thread SZEDER Gábor
On Tue, May 23, 2017 at 9:38 AM, Junio C Hamano wrote: > I was sifting entries in the draft "What's cooking" report to find > topics to merge to 'next'. I read the series over and as Peff said > in his <20170515224615.f6hnnfngwpier...@sigill.intra.peff.net>, I > think the

Re: git --merge and option parsing

2017-05-23 Thread Jeff King
On Tue, May 23, 2017 at 10:17:18AM +, Holst, Henrik wrote: > I am not sure if this is a bug but it was surprising to me so I > thought I'd report it here. > > I added `ui.column=auto` to my gitconfig and that does not work so > well with pipes so I want to use `--no-column` option. I was a

Re: [PATCHv3 4/4] clone: use free_refspec() to free refspec list

2017-05-23 Thread Jeff King
On Tue, May 23, 2017 at 04:38:07PM +0900, Junio C Hamano wrote: > > First, the unchanged commit message is now (i.e. by using the parsed > > refspecs returned by remote_get()) completely outdated. > > Second, while it properly frees those refspecs, i.e. the array and all > > its string fields, it

Re: [PATCH v2 0/2] Update sha1dc from upstream & optionally make it a submodule

2017-05-23 Thread Ævar Arnfjörð Bjarmason
On Tue, May 23, 2017 at 12:27 AM, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> I liked the suggestion to make the URL a relative path, but this would >> require you to maintain a mirror in the same places you push git.git >> to, is that

Re: [PATCH 0/2] Fix warnings on access of a remote with Windows paths

2017-05-23 Thread Johannes Schindelin
Hi Hannes (& Junio, see below), On Mon, 22 May 2017, Johannes Sixt wrote: > Am 22.05.2017 um 13:59 schrieb Johannes Schindelin: > > On Sat, 20 May 2017, Johannes Sixt wrote: > > > This small series fixes these warnings on Windows: > > > > > > C:\Temp\gittest>git fetch C:\Temp\gittest > > >

  1   2   >