Johannes Schindelin writes:
> The real issue here is that GNU awk's regex implementation assumes a bit
> too much about the relative sizes of pointers and long integers. What they
> really want is to use intptr_t.
Good. I got annoyed enough to do the same myself
On Thu, May 11, 2017 at 05:31:45PM -0400, Marc Branchaud wrote:
> > * mb/diff-default-to-indent-heuristics (2017-05-09) 4 commits
> [...]
> > Kicked out of next; it seems it is still getting review suggestions?
>
> I believe v4 of this one is ready to cook.
Yeah, I think it's ready, too (and I
On Thu, May 11, 2017 at 04:23:03PM -0500, Robert Dailey wrote:
> On Thu, May 11, 2017 at 3:17 PM, Jeff King wrote:
> > I think you want:
> >
> > [push]
> > default = current
> > [remote]
> > pushDefault = myfork
> >
> > to make "git push" do what you want. And then
On Thu, May 11, 2017 at 10:31:14PM +0200, Sebastian Schuberth wrote:
> On 2017-05-11 20:53, Raphael Stolt wrote:
>
> > I might have stumbled this time over a real bug in includeIf / conditional
> > includes or maybe it's just as intended.
> > 1) Given I have a correct configured includeIf and
Ævar Arnfjörð Bjarmason writes:
> Amend the submodule recursion test to prepare it for subsequent tests
> of whether it passes along the grep.patternType to the submodule
> greps.
>
> This is the result of searching & replacing:
>
> foobar -> (1|2)d(3|4)
> foo->
Ævar Arnfjörð Bjarmason writes:
> diff --git a/compat/regex/README b/compat/regex/README
> new file mode 100644
> index 00..345d322d8c
> --- /dev/null
> +++ b/compat/regex/README
> @@ -0,0 +1,21 @@
> +This is the Git project's copy of the GNU awk (Gawk) regex
>
Brandon Williams writes:
> ... Note that if we go with the route to not pass
> in an index now, it doesn't necessarily mean that down the line we won't
> have to pass a 'repository' instance into parse_pathspec().
Correct.
An attribute annotated pathspec may want to check
Jonathan Tan writes:
> diff --git a/git-send-email.perl b/git-send-email.perl
> index eea0a517f..7de91ca7c 100755
> --- a/git-send-email.perl
> +++ b/git-send-email.perl
> @@ -27,6 +27,7 @@ use Term::ANSIColor;
> use File::Temp qw/ tempdir tempfile /;
> use
On Thu, May 11, 2017 at 03:46:39PM -0700, Jonathan Nieder wrote:
> > +static void add_refs_to_oidset(struct oidset *oids, struct ref *refs)
> > +{
> > + for (; refs; refs = refs->next)
> > + oidset_insert(oids, >old_oid);
> > +}
> > +
> > +static int tip_oids_contain(struct oidset
Ævar Arnfjörð Bjarmason writes:
> Add exhaustive tests for how the different grep.patternType options &
> the corresponding command-line options affect git-log.
> ...
> The patterns being passed to fixed/basic/extended/PCRE are carefully
> crafted to return the wrong thing if
Jonathan Tan wrote:
[...]
> --- a/fetch-pack.c
> +++ b/fetch-pack.c
> @@ -15,6 +15,7 @@
> #include "version.h"
> #include "prio-queue.h"
> #include "sha1-array.h"
> +#include "oidset.h"
>
> static int transfer_unpack_limit = -1;
> static int fetch_unpack_limit = -1;
> @@ -592,13 +593,32 @@
Jeff King writes:
> On Thu, May 11, 2017 at 05:31:45PM -0400, Marc Branchaud wrote:
>
>> > * mb/diff-default-to-indent-heuristics (2017-05-09) 4 commits
>> [...]
>> > Kicked out of next; it seems it is still getting review suggestions?
>>
>> I believe v4 of this one is ready to
Ævar Arnfjörð Bjarmason writes:
> Add a helper function to make the tests which check for patterns with
> \0 in them more succinct. Right now this isn't a big win, but
> subsequent commits will add a lot more of these tests.
>
> The helper is based on the match() function in
Johannes Schindelin writes:
> Git uses the config for remote/upstream information in favor of the
> previously-used .git/remotes/ and .git/branches/ for a decade now.
The last time I thought about trying this several years ago, I found
that people who need to grab
"scissors" ("- >8 -") can be automatically added to commit
messages by setting commit.verbose = true. Prevent this from interfering
with trailer calculations by automatically skipping over scissors,
instead of (usually) treating them as a comment.
---
commit.c | 13
Needed to work with git interpret-trailers. Since "line" is, of course,
a line, it will always end with "\n\0" and therefore we can safely end
on "\n".
---
mailinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mailinfo.c b/mailinfo.c
index a489d9d0f..eadd0597f 100644
---
Hi all,
This patch series addresses a bug in interpret-trailers. If the commit
that is being editted is "verbose", it will contain a scissors string
("-- >8 --") and a diff. interpret-trailers doesn't interpret the
scissors and therefore places trailer information after the diff. A
simple
Move is_scissors_line to commit.c and expose it through commit.h.
This is needed in commit.c, and mailinfo.c shouldn't really own it.
---
commit.c | 52
commit.h | 1 +
mailinfo.c | 53 +
fetch-pack, when fetching a literal SHA-1 from a server that is not
configured with uploadpack.allowtipsha1inwant (or similar), always
returns an error message of the form "Server does not allow request for
unadvertised object %s". However, it is sometimes the case that such
object is advertised.
Ævar Arnfjörð Bjarmason writes:
> See the first patch for motivation & why.
> ...
I do not necessarily agree with the upgrading strategy outlined in
1/7, but that is a separate issue. There may be some other bits
that needs resurrecting out of "git log -p master
On Thu, May 11, 2017 at 03:30:54PM -0700, Jonathan Tan wrote:
> fetch-pack, when fetching a literal SHA-1 from a server that is not
> configured with uploadpack.allowtipsha1inwant (or similar), always
> returns an error message of the form "Server does not allow request for
> unadvertised object
Am 11.05.2017 um 23:20 schrieb Ævar Arnfjörð Bjarmason:
diff --git a/builtin/notes.c b/builtin/notes.c
index 7b891471c4..fb856e53b6 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -340,8 +340,10 @@ static struct notes_tree *init_notes_check(const char
*subcommand,
ref = (flags &
Johannes Schindelin writes:
> Hi Junio,
>
> On Wed, 10 May 2017, Junio C Hamano wrote:
>
>> * jc/bundle (2016-03-03) 6 commits
>> - index-pack: --clone-bundle option
>> - Merge branch 'jc/index-pack' into jc/bundle
>> - bundle v3: the beginning
>> - bundle: keep a
Brandon Williams writes:
> The main difference in v2 is that instead of piping through an index_state
> struct into parse_pathspec, I ripped out the logic that needed to access the
> index and either removed it completely if it wasn't needed anymore (stripping
> submodule
Most of the include examples use "foo.inc", but some use
"foo". Since the string of examples are meant to show
variations and how they differ, it's a good idea to change
only one thing at a time. The filename differences are not
relevant to what we're trying to show.
Signed-off-by: Jeff King
Nazri Ramliy writes:
> Otherwise it seems like I'll have to do "git submodule update" twice
> in order to update an already initialized submodule whose upstream
> repo url has been updated in .gitmodules to point to somewhere new,
I am not a heavy submodule user so what I
On Thu, May 11, 2017 at 2:42 PM, Junio C Hamano wrote:
> I am not a heavy submodule user so what I think may not count, but I
> think the "upstream" changing the URL of the submodule should be a
> rare and notable event. Making it easy to automatically run "sync"
> without
Using the word "expand" to refer to including the contents
of another config file isn't really accurate, since it's a
verbatim insertion. And it can cause confusion with the
expanding of the path itself via things like "~".
Let's clarify when we are referring to the contents versus
the filename,
Hi,
The command "git submodule update" accepts an "--init" flag to
initialize an uninitialized submodules.
Shouldn't it also accept "--sync" flag in order to sync and unsync'd submodule?
Otherwise it seems like I'll have to do "git submodule update" twice
in order to update an already
On Thu, May 11, 2017 at 02:26:16AM -0400, Jeff King wrote:
> > So whether this is a bug in the code or not it seems to definitely be
> > a doc bug, whatever it does with relative files should be in the docs.
>
> The includeIf variables should behave exactly as the documentation you
> quoted
Add a function to setup a fresh test repo via 'git init' to compliment
the existing functions to copy over a normal & large repo.
Some performance tests don't need any existing repository data at all
to be significant, e.g. tests which stress glob matches against single
pathological revisions or
Fixes the issues noted in v3, see
<20170510225316.31680-1-ava...@gmail.com>
(https://public-inbox.org/git/20170510225316.31680-1-ava...@gmail.com/).
In addition I was wrong about for-each-ref not being subjected to this
slowdown, I was just screwing up the testcase. Fix that. Now:
$
On Thu, May 11, 2017 at 09:19:50AM +0200, Ævar Arnfjörð Bjarmason wrote:
> 1. It says "The included file is expanded immediately, as if its
> contents had been found at the location of the include directive.". At
> first I thought this referred to glob expansion, not
> s/expanded/interpolated/,
Add a test showing that runtimes of the wildmatch() function used for
globbing in git grow exponentially in the face of some pathological
globs.
This issue affects both globs matching filenames via e.g. ls-files,
and globs matching refnames via e.g. for-each-ref.
As noted in the test description
On Thu, May 11, 2017 at 12:54:19AM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > On Thu, May 11, 2017 at 09:19:50AM +0200, Ævar Arnfjörð Bjarmason wrote:
> >
> >> 1. It says "The included file is expanded immediately, as if its
> >> contents had been found at the
On Thu, May 11, 2017 at 9:46 AM, Junio C Hamano wrote:
> I was hoping that by ejecting a few topics out of 'pu', we could
> finally see all the build jobs pass their tests under Travis CI.
> Unfortunately, no such luck. It seems that we have some new issues
> with
The "includeIf" directives behave exactly like include ones,
except they only kick in when the conditional is true. That
was mentioned in the "conditional" section, but let's make
it more clear for the whole "includes" section, since people
don't necessarily read the documentation top to bottom.
The changes in the previous commit hopefully clarify that
the evaluation of an include "path" variable is the same no
matter if it's in a conditional section or not. But since
this question came up on the list, let's add an example that
makes it obvious.
Signed-off-by: Jeff King
On Wed, May 10, 2017 at 09:48:05PM +0200, Ævar Arnfjörð Bjarmason wrote:
> In both cases the conditional is the same, but the path is relative
> v.s. absolute.
>
> Raphael: Does the config get included if you cd to
> ~/Work/git-repos/oss/? From git-config(1):
That shouldn't matter for relative
On Thu, May 11, 2017 at 02:35:49AM -0400, Jeff King wrote:
> > > After doing a subtree merge, using 'git log' and 'git log --follow' on
> > > files in the subtree show only the merge commit in which they were
> > > added.
> > >
> > > After reading around I understand that the issue is that git
On Thu, May 11, 2017 at 03:54:37AM -0400, Jeff King wrote:
> On Thu, May 11, 2017 at 09:49:09AM +0200, Ævar Arnfjörð Bjarmason wrote:
>
> > > I don't like this because it copies the rules for _one_ property to the
> > > conditional section. What happens when you're looking for some other
> > >
On Wed, May 10, 2017 at 02:15:23PM -0500, Samuel Lijin wrote:
> On Wed, May 10, 2017 at 9:46 AM, Jonny Gilchrist
> wrote:
> > Hi,
> >
> > After doing a subtree merge, using 'git log' and 'git log --follow' on
> > files in the subtree show only the merge commit in which
On Thu, May 11, 2017 at 9:42 AM, Jeff King wrote:
> On Thu, May 11, 2017 at 09:19:50AM +0200, Ævar Arnfjörð Bjarmason wrote:
>
>> 1. It says "The included file is expanded immediately, as if its
>> contents had been found at the location of the include directive.". At
>> first I
On Wed, May 10, 2017 at 02:15:23PM -0500, Samuel Lijin wrote:
> On Wed, May 10, 2017 at 9:46 AM, Jonny Gilchrist
> wrote:
> > Hi,
> >
> > After doing a subtree merge, using 'git log' and 'git log --follow' on
> > files in the subtree show only the merge commit in which
On Thu, May 11, 2017 at 8:29 AM, Jeff King wrote:
> On Thu, May 11, 2017 at 02:26:16AM -0400, Jeff King wrote:
>
>> > So whether this is a bug in the code or not it seems to definitely be
>> > a doc bug, whatever it does with relative files should be in the docs.
>>
>> The
I was hoping that by ejecting a few topics out of 'pu', we could
finally see all the build jobs pass their tests under Travis CI.
Unfortunately, no such luck. It seems that we have some new issues
with Gettext-Poison build/test after updates to t0027. Also the
updated compatibility regexp thing
On Thu, May 11, 2017 at 09:49:09AM +0200, Ævar Arnfjörð Bjarmason wrote:
> > I don't like this because it copies the rules for _one_ property to the
> > conditional section. What happens when you're looking for some other
> > property of include.path?
>
> Yeah, as I said once I wrote it up I
Jeff King writes:
> On Thu, May 11, 2017 at 09:19:50AM +0200, Ævar Arnfjörð Bjarmason wrote:
>
>> 1. It says "The included file is expanded immediately, as if its
>> contents had been found at the location of the include directive.". At
>> first I thought this referred to glob
Hi,
I just tried to created an anonymized repo to allow the list to
reproduce a bug in "rebase -i" I discovered in Git 2.13 for Linux
(Windows is not affected). However, in order to reproduce the bug it's
important to keep the "fixup!" prefixes as part of the commit
messages. Unfortunately,
On Thu, May 11, 2017 at 3:50 PM, Johannes Schindelin
wrote:
> The real issue here is that GNU awk's regex implementation assumes a bit
> too much about the relative sizes of pointers and long integers. What they
> really want is to use intptr_t.
Thanks, looks good!
>
Easy to review? 29 patches? Are you kidding me?!
I thought about how to split up my sprawling PCRE v2 series which
can't easily be broken up because a lot of it is trivial setup code
needed for later patches, or things that would result in lots of merge
conflicts.
This is an attempt to make that
Add a test for backreferences such as (.)\1 in PCRE patterns. This
test ensures that the PCRE_NO_AUTO_CAPTURE option isn't turned
on. Before this change turning it on would break these sort of
patterns, but wouldn't break any tests.
Signed-off-by: Ævar Arnfjörð Bjarmason
---
On Wed, May 10, 2017 at 03:11:57PM -0700, Jonathan Tan wrote:
> After looking at ways to solve jrnieder's performance concerns, if we're
> going to need to manage one more item of state within the function, I
> might as well use my earlier idea of storing unmatched refs in its own
> list instead
Hi,
[making sure Lars reads this]
On Wed, 10 May 2017, Junio C Hamano wrote:
> * ls/filter-process-delayed (2017-03-06) 1 commit
> - convert: add "status=delayed" to filter process protocol
>
> What's the status of this one???
> cf.
Ciao,
We are about to remove support for .git/remotes/ and .git/branches/, at
long last. In preparation for this move, let's remove the corresponding
regression tests from t5516-fetch-push.
Note: the `push --prune` test case (and another test case after that)
relied on the side effect where a branch
By now, everybody will have moved on... no need to burden ourselves with
now-obsolete code.
Signed-off-by: Johannes Schindelin
---
Documentation/git-remote.txt | 4
builtin/remote.c | 27 -
t/t5505-remote.sh| 57
HELLO! DEAR! GOOD NEWS TO YOU,
Your ATM Card of $5.5 million USD has been approved and was deposited with
fidEX delivery company this morning for registration,and we agreed up that
the delivery of Your $5.5 Million USD ATM Package will take off tomorrow
morning .So contact with your
We are about to remove support for the long-obsolete .git/remotes/ and
.git/branches/ directories. Let's stop testing them, in preparation for
that move.
The bulk of this patch simply removes support files that are no longer
needed.
Signed-off-by: Johannes Schindelin
A long, long, long time ago, we stored the "upstream" information of
branches in files inside the .git/branches/ directory. We don't do this
anymore, though. Since 5751f49010e (Move remote parsing into a library
file out of builtin-push., 2007-05-12), to be precise.
This is sort of a sibling to
Git uses the config for remote/upstream information in favor of the
previously-used .git/remotes/ and .git/branches/ for a decade now.
Nothing in Git writes to these files any longer, and the most prominent
user of .git/branches/ (Cogito) is long abandoned.
It is time to start not only
Since at least 75c384efb52 (Do not create $GIT_DIR/remotes/ directory
anymore., 2006-12-19), we strongly prefer remotes and upstream branches
to be specified in the config rather than .git/remotes/ and
.git/branches/.
For some time, we still retained backwards-compatibility. At some stage,
it
At long last, after a cycle or three of warning users who *still* use
the ancient feature of .git/remotes/ and .git/branches/, it is time to
retire the code.
Signed-off-by: Johannes Schindelin
---
path.c | 2 --
remote.c | 96
The man page still talked about the .git/remotes/ directory (which is no
longer in use, as of 75c384efb52 (Do not create $GIT_DIR/remotes/
directory anymore., 2006-12-19)).
Let's just revamp it almost completely to reflect the *purpose* of that
scriptlet, as opposed to its implementation details.
Since at least 5751f49010e (Move remote parsing into a library file out
of builtin-push., 2007-05-12), we strongly prefer remotes and upstream
branches to be specified in the config rather than .git/remotes/ and
.git/branches/.
For some time, we still retained compatibility with Cogito (which was
The documentation did not make it quite clear just how deprecated these
directories are.
Signed-off-by: Johannes Schindelin
---
Documentation/gitrepository-layout.txt | 19 +-
Documentation/urls-remotes.txt | 65 ++
2
We are about to remove that feature for good.
Signed-off-by: Johannes Schindelin
---
t/t0060-path-utils.sh | 2 --
1 file changed, 2 deletions(-)
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index 444b5a4df80..162c9a5a2f7 100755
---
We are about to stop supporting the .git/remotes/ and .git/branches/
feature. In preparation, t5510-fetch is adjusted *not* to verify that
.git/remotes/ works.
As the tests are entangled, we do not simply remove the test repository
with such a remote, but convert it to use a regular remote
Hi,
Arch Linux's git 2.12.2-4's git-log(1) says
-L ,:, -L ::
Trace the evolution of the line range given by ","
(or the function name regex ) within the . You
may not give any pathspec limiters. This is currently limited
to a walk starting from a single
Hi Junio,
On Wed, 10 May 2017, Junio C Hamano wrote:
> * jc/bundle (2016-03-03) 6 commits
> - index-pack: --clone-bundle option
> - Merge branch 'jc/index-pack' into jc/bundle
> - bundle v3: the beginning
> - bundle: keep a copy of bundle file name in the in-core bundle header
> - bundle:
The real issue here is that GNU awk's regex implementation assumes a bit
too much about the relative sizes of pointers and long integers. What they
really want is to use intptr_t.
This patch recapitulates what 56a1a3ab449 (Silence GCC's "cast of pointer
to integer of a different size" warning,
> On 11 May 2017, at 14:09, Johannes Schindelin
> wrote:
>
> Hi,
>
> [making sure Lars reads this]
>
> On Wed, 10 May 2017, Junio C Hamano wrote:
>
>> * ls/filter-process-delayed (2017-03-06) 1 commit
>> - convert: add "status=delayed" to filter process protocol
On 11/05/17 10:10, Jeff King wrote:
> The "includeIf" directives behave exactly like include ones,
> except they only kick in when the conditional is true. That
> was mentioned in the "conditional" section, but let's make
> it more clear for the whole "includes" section, since people
> don't
On 05/11, Jeff King wrote:
> On Wed, May 10, 2017 at 03:11:57PM -0700, Jonathan Tan wrote:
>
> > fetch-pack, when fetching a literal SHA-1 from a server that is not
> > configured with uploadpack.allowtipsha1inwant (or similar), always
> > returns an error message of the form "Server does not
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%.
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
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
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
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
On Thu, May 11, 2017 at 6:47 AM, Johannes Schindelin
wrote:
> The man page still talked about the .git/remotes/ directory (which is no
> longer in use, as of 75c384efb52 (Do not create $GIT_DIR/remotes/
> directory anymore., 2006-12-19)).
>
> Let's just revamp it
On Thu, May 11, 2017 at 6:47 AM, Johannes Schindelin
wrote:
> A long, long, long time ago, we stored the "upstream" information of
> branches in files inside the .git/branches/ directory. We don't do this
> anymore, though. Since 5751f49010e (Move remote parsing into a
FYI - the article mentioned below has been published @
https://medium.com/@ramangupta/how-the-creators-of-git-do-branches-e6fcc57270fb
Thank you to the two or three people that I know of that took the time
to read the draft.
Regards,
Raman
On 22/03/17 12:41 PM, Raman Gupta wrote:
> Several
Teach pull to optionally update submodules when '--recurse-submodules'
is provided. This will teach pull to run 'submodule update --rebase'
when the '--recurse-submodules' and '--rebase' flags are given.
Signed-off-by: Brandon Williams
---
Pull is already a shortcut for
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.
This goes on top of the 29 patch series of "Easy to review grep &
pre-PCRE changes" (<20170511091829.5634-1-ava...@gmail.com>;
https://public-inbox.org/git/20170511091829.5634-1-ava...@gmail.com/).
This could be split into 3 unrelated things, but I have think it's
probably easier for everyone to
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
Reword an outdated & inaccurate comment which suggests that only
git-grep can use PCRE.
This comment was added back when PCRE support was initially added in
commit 63e7e9d8b6 ("git-grep: Learn PCRE", 2011-05-09), and was true
at the time.
It hasn't been telling the full truth since git-log
Rename the LIBPCRE prerequisite to PCRE. This is for preparation for
libpcre2 support, where having just "LIBPCRE" would be confusing as it
implies v1 of the library.
None of these tests are incompatible between versions 1 & 2 of
libpcre, it's less confusing to give them a more general name to
Stop promising in our grep & rev-list options documentation that we're
always going to be using libpcre when given the --perl-regexp option.
Instead talk about using "Perl-compatible regular expressions" and
using these types of patterns using "a compile-time dependency".
Saying "libpcre" means
Add exhaustive tests for how the different grep.patternType options &
the corresponding command-line options affect git-log.
Before this change it was possible to patch revision.c so that the
--basic-regexp option was synonymous with --extended-regexp, and
--perl-regexp wasn't recognized at all,
"git read-tree -m" requires a tree argument to name the tree to be
merged in. Git uses a cutesy error message to say so and why:
$ git read-tree -m
warning: read-tree: emptying the index with no arguments is
deprecated; use --empty
fatal: just how do you expect me to merge 0
git-filter-branch requires the specification of a branch by one way or
another. If no branch appears to have been specified, we know the user
got the usage wrong but we don't know what they were trying to do ---
e.g. maybe they specified the ref to rewrite but in the wrong place.
In this case,
There has been a bug report by a corporate user that stated that
"spelling mistake of stash followed by a yes prints character 'y'
infinite times."
This analysis was false. When the spelling of a command contains
errors, the git program tries to help the user by providing candidates
which are
Ævar Arnfjörð Bjarmason writes:
> On Thu, May 11, 2017 at 1:30 AM, Jonathan Nieder wrote:
>> Hi,
>>
>> Ęvar Arnfjörš Bjarmason wrote:
>>
>> [...]
>>> # call at least one of these to establish an appropriately-sized repository
>>> +test_perf_fresh_repo () {
Some more grammar/usage notes .
> -Original Message-
> From: git-ow...@vger.kernel.org [mailto:git-ow...@vger.kernel.org] On
> Behalf Of Junio C Hamano
> Sent: Thursday, May 11, 2017 4:16 AM
> To: Jean-Noel Avila
> Cc: git@vger.kernel.org; rashmipa...@gmail.com
>
Add testing for grep pattern types being correctly passed to
submodules. The pattern "(.|.)[\d]" matches differently under
fixed (not at all), and then matches different lines under
basic/extended & perl regular expressions, so this change asserts that
the pattern type is passed along correctly.
Add setup code needed for testing regexes that contain both binary
data and regex metacharacters.
The POSIX regcomp() function inherently can't support that, because it
takes a \0-delimited char *, but other regex engines APIs like PCRE v2
take a pattern/length pair, and are thus able to handle
Address a big blind spot in the tests for patterns containing \0. The
is_fixed() function considers any string that contains \0 fixed, even
if it contains regular expression metacharacters, those patterns are
currently matched with kwset.
Before this change removing that memchr(s, 0, len) check
Add a die(...) to a default case for the switch statement selecting
between grep pattern types under --recurse-submodules.
Normally this would be caught by -Wswitch, but the grep_pattern_type
type is converted to int by going through parse_options(). Changing
the argument type passed to
Amend the submodule recursion test to prepare it for subsequent tests
of whether it passes along the grep.patternType to the submodule
greps.
This is the result of searching & replacing:
foobar -> (1|2)d(3|4)
foo-> (1|2)
bar-> (3|4)
Currently there's no tests for whether
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 limitation was never documented, and other some regular
expression engines are capable of compiling
1 - 100 of 189 matches
Mail list logo