Re: [PATCH v2 2/2] note git-secur...@googlegroups.com in more places

2018-05-30 Thread brian m. carlson
ing the footnoteref syntax to refer to the previous footnote potentially makes this a little less readable for plain text users, although it also reduces duplication. I'm not sure I feel strongly one way or the other on this. Otherwise, this looked fine to me. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 signature.asc Description: PGP signature

Re: [PATCH v2 01/18] Add a function to solve least-cost assignment problems

2018-05-30 Thread brian m. carlson
ignment problem. This is the Jonker-Volgenant algorithm, which solves the same problem. It's faster, but less tolerant. At least this is what I just learned after about ten minutes of searching. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 signature.asc Description: PGP signature

Re: [PATCH] sequencer: ensure labels that are object IDs are rewritten

2018-05-30 Thread brian m. carlson
-from-scratch That would be simpler. You read my mind: I needed some script to make the sequence editor work, but anything would be fine. > > + test_config sequence.editor \""$PWD"/replace-editor.sh\" && > > + test_tick && > > + git rebase -i -r A

Re: [PATCH 2/1] SubmittingPatches: not git-secur...@googlegroups.com

2018-05-29 Thread brian m. carlson
a minimal, faithful conversion. I have no objection to named footnotes and I agree they're easier to use if we have a large number of them. I think whatever we use, we should try to make them unique, as I mentioned above. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 signature.asc Description: PGP signature

[PATCH] sequencer: ensure labels that are object IDs are rewritten

2018-05-29 Thread brian m. carlson
length to be equivalent to GIT_SHA1_RAWSZ, which isn't correct, since what we are reading is a hex object ID. Instead, check for the length being equivalent to that of a hex object ID. Use the_hash_algo so this code works regardless of the hash size. Signed-off-by: brian m. carlson --- I noticed

Re: [PATCH v3 02/20] commit-graph: fix GRAPH_MIN_SIZE

2018-05-26 Thread brian m. carlson
bject-id-part14 series to make that conversion. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 signature.asc Description: PGP signature

Re: [PATCH v2 1/2] remote-curl: accept all encodings supported by curl

2018-05-22 Thread brian m. carlson
in the future, we can add a prerequisite that looks in the module directory for the appropriate module. We haven't seen an issue with it yet, though, TTBOMK. [0] https://www.iana.org/assignments/http-parameters/http-parameters.xml#content-coding -- brian m. carlson: Houston, Texas, US OpenPGP: htt

Re: [PATCH v2] mailmap: update brian m. carlson's email address

2018-05-22 Thread brian m. carlson
On Tue, May 22, 2018 at 03:08:26PM -0700, Jonathan Nieder wrote: > These commits use author Brian M. Carlson <sand...@crustytoothpaste.net>. > Previously they matched > > brian m. carlson <sand...@crustytoothpaste.ath.cx> > <sand...@crustytoothpaste.net>

Re: [PATCH v4 00/28] Hash-independent tests

2018-05-21 Thread brian m. carlson
ion in order to progress, but I need to do some research and testing in order to have sufficient facts to present to the list. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 signature.asc Description: PGP signature

[PATCH v4 19/28] t4022: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4022-diff-rewrite.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t4022-diff-rewrite.sh b/t/t402

[PATCH v4 20/28] t4029: fix test indentation

2018-05-20 Thread brian m. carlson
We typically indent our tests with a single tab, partially so that we can take advantage of indented heredocs. Make this change and move the quote marks to be in the typical position for our tests. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4029-diff-trailing-sp

[PATCH v4 24/28] t4205: sort log output in a hash-independent way

2018-05-20 Thread brian m. carlson
of the object ID. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4205-log-pretty-formats.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 591f35daaf..2052cadb11 100755 --- a/t/t42

[PATCH v4 22/28] t4030: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4030-diff-textconv.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/t4030-diff-textconv.sh b/t/t403

[PATCH v4 28/28] t5300: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t5300-pack-object.sh | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/t5300-pack-object.sh b/t

[PATCH v4 26/28] t4045: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4045-diff-relative.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t4045-diff-relative.sh b/t

[PATCH v4 12/28] t3103: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it uses variables and command substitution for trees instead of hard-coded hashes. This also has the benefit of making it more obvious how the test works. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3103-ls-tree-misc.sh | 3 ++- 1 file c

[PATCH v4 25/28] t4042: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4042-diff-textconv-caching.sh | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/t/t404

[PATCH v4 16/28] t4008: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4008-diff-break-rewrite.sh | 59 +++ 1 file changed, 32 insertions(+), 27 deletions(-) diff --g

[PATCH v4 23/28] t/lib-diff-alternative: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test code so that it computes variables for blobs instead of using hard-coded hashes. This makes t4033 and t4050 (the patience and histogram tests) pass. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/lib-diff-alternative.sh | 12 1 file chan

[PATCH v4 21/28] t4029: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4029-diff-trailing-space.sh | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/t4029-diff-trailing-spac

[PATCH v4 27/28] t4208: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4208-log-magic-pathspec.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t4208-log-magic-pathspe

[PATCH v4 15/28] t4007: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs and uses the ZERO_OID variable instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4007-rename-3.sh | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff

[PATCH v4 14/28] t3905: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3905-stash-include-untracked.sh | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/t/t3905-stash-i

[PATCH v4 17/28] t4014: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes values for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4014-format-patch.sh | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/t/t4014-format-patch.sh b/t

[PATCH v4 18/28] t4020: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4020-diff-external.sh | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/t/t4020-diff-external.

[PATCH v4 13/28] t3702: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Strip out the index lines in the diff before comparing them, as these will differ between hash algorithms. This leads to a smaller, simpler change than editing the index line. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3702-add-edit.sh | 7 +++ 1 file chan

[PATCH v4 10/28] t: skip pack tests if not using SHA-1

2018-05-20 Thread brian m. carlson
These tests rely on creating packs with specially named objects which are necessarily dependent on the hash used. Skip these tests if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t5308-pack-detect-duplicates.sh | 6 ++ t/t5309-pack

[PATCH v4 08/28] t1512: skip test if not using SHA-1

2018-05-20 Thread brian m. carlson
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t1512-rev-parse-disambiguation.sh | 6 ++ 1 file changed, 6 inse

[PATCH v4 00/28] Hash-independent tests

2018-05-20 Thread brian m. carlson
"slink_id" for consistency while still preserving alignment. * Restore blank line between tests. tbdiff output below. brian m. carlson (28): t/test-lib: add an SHA1 prerequisite t/test-lib: introduce ZERO_OID t: switch $_z40 to $ZERO_OID t/test-lib: introduce OID_REGEX t: switch

[PATCH v4 09/28] t4044: skip test if not using SHA-1

2018-05-20 Thread brian m. carlson
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4044-diff-index-unique-abbrev.sh | 6 ++ 1 file changed, 6 inse

[PATCH v4 11/28] t2203: abstract away SHA-1-specific constants

2018-05-20 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t2203-add-intent.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t2203-add-intent.sh b/t/t22

[PATCH v4 06/28] t0000: annotate with SHA1 prerequisite

2018-05-20 Thread brian m. carlson
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t-basic.sh | 24 1 file changed, 12 inse

[PATCH v4 01/28] t/test-lib: add an SHA1 prerequisite

2018-05-20 Thread brian m. carlson
of these tests which handle both SHA-1 and NewHash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 7 +++ 1 file changed, 7 insertions(+) diff --git a/t/test-lib.sh b/t/test-lib.sh index ea2bbaaa7a..fce728d2ea 100644 --- a/t/test-lib.sh +++ b/t/test-

[PATCH v4 05/28] t: switch $_x40 to $OID_REGEX

2018-05-20 Thread brian m. carlson
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_x40/$OID_REGEX/g' Signed-off-by: brian m. carlson <s

[PATCH v4 07/28] t1007: annotate with SHA1 prerequisite

2018-05-20 Thread brian m. carlson
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t1007-hash-object.sh | 16 1 file changed, 8 insertions

[PATCH v4 04/28] t/test-lib: introduce OID_REGEX

2018-05-20 Thread brian m. carlson
a regex matching the appropriate object ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 58c2ea52c6..fed2

[PATCH v4 03/28] t: switch $_z40 to $ZERO_OID

2018-05-20 Thread brian m. carlson
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_z40/$ZERO_OID/g' Signed-off-by: brian m. carlson <s

[PATCH v4 02/28] t/test-lib: introduce ZERO_OID

2018-05-20 Thread brian m. carlson
ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index fce728d2ea..58c2ea52c6 100644 --- a/t/test-lib.sh +

Re: What's cooking in git.git (May 2018, #02; Thu, 17)

2018-05-20 Thread brian m. carlson
e been updated > to test the moral equivalent of the original without hardcoding the > actual object names. > > Will merge to 'next'. I think there was one minor change Stefan wanted out of this series. I'll send a reroll (and tbdiff) with just that change. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 signature.asc Description: PGP signature

Re: [PATCH v3 13/28] t3702: abstract away SHA-1-specific constants

2018-05-16 Thread brian m. carlson
s in command line options over specifically concerns about the use of egrep itself. I suspect the implementations that want egrep over grep -E (the latter being POSIX) also lack many of the POSIX options that people want to use, although I'm not aware of egrep itself being broken anywhere. -- brian

Re: [PATCH v3 07/28] t1007: annotate with SHA1 prerequisite

2018-05-16 Thread brian m. carlson
On Wed, May 16, 2018 at 09:56:33AM -0700, Stefan Beller wrote: > Hi brian, > > On Tue, May 15, 2018 at 6:56 PM, brian m. carlson > <sand...@crustytoothpaste.net> wrote: > For the 2 occurrences above I think the SHA1 requirement is not > needed as the check if a blob exi

[PATCH v3 15/28] t4007: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs and uses the ZERO_OID variable instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4007-rename-3.sh | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff

[PATCH v3 20/28] t4029: fix test indentation

2018-05-15 Thread brian m. carlson
We typically indent our tests with a single tab, partially so that we can take advantage of indented heredocs. Make this change and move the quote marks to be in the typical position for our tests. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4029-diff-trailing-sp

[PATCH v3 18/28] t4020: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4020-diff-external.sh | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/t/t4020-diff-external.

[PATCH v3 19/28] t4022: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4022-diff-rewrite.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t4022-diff-rewrite.sh b/t/t402

[PATCH v3 13/28] t3702: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Strip out the index lines in the diff before comparing them, as these will differ between hash algorithms. This leads to a smaller, simpler change than editing the index line. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3702-add-edit.sh | 7 +++ 1 file chan

[PATCH v3 12/28] t3103: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it uses variables and command substitution for trees instead of hard-coded hashes. This also has the benefit of making it more obvious how the test works. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3103-ls-tree-misc.sh | 3 ++- 1 file c

[PATCH v3 08/28] t1512: skip test if not using SHA-1

2018-05-15 Thread brian m. carlson
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t1512-rev-parse-disambiguation.sh | 6 ++ 1 file changed, 6 inse

[PATCH v3 06/28] t0000: annotate with SHA1 prerequisite

2018-05-15 Thread brian m. carlson
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t-basic.sh | 24 1 file changed, 12 inse

[PATCH v3 16/28] t4008: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4008-diff-break-rewrite.sh | 59 +++ 1 file changed, 32 insertions(+), 27 deletions(-) diff --g

[PATCH v3 25/28] t4042: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4042-diff-textconv-caching.sh | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/t/t404

[PATCH v3 22/28] t4030: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4030-diff-textconv.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/t4030-diff-textconv.sh b/t/t403

[PATCH v3 24/28] t4205: sort log output in a hash-independent way

2018-05-15 Thread brian m. carlson
of the object ID. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4205-log-pretty-formats.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 591f35daaf..2052cadb11 100755 --- a/t/t42

[PATCH v3 28/28] t5300: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t5300-pack-object.sh | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/t5300-pack-object.sh b/t

[PATCH v3 26/28] t4045: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4045-diff-relative.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t4045-diff-relative.sh b/t

[PATCH v3 23/28] t/lib-diff-alternative: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test code so that it computes variables for blobs instead of using hard-coded hashes. This makes t4033 and t4050 (the patience and histogram tests) pass. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/lib-diff-alternative.sh | 12 1 file chan

[PATCH v3 27/28] t4208: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4208-log-magic-pathspec.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t4208-log-magic-pathspe

[PATCH v3 17/28] t4014: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes values for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4014-format-patch.sh | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/t/t4014-format-patch.sh b/t

[PATCH v3 00/28] Hash-independent tests

2018-05-15 Thread brian m. carlson
preserving alignment. * Restore blank line between tests. tbdiff output below. brian m. carlson (28): t/test-lib: add an SHA1 prerequisite t/test-lib: introduce ZERO_OID t: switch $_z40 to $ZERO_OID t/test-lib: introduce OID_REGEX t: switch $_x40 to $OID_REGEX t: annotate with SHA1

[PATCH v3 07/28] t1007: annotate with SHA1 prerequisite

2018-05-15 Thread brian m. carlson
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t1007-hash-object.sh | 16 1 file changed, 8 insertions

[PATCH v3 02/28] t/test-lib: introduce ZERO_OID

2018-05-15 Thread brian m. carlson
ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index fce728d2ea..58c2ea52c6 100644 --- a/t/test-lib.sh +

[PATCH v3 10/28] t: skip pack tests if not using SHA-1

2018-05-15 Thread brian m. carlson
These tests rely on creating packs with specially named objects which are necessarily dependent on the hash used. Skip these tests if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t5308-pack-detect-duplicates.sh | 6 ++ t/t5309-pack

[PATCH v3 04/28] t/test-lib: introduce OID_REGEX

2018-05-15 Thread brian m. carlson
a regex matching the appropriate object ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 58c2ea52c6..fed2

[PATCH v3 03/28] t: switch $_z40 to $ZERO_OID

2018-05-15 Thread brian m. carlson
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_z40/$ZERO_OID/g' Signed-off-by: brian m. carlson <s

[PATCH v3 09/28] t4044: skip test if not using SHA-1

2018-05-15 Thread brian m. carlson
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4044-diff-index-unique-abbrev.sh | 6 ++ 1 file changed, 6 inse

[PATCH v3 01/28] t/test-lib: add an SHA1 prerequisite

2018-05-15 Thread brian m. carlson
of these tests which handle both SHA-1 and NewHash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 7 +++ 1 file changed, 7 insertions(+) diff --git a/t/test-lib.sh b/t/test-lib.sh index ea2bbaaa7a..fce728d2ea 100644 --- a/t/test-lib.sh +++ b/t/test-

[PATCH v3 21/28] t4029: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4029-diff-trailing-space.sh | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/t4029-diff-trailing-spac

[PATCH v3 05/28] t: switch $_x40 to $OID_REGEX

2018-05-15 Thread brian m. carlson
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_x40/$OID_REGEX/g' Signed-off-by: brian m. carlson <s

[PATCH v3 11/28] t2203: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t2203-add-intent.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t2203-add-intent.sh b/t/t22

[PATCH v3 14/28] t3905: abstract away SHA-1-specific constants

2018-05-15 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3905-stash-include-untracked.sh | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/t/t3905-stash-i

Re: [PATCH v2 17/28] t4014: abstract away SHA-1-specific constants

2018-05-13 Thread brian m. carlson
On Sun, May 13, 2018 at 09:34:03AM +0200, Johannes Sixt wrote: > Am 13.05.2018 um 04:24 schrieb brian m. carlson: > > diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh > > index dac3f349a3..42b3e11207 100755 > > --- a/t/t4014-format-patch.sh > > ++

[PATCH v2 16/28] t4008: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4008-diff-break-rewrite.sh | 59 +++ 1 file changed, 32 insertions(+), 27 deletions(-) diff --g

[PATCH v2 14/28] t3905: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3905-stash-include-untracked.sh | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/t/t3905-stash-i

[PATCH v2 25/28] t4042: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4042-diff-textconv-caching.sh | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/t/t404

[PATCH v2 24/28] t4205: sort log output in a hash-independent way

2018-05-12 Thread brian m. carlson
of the object ID. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4205-log-pretty-formats.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 591f35daaf..2052cadb11 100755 --- a/t/t42

[PATCH v2 23/28] t/lib-diff-alternative: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test code so that it computes variables for blobs instead of using hard-coded hashes. This makes t4033 and t4050 (the patience and histogram tests) pass. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/lib-diff-alternative.sh | 12 1 file chan

[PATCH v2 17/28] t4014: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes values for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4014-format-patch.sh | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/t4014-format-patch.sh b/t/t4014-

[PATCH v2 13/28] t3702: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Strip out the index lines in the diff before comparing them, as these will differ between hash algorithms. This leads to a smaller, simpler change than editing the index line. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3702-add-edit.sh | 7 +++ 1 file chan

[PATCH v2 27/28] t4208: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4208-log-magic-pathspec.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t4208-log-magic-pathspe

[PATCH v2 18/28] t4020: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4020-diff-external.sh | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/t4020-diff-external.sh b/t

[PATCH v2 20/28] t4029: fix test indentation

2018-05-12 Thread brian m. carlson
We typically indent our tests with a single tab, partially so that we can take advantage of indented heredocs. Make this change and move the quote marks to be in the typical position for our tests. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4029-diff-trailing-sp

[PATCH v2 21/28] t4029: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4029-diff-trailing-space.sh | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/t4029-diff-trailing-space.

[PATCH v2 26/28] t4045: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4045-diff-relative.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t4045-diff-relative.sh b/t

[PATCH v2 11/28] t2203: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t2203-add-intent.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t2203-add-intent.sh b/t/t22

[PATCH v2 08/28] t1512: skip test if not using SHA-1

2018-05-12 Thread brian m. carlson
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t1512-rev-parse-disambiguation.sh | 6 ++ 1 file changed, 6 inse

[PATCH v2 19/28] t4022: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4022-diff-rewrite.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/t4022-diff-rewrite.sh b/t/t402

[PATCH v2 10/28] t: skip pack tests if not using SHA-1

2018-05-12 Thread brian m. carlson
These tests rely on creating packs with specially named objects which are necessarily dependent on the hash used. Skip these tests if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t5308-pack-detect-duplicates.sh | 6 ++ t/t5309-pack

[PATCH v2 06/28] t0000: annotate with SHA1 prerequisite

2018-05-12 Thread brian m. carlson
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t-basic.sh | 24 1 file changed, 12 inse

[PATCH v2 09/28] t4044: skip test if not using SHA-1

2018-05-12 Thread brian m. carlson
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4044-diff-index-unique-abbrev.sh | 6 ++ 1 file changed, 6 inse

[PATCH v2 07/28] t1007: annotate with SHA1 prerequisite

2018-05-12 Thread brian m. carlson
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t1007-hash-object.sh | 16 1 file changed, 8 insertions

[PATCH v2 22/28] t4030: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4030-diff-textconv.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/t4030-diff-textconv.sh b/t/t403

[PATCH v2 12/28] t3103: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it uses variables and command substitution for trees instead of hard-coded hashes. This also has the benefit of making it more obvious how the test works. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t3103-ls-tree-misc.sh | 3 ++- 1 file c

[PATCH v2 28/28] t5300: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t5300-pack-object.sh | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/t5300-pack-object.sh b/t

[PATCH v2 15/28] t4007: abstract away SHA-1-specific constants

2018-05-12 Thread brian m. carlson
Adjust the test so that it computes variables for blobs and uses the ZERO_OID variable instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/t4007-rename-3.sh | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff

[PATCH v2 04/28] t/test-lib: introduce OID_REGEX

2018-05-12 Thread brian m. carlson
a regex matching the appropriate object ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 58c2ea52c6..fed2

[PATCH v2 03/28] t: switch $_z40 to $ZERO_OID

2018-05-12 Thread brian m. carlson
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_z40/$ZERO_OID/g' Signed-off-by: brian m. carlson <s

[PATCH v2 05/28] t: switch $_x40 to $OID_REGEX

2018-05-12 Thread brian m. carlson
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_x40/$OID_REGEX/g' Signed-off-by: brian m. carlson <s

[PATCH v2 02/28] t/test-lib: introduce ZERO_OID

2018-05-12 Thread brian m. carlson
ID, regardless of the length of the current hash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index fce728d2ea..58c2ea52c6 100644 --- a/t/test-lib.sh +

[PATCH v2 00/28] Hash-independent tests (part 2)

2018-05-12 Thread brian m. carlson
* Restore blank line between tests. tbdiff output below. brian m. carlson (28): t/test-lib: add an SHA1 prerequisite t/test-lib: introduce ZERO_OID t: switch $_z40 to $ZERO_OID t/test-lib: introduce OID_REGEX t: switch $_x40 to $OID_REGEX t: annotate with SHA1 prerequisite t1007

[PATCH v2 01/28] t/test-lib: add an SHA1 prerequisite

2018-05-12 Thread brian m. carlson
of these tests which handle both SHA-1 and NewHash. Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net> --- t/test-lib.sh | 7 +++ 1 file changed, 7 insertions(+) diff --git a/t/test-lib.sh b/t/test-lib.sh index ea2bbaaa7a..fce728d2ea 100644 --- a/t/test-lib.sh +++ b/t/test-

<    1   2   3   4   5   6   7   8   9   10   >