On Sat, Jan 27, 2018 at 1:47 AM, Tim Landscheidt
wrote:
> Nguyễn Thái Ngọc Duy wrote:
>
>> When a conflict happens during a rebase, you often need to look at the
>> original patch to see what the changes are. This requires opening your
>> favourite
On Sat, Jan 27, 2018 at 2:11 AM, Eric Sunshine wrote:
> On Fri, Jan 26, 2018 at 4:55 AM, Nguyễn Thái Ngọc Duy
> wrote:
>> It is useful to see the full patch while resolving conflicts in a
>> rebase. The only way to do it now is
>>
>> less
All the known heavy code blocks are measured (except object database
access). This should help identify if an optimization is effective or
not. An unoptimized git-status would give something like below (92% of
time is accounted).
Signed-off-by: Nguyễn Thái Ngọc Duy
---
This
On Sat, Jan 27, 2018 at 7:28 AM, Ævar Arnfjörð Bjarmason
wrote:
> 3) A lot of time spend reading the index (or something..)
I'm resending a patch from my old index-helper series. It should
measure all big time consuming blocks in git. Maybe we should get it
merged...
> While
I just got around to testing this since it landed, for context some
previous poking of mine in [1].
Issues / stuff I've noticed:
1) We end up invalidating the untracked cache because stuff in .git/
changed. For example:
01:09:24.975524 fsmonitor.c:173 fsmonitor process
On Wed, Jan 24, 2018 at 01:41:07PM -0800, Junio C Hamano wrote:
> Patryk Obara writes:
>
> > Patryk Obara (14):
> > http-push: improve error log
> > clang-format: adjust penalty for return type line break
> > sha1_file: convert pretend_sha1_file to object_id
> >
On Wed, Jan 24, 2018 at 12:12:05PM +0100, Patryk Obara wrote:
> Convert the definition and declaration of statis write_loose_object
s/statis/static/
--
brian m. carlson / brian with sandals: Houston, Texas, US
https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP:
> On 22 Jan 2018, at 19:27, SZEDER Gábor wrote:
>
>
> On Thu, Jan 18, 2018 at 1:47 PM, Duy Nguyen wrote:
>> On Thu, Jan 18, 2018 at 6:36 PM, SZEDER Gábor wrote:
>>> This series, queued as 'nd/shared-index-fix', makes the 32 bit
On Thu, Jan 25, 2018 at 3:58 PM, Brandon Williams wrote:
> +ls-refs takes in the following parameters wrapped in packet-lines:
> +
> +symrefs
> + In addition to the object pointed by it, show the underlying ref
> + pointed by it when showing a symbolic ref.
> +
Olga Telezhnaya writes:
> Start using ref_format struct instead of simple char*.
> Need that for further reusing of formatting logic from ref-filter.
>
> Signed-off-by: Olga Telezhnaia
> Mentored-by: Christian Couder
On Fri, Jan 26, 2018 at 7:37 AM, SZEDER Gábor wrote:
> Two of the previous patches in this series fixed two bogus
> 'test_i18ngrep' invocations that had neither a filename parameter not
s/not/nor/
> anything piped into their standard input, yet both managed to remain
>
Andreas Schwab writes:
> On Jan 26 2018, Junio C Hamano wrote:
>
>> Also, would >>32 be a problem if commit.date is an uint32 (and
>> shifting all its bits out to the right)?
>
> It would be undefined.
Yup, exactly. Thanks.
Olga Telezhnaya writes:
> Split expand_atom function into 2 different functions,
> expand_atom_into_fields prepares variable for further filling,
> (new) expand_atom creates resulting string.
> Need that for further reusing of formatting logic from ref-filter.
>
>
On 01/26, Stefan Beller wrote:
> On Thu, Jan 25, 2018 at 3:58 PM, Brandon Williams wrote:
> > Factor out the logic for processing shallow, deepen, deepen_since, and
> > deepen_not lines into their own functions to simplify the
> > 'receive_needs()' function in addition to
On Jan 26 2018, Junio C Hamano wrote:
> Also, would >>32 be a problem if commit.date is an uint32 (and
> shifting all its bits out to the right)?
It would be undefined.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3
Olga Telezhnaya writes:
> Add return flag to format_ref_array_item, show_ref_array_item,
> get_ref_array_info and populate_value for further using.
> Need it to handle situations when item is broken but we can not invoke
> die() because we are in batch mode and all
Derrick Stolee writes:
> + packedDate[0] = htonl((*list)->date >> 32);
> + packedDate[1] = htonl((*list)->date);
How forward-looking do we want to be? The commit.date field happens
to be unsigned so there is no point masking the result of right
Stefan Beller writes:
> On Thu, Jan 25, 2018 at 6:02 AM, Derrick Stolee wrote:
>
>> +struct object_id *construct_graph(const char *pack_dir)
>> +{
>> + // Find a list of oids, adding the pointer to a list.
>
> Comment style.
> Here is where the bike
On Fri, Jan 26, 2018 at 09:26:38PM +0100, SZEDER Gábor wrote:
> Yeah, I knew about TEST_SHELL_PATH, but still:
>
> $ make -j4 TEST_SHELL_PATH=/bin/bash
> <...>
> $ cd t/
> $ for t in t[0-9][0-9][0-9][0-9]-*.sh ; do "./$t" -x ; done >/dev/null 2>&1
> $ grep '^failed [^0]$'
On Fri, Jan 26, 2018 at 8:25 PM, Jeff King wrote:
> On Fri, Jan 26, 2018 at 08:23:24PM +0100, SZEDER Gábor wrote:
>
>> On Fri, Jan 26, 2018 at 7:50 PM, Jeff King wrote:
>> > You can also use "-x" to get a better
>> > sense of exactly which command failed,
>>
>>
Olga Telezhnaya writes:
> Get rid of goto command in ref-filter for better readability.
>
> Signed-off-by: Olga Telezhnaia
> Mentored-by: Christian Couder
> Mentored by: Jeff King
> ---
How was
On Thu, Jan 25, 2018 at 3:58 PM, Brandon Williams wrote:
> Factor out the logic for processing shallow, deepen, deepen_since, and
> deepen_not lines into their own functions to simplify the
> 'receive_needs()' function in addition to making it easier to reuse some
> of this
Continue migrating formatting logic from cat-file to ref-filter.
Reuse parse_ref_filter_atom for unifying all processes in ref-filter
and further reducing of expand_atom_into_fields function.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Move logic related to skip_object_info into ref-filter,
so that cat-file does not use that field at all.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
builtin/cat-file.c | 7 +--
Add return flag to format_ref_array_item, show_ref_array_item,
get_ref_array_info and populate_value for further using.
Need it to handle situations when item is broken but we can not invoke
die() because we are in batch mode and all items need to be processed.
Signed-off-by: Olga Telezhnaia
Make valid_atom as a function parameter,
there could be another variable further.
Need that for further reusing of formatting logic in cat-file.c.
We do not need to allow users to pass their own valid_atom variable in
global functions like verify_ref_format because in the end we want to
have same
Need that for further reusing of formatting logic in cat-file.
Have plans to get rid of using expand_data in cat-file at all,
and use it only in ref-filter for collecting, formatting and printing
needed data.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Start moving formatting stuff related to data preparation
from cat-file to ref-filter.
Start from simple moving, it would be integrated into
all ref-filter processes further.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Make a temporary solution for commands that could use
objectsize:disk atom.
It's better to fill it with value or give an error if there is no value
for this atom, but as a first solution we do dothing.
It means that if objectsize:disk is used, we put an empty string there.
Signed-off-by: Olga
Delete all items related to split_on_whitespace from ref-filter
and add new function for handling the logic.
Now cat-file could invoke that function to implementing its logic.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Moving from using expand_data to ref_array_item structure.
That helps us to reuse functions from ref-filter easier.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
builtin/cat-file.c |
Add is_cat flag, further it helps to get rid of cat_file_data field
in ref_format.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
builtin/cat-file.c | 1 +
ref-filter.c | 8
Split expand_atom function into 2 different functions,
expand_atom_into_fields prepares variable for further filling,
(new) expand_atom creates resulting string.
Need that for further reusing of formatting logic from ref-filter.
Signed-off-by: Olga Telezhnaia
Move logic related to getting object info from cat-file to ref-filter.
It will help to reuse whole formatting logic from ref-filter further.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
Start using ref_format struct instead of simple char*.
Need that for further reusing of formatting logic from ref-filter.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
cat-file options are now filled by general logic.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
ref-filter.c | 31 ++-
1 file changed, 14 insertions(+),
Add tests for new formatting atoms: rest, deltabase, objectsize:disk.
rest means nothing and we expand it into empty string.
We need this atom for cat-file command.
Have plans to support deltabase and objectsize:disk further
(as it is done in cat-file), now also expand it to empty string.
Remove expand_atom_into_fields function and create same logic
in terms of ref-filter style.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
ref-filter.c | 45
Remove populate_value from header file. We needed that
for interim step, now it could be returned back.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
ref-filter.c | 2 +-
Remove connection between expand_data variable
in cat-file and in ref-filter.
It will help further to get rid of using expand_data in cat-file.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
Reuse code from ref-filter to print resulting message.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
builtin/cat-file.c | 52 +---
Update the docs for cat-file command. Some new formatting atoms added
because of reusing ref-filter code.
We do not support cat-file atoms in general formatting logic
(there is just the support for cat-file), that is why some of the atoms
are still explained in cat-file docs.
We need to move these
Make function global for further using in cat-file.
In the end of patch series this function becomes internal again,
so this is a part of middle step. cat-file would use more general
functions further.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Get rid of goto command in ref-filter for better readability.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
ref-filter.c | 103
Stop using valid_cat_file_atom, making the code more general.
Further commits will contain some tests, docs and
support of new features.
Signed-off-by: Olga Telezhnaia
Mentored-by: Christian Couder
Mentored by: Jeff King
---
Add some tests for new formatting atoms from ref-filter.
Some of new atoms are supported automatically,
some of them are expanded into empty string
(because they are useless for some types of objects),
some of them could be supported later in other patches.
Signed-off-by: Olga Telezhnaia
On Thu, Jan 25, 2018 at 6:02 AM, Derrick Stolee wrote:
> Teach Git to inspect a packed graph to supply the contents of a
> struct commit when calling parse_commit_gently(). This implementation
> satisfies all post-conditions on the struct commit, including loading
> parents, the
2018-01-26 19:42 GMT+03:00 Christian Couder :
> On Fri, Jan 26, 2018 at 11:32 AM, Оля Тележная
> wrote:
>> 2018-01-25 23:22 GMT+03:00 Christian Couder :
>>> On Thu, Jan 25, 2018 at 6:20 PM, Оля Тележная
On Fri, Jan 26, 2018 at 08:23:24PM +0100, SZEDER Gábor wrote:
> On Fri, Jan 26, 2018 at 7:50 PM, Jeff King wrote:
> > On Fri, Jan 26, 2018 at 01:37:08PM +0100, SZEDER Gábor wrote:
> >
> >> When 'test_i18ngrep' can't find the expected pattern, it exits
> >> completely silently;
SZEDER Gábor writes:
> No, GETTEXT_POISON only affects the translated messages, but those
> 'grep' invocations looked only at refnames and formatting.
You are right for this specific case, but I was talking more from
general principle---running test_i18ngrep on an output
On Fri, Jan 26, 2018 at 7:50 PM, Jeff King wrote:
> On Fri, Jan 26, 2018 at 01:37:08PM +0100, SZEDER Gábor wrote:
>
>> When 'test_i18ngrep' can't find the expected pattern, it exits
>> completely silently; when its negated form does find the pattern that
>> shouldn't be there, it
On Fri, Jan 26, 2018 at 7:16 PM, Junio C Hamano wrote:
> SZEDER Gábor writes:
>
>> One of the tests in 't5510-fetch.sh' checks the output of 'git fetch'
>> using 'test_i18ngrep', and while doing so it prefilters the output
>> with 'grep' before piping the
SZEDER Gábor writes:
> With 'test_i18ngrep' outside the 'test_expect_success' block!?
> Definitely too contrived. :)
Well, I think you got the idea. The point is that test_i18ngrep may
not be the only thing that is redirected into, but can just be a
part of a block of
On Fri, Jan 26, 2018 at 4:55 AM, Nguyễn Thái Ngọc Duy wrote:
> It is useful to see the full patch while resolving conflicts in a
> rebase. The only way to do it now is
>
> less .git/rebase-*/patch
>
> which could turn out to be a lot longer to type [1] if you are in a
>
On Fri, Jan 26, 2018 at 7:19 PM, Junio C Hamano wrote:
> SZEDER Gábor writes:
>
>> Both 'test_i18ncmp' and 'test_i18ngrep' helper functions are supposed
>> to be called from our test scripts, so they should be in
>> 'test-lib-functions.sh'.
>>
>>
On Thu, Jan 25, 2018 at 04:38:20PM -0500, Eric Sunshine wrote:
> On Wed, Jan 24, 2018 at 7:58 PM, Jeff King wrote:
> > When git-daemon gets a pktline request, we strip off any
> > trailing newline, replacing it with a NUL. Clients prior to
> > 5ad312bede (in git v1.4.0) would
On Fri, Jan 26, 2018 at 7:24 PM, Junio C Hamano wrote:
> SZEDER Gábor writes:
>
>> See two of the previous patches for the only such cases we had in our
>> test suite. However, reliably preventing this antipattern is arguably
>> more important than
On Fri, Jan 26, 2018 at 01:36:58PM +0100, SZEDER Gábor wrote:
> When 'test_i18ngrep' can't find the expected pattern, it exits
> completely silently; when its negated form does find the pattern that
> shouldn't be there, it prints the matching line(s) but otherwise exits
> without any error
On Fri, Jan 26, 2018 at 01:37:08PM +0100, SZEDER Gábor wrote:
> When 'test_i18ngrep' can't find the expected pattern, it exits
> completely silently; when its negated form does find the pattern that
> shouldn't be there, it prints the matching line(s) but otherwise exits
> without any error
Nguyễn Thái Ngọc Duy wrote:
> When a conflict happens during a rebase, you often need to look at the
> original patch to see what the changes are. This requires opening your
> favourite pager with some random path inside $GIT_DIR.
> This series makes that experience a bit
On Fri, Jan 26, 2018 at 01:37:07PM +0100, SZEDER Gábor wrote:
> Two of the previous patches in this series fixed two bogus
> 'test_i18ngrep' invocations that had neither a filename parameter not
> anything piped into their standard input, yet both managed to remain
> unnoticed for years. A third
On Fri, Jan 26, 2018 at 10:39:05AM -0800, Junio C Hamano wrote:
> Is there a case where test_i18ngrep (after your clean-ups in this
> series up to 06/10) needs to read from more than one file?
>
> I actually think that the kind of inconveniences we *can* work with,
> without risking breakage to
On Fri, Jan 26, 2018 at 01:37:06PM +0100, SZEDER Gábor wrote:
> When checking a git command's output with 'test_i18ngrep', it's
> tempting to conveniently pipe the git command's standard output into
> 'test_i18ngrep'. Unfortunately, this is an anti-pattern, because it
> hides the git command's
Junio C Hamano writes:
> SZEDER Gábor writes:
>
>> See two of the previous patches for the only such cases we had in our
>> test suite. However, reliably preventing this antipattern is arguably
>> more important than supporting these cases, which can be
On Fri, Jan 26, 2018 at 10:19:17AM -0800, Junio C Hamano wrote:
> SZEDER Gábor writes:
>
> > Both 'test_i18ncmp' and 'test_i18ngrep' helper functions are supposed
> > to be called from our test scripts, so they should be in
> > 'test-lib-functions.sh'.
> >
> >
On Wed, Jan 24, 2018 at 8:43 AM, KES wrote:
> Here is another place where diff can be improved:
> @@ -141,8 +140,9 @@ My_runops(pTHX)
> // Do not trace variables in DB:: module
> if( SvOK( inDB ) ) continue;
>
> - sv_inc_nomg( inDB
On Fri, Jan 26, 2018 at 01:37:00PM +0100, SZEDER Gábor wrote:
> The second 'test_i18ngrep' invocation in the test 'curl redirects
> respect whitelist' is missing its filename parameter. This has
> remained unnoticed since its introduction in f4113cac0 (http: limit
> redirection to
SZEDER Gábor writes:
> See two of the previous patches for the only such cases we had in our
> test suite. However, reliably preventing this antipattern is arguably
> more important than supporting these cases, which can be worked around
> by only minor inconveniences.
I
On Fri, Jan 26, 2018 at 01:23:03PM -0500, Jeff King wrote:
> On Fri, Jan 26, 2018 at 01:36:59PM +0100, SZEDER Gábor wrote:
>
> > The test 'push --no-progress silences progress but not status' runs
> > 'test_i18ngrep' without specifying a filename parameter. This has
> > remained unnoticed since
On Fri, Jan 26, 2018 at 01:36:59PM +0100, SZEDER Gábor wrote:
> The test 'push --no-progress silences progress but not status' runs
> 'test_i18ngrep' without specifying a filename parameter. This has
> remained unnoticed since its introduction in e304aeba2 (t5541: test
> more combinations of
SZEDER Gábor writes:
> Both 'test_i18ncmp' and 'test_i18ngrep' helper functions are supposed
> to be called from our test scripts, so they should be in
> 'test-lib-functions.sh'.
>
> Signed-off-by: SZEDER Gábor
> ---
> t/test-lib-functions.sh | 26
>>> +- A graph file is stored in a file named 'graph-.graph' in the pack
>>> + directory.
>>
>> (guessing)
>> where every commit up to is included in the file.
>
>
> Sorry, the is the hash of the graph contents (up to its trailing bytes
> that contain in binary).
>> So maybe I do not
SZEDER Gábor writes:
> One of the tests in 't5510-fetch.sh' checks the output of 'git fetch'
> using 'test_i18ngrep', and while doing so it prefilters the output
> with 'grep' before piping the result into 'test_i18ngrep'.
>
> This prefiltering is unnecessary, with the
On Thu, Jan 25, 2018 at 2:08 AM, Duy Nguyen wrote:
> On Wed, Jan 24, 2018 at 8:09 PM, Patryk Obara wrote:
>> This extension selects which hashing algorithm from vtable should be
>> used for reading and writing objects in the object store. At the moment
Duy Nguyen writes:
> I didn't look carefully at those sed magic. But it looks like it
> correctly handles this case too. So v2 follows below. It still feels
> dirty to do this kind of text manipulation though. But that can wait.
I do like "introduce and use helper feature to
On 26/01/2018 15:41, Johannes Schindelin wrote:
On Thu, 25 Jan 2018, Duy Nguyen wrote:
This config is so sensitive I wonder if we should forbid changing it
via git-config. You can't simply change this and expect anything to
work anyway.
I don't think it makes sense to forbid `git config`
On 1/25/2018 7:21 PM, Isaac Hier wrote:
Hi Jeff,
I have been looking at the build generator, which looks promising, but
I have one concern. Assuming I can generate a CMakeLists.txt that
appropriately updates the library sources, etc. how do you suggest I
handle new portability macros? For
Hi friend
I am a banker in ADB BANK. I want to transfer an abandoned sum of
USD15.6Million to your Bank account. 40/percent will be your share.
No risk involved but keeps it as secret. Contact me for more details.
Please reply me through my alternative email id only (salif.musa...@gmail.com)
On Fri, Jan 26, 2018 at 3:37 AM, SZEDER Gábor wrote:
> On Fri, Jan 5, 2018 at 9:26 PM, Elijah Newren wrote:
>> Signed-off-by: Elijah Newren
>> ---
>> t/t6043-merge-rename-directories.sh | 153
>>
>>
On Fri, Jan 26, 2018 at 11:32 AM, Оля Тележная wrote:
> 2018-01-25 23:22 GMT+03:00 Christian Couder :
>> On Thu, Jan 25, 2018 at 6:20 PM, Оля Тележная
>> wrote:
>>> Please look at my code:
>>>
Hi Duy,
On Thu, 25 Jan 2018, Duy Nguyen wrote:
> On Wed, Jan 24, 2018 at 8:09 PM, Patryk Obara wrote:
> > This extension selects which hashing algorithm from vtable should be
> > used for reading and writing objects in the object store. At the moment
> > supports only
On Fri, Jan 26, 2018 at 8:14 PM, Derrick Stolee wrote:
> On 1/25/2018 6:01 PM, Junio C Hamano wrote:
>>
>> Derrick Stolee writes:
>>
>>> Teach Git the 'graph' builtin that will be used for writing and
>>> reading packed graph files. The current implementation
On Thu, Jan 25, 2018 at 9:02 PM, Derrick Stolee wrote:
> +Git walks the commit graph for many reasons, including:
> +
> +1. Listing and filtering commit history.
> +2. Computing merge bases.
> +
> +These operations can become slow as the commit count grows above 100K.
> +The
On 1/25/2018 6:28 PM, Stefan Beller wrote:
On Thu, Jan 25, 2018 at 6:02 AM, Derrick Stolee wrote:
+
+$ git midx --write
midx?
Looks like I missed some replacements as I was building this. Now you
see how I hope the feedback
On 1/25/2018 5:07 PM, Stefan Beller wrote:
On Thu, Jan 25, 2018 at 6:02 AM, Derrick Stolee wrote:
Add document specifying the binary format for packed graphs. This
format allows for:
* New versions.
* New hash functions and hash lengths.
* Optional extensions.
Basic header
On 1/25/2018 5:06 PM, Junio C Hamano wrote:
Derrick Stolee writes:
Add document specifying the binary format for packed graphs. This
format allows for:
* New versions.
* New hash functions and hash lengths.
* Optional extensions.
Basic header information is followed by a
On 1/25/2018 6:01 PM, Junio C Hamano wrote:
Derrick Stolee writes:
Teach Git the 'graph' builtin that will be used for writing and
reading packed graph files. The current implementation is mostly
empty, except for a check that the core.graph setting is enabled
and a
On 1/25/2018 4:45 PM, Stefan Beller wrote:
On Thu, Jan 25, 2018 at 6:02 AM, Derrick Stolee wrote:
Teach Git the 'graph' builtin that will be used for writing and
reading packed graph files. The current implementation is mostly
empty, except for a check that the core.graph
On 1/25/2018 4:43 PM, Junio C Hamano wrote:
Derrick Stolee writes:
The packed graph feature is controlled by the new core.graph config
setting. This defaults to 0, so the feature is opt-in.
The intention of core.graph is that a user can always stop checking
for or parsing
On 1/25/2018 4:14 PM, Junio C Hamano wrote:
Derrick Stolee writes:
Add Documentation/technical/packed-graph.txt with details of the planned
packed graph feature, including future plans.
Signed-off-by: Derrick Stolee
---
On 1/25/2018 3:04 PM, Stefan Beller wrote:
On Thu, Jan 25, 2018 at 6:02 AM, Derrick Stolee wrote:
Add Documentation/technical/packed-graph.txt with details of the planned
packed graph feature, including future plans.
Signed-off-by: Derrick Stolee
---
The primary purpose of 't6022-merge-rename.sh' is to test 'git merge',
but one of the tests runs it upstream of a pipe, hiding its exit code.
Consequently, the test could continue even if 'git merge' exited with
error.
Use an intermediate file between 'git merge' and 'test_i18ngrep' to
catch a
The second 'test_i18ngrep' invocation in the test 'curl redirects
respect whitelist' is missing its filename parameter. This has
remained unnoticed since its introduction in f4113cac0 (http: limit
redirection to protocol-whitelist, 2015-09-22), because it would only
cause the test to fail if Git
When 'test_i18ngrep' can't find the expected pattern, it exits
completely silently; when its negated form does find the pattern that
shouldn't be there, it prints the matching line(s) but otherwise exits
without any error message. This leaves the developer puzzled about
what could have gone
Two of the previous patches in this series fixed two bogus
'test_i18ngrep' invocations that had neither a filename parameter not
anything piped into their standard input, yet both managed to remain
unnoticed for years. A third similarly bogus invocation is currently
lurking in 'pu' for a couple
Redirecting 'test_i18ngrep's standard input from a file will interfere
with the linting that will be added in a later patch.
Signed-off-by: SZEDER Gábor
---
t/t5536-fetch-conflicts.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
When checking a git command's output with 'test_i18ngrep', it's
tempting to conveniently pipe the git command's standard output into
'test_i18ngrep'. Unfortunately, this is an anti-pattern, because it
hides the git command's exit code, and the test could continue even if
the command exited with
The primary purpose of three tests in 't4001-diff-rename.sh' is to
check rename detection in 'git status', but all three do so by running
'git status' upstream of a pipe, hiding its exit code. Consequently,
the test could continue even if 'git status' exited with error.
Use an intermediate file
When 'test_i18ngrep' can't find the expected pattern, it exits
completely silently; when its negated form does find the pattern that
shouldn't be there, it prints the matching line(s) but otherwise exits
without any error message. This leaves the developer puzzled about
what could have gone
The test 'push --no-progress silences progress but not status' runs
'test_i18ngrep' without specifying a filename parameter. This has
remained unnoticed since its introduction in e304aeba2 (t5541: test
more combinations of --progress, 2012-05-01), because that
'test_i18ngrep' is supposed to check
1 - 100 of 113 matches
Mail list logo