to another, creating a different key, but with the same
fingerprint (hash value).
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
, it addresses my concern.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature
reflogs in
the same place.) Then you'll need to ensure that git gc runs
periodically so that bitmaps are generated.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994
On Sun, Mar 08, 2015 at 04:57:36PM +0700, Duy Nguyen wrote:
On Sun, Mar 8, 2015 at 6:23 AM, brian m. carlson
sand...@crustytoothpaste.net wrote:
I'm not very excited about having to put the #include in the middle of
cache.h. The alternative, of course, is to move enum object_type up,
which I
, but forgotten. I've done similar
things before.
I generally prefer being a bit stricter and giving helpful error
messages rather than trying to intuit what the user meant. The user is
always going to come up with a new way to break the code.
--
brian m. carlson / brian with sandals: Houston, Texas, US
in_progress_fd as much as possible is a good idea, since system calls
can be expensive on some systems.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223
be recognized, but the increased robustness is likely worth it.
Add tests to cover these cases to avoid regressions.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
connect.c| 18 +++---
t/t5601-clone.sh | 33 +
2 files changed, 48
This series improves detection of plink (the putty utility).
While I was adding tests, I noticed that we had a broken test due to the
use of single quotes within a test, which resulted in the test always
being skipped. Therefore, nobody noticed that the test was actually
broken.
brian m
that are passed to ssh.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
t/t5601-clone.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index 1befc45..aae2324 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -332,7
The code path used in git_connect pushed the majority of the SSH
connection code into an else block, even though the if block returns.
Simplify the code by eliminating the else block, as it is unneeded.
Signed-off-by: Jeff King p...@peff.net
Signed-off-by: brian m. carlson sand
.
-
What about adding test-cases in t5601,
this will ease the documentation later.
f:/util/plink
/c/util/plink.exe
f:/util/tortoiseplink
/c/util/tortoiseplink.exe
/usr/local/uplink/sshwrapper.sh
It looks like there's already a framework for that, so sure, I can add
some tests.
--
brian m
, or select from multiple different options.
[0] http://rosettacode.org/wiki/Multiline_shebang
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
involve text or
documentation at this point, if only for maintainability reasons.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
The code path used in git_connect pushed the majority of the SSH
connection code into an else block, even though the if block returns.
Simplify the code by eliminating the else block, as it is unneeded.
Signed-off-by: Jeff King p...@peff.net
Signed-off-by: brian m. carlson sand
the check by looking for plink or
tortoiseplink (or those names suffixed with .exe) in the final
component of the path.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
connect.c | 18 +++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/connect.c b
On Fri, Apr 24, 2015 at 03:46:30PM -0700, Pete Harlan wrote:
On Fri, Apr 24, 2015 at 3:28 PM, brian m. carlson
sand...@crustytoothpaste.net wrote:
The git_connect function has code to handle plink and tortoiseplink
specially, as they require different command line arguments from
OpenSSH
.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature
The code path used in git_connect pushed the majority of the SSH
connection code into an else block, even though the if block returns.
Simplify the code by eliminating the else block, as it is unneeded.
Signed-off-by: Jeff King p...@peff.net
Signed-off-by: brian m. carlson sand
the check by looking for plink or
tortoiseplink only at the beginning of the string or immediately after
a directory separator.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
This is essentially just a deindentation.
connect.c | 15 ---
1 file changed, 12 insertions
])) ||
+ tplink == ssh || (tplink
is_dir_sep(tplink[-1]));
}
argv_array_push(conn-args, ssh);
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
.
Perhaps it would be worthwhile to check instead if the text plink is
the beginning of string or is preceded by a path separator. That would
give us a bit more confidence that the user is looking for plink, but
would still allow people to use plink-0.63 if they like.
--
brian m. carlson / brian
*/
conn-env = local_repo_env;
I can drop this in as a preparatory patch if I can have your sign-off.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C
suffix these new entries with _oid to distinguish
them. Convert for_each_tag_ref and its callers to use the new _oid
functions, introducing temporary wrapper functions to avoid type
mismatches.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/pack-objects.c | 4
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 44 ++--
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/refs.c b/refs.c
index 81a455b..522d15d 100644
--- a/refs.c
+++ b/refs.c
@@ -156,7 +156,7 @@ struct ref_value
Now that all the callers of handle_refs are gone, rename handle_refs_oid
to handle_refs and update the callers accordingly.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
revision.c | 22 +++---
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git
Remove the temporary for_each_ref_in_oid function and update the users
of it. Convert the users of for_each_branch_ref and
for_each_remote_ref (which use for_each_ref_in under the hood) as well.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
bisect.c| 8
Convert head_ref_namespaced and for_each_namespaced_ref to use struct
object_id. Update the various callbacks to use struct object_id
internally as well.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
http-backend.c | 14 +++---
refs.c | 12 ++--
refs.h
, convert modified
functions to use struct object_id instead of unsigned char [20].
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/checkout.c | 4 ++--
builtin/fetch.c| 6 +++---
builtin/name-rev.c | 6 +++---
builtin/pack-objects.c | 10 +-
builtin
do_for_each_ref was unused due to previous patches, so rename
do_for_each_ref_oid to do_for_each_ref. Similarly, remove the unused fn
member from struct ref_entry in favor of renaming the fn_oid member.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 43
.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/rev-parse.c | 27 +++
builtin/show-ref.c | 23 +--
log-tree.c | 19 +++
reachable.c | 13 -
shallow.c | 33
Update callbacks to take the proper parameters and use struct object_id
elsewhere in the callbacks.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/replace.c | 14 +++---
refs.c| 4 ++--
refs.h| 2 +-
replace_object.c | 4 ++--
4 files
Convert head_ref and head_ref_submodule to use struct object_id.
Introduce some wrappers in some of the callers to handle
incompatibilities between each_ref_fn and each_ref_fn_oid.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/show-ref.c | 7 ++-
log-tree.c
each_ref_fn is no longer used, so rename each_ref_fn_oid to each_ref_fn.
Update the documentation to note the change in function signature.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
Documentation/technical/api-ref-iteration.txt | 2 +-
refs.c
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/fsck.c | 2 +-
builtin/reflog.c | 4 ++--
refs.c | 10 +-
refs.h | 2 +-
revision.c | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/builtin/fsck.c b/builtin
Convert callbacks to use struct object_id internally as well.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/branch.c | 4 ++--
builtin/describe.c | 12 ++--
builtin/for-each-ref.c | 4 ++--
builtin/fsck.c | 16
refs.c
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/refs.c b/refs.c
index 9e61b32..6c04189 100644
--- a/refs.c
+++ b/refs.c
@@ -10,7 +10,7 @@ struct ref_lock {
char *ref_name
Convert for_each_ref_in_submodule and all of its caller. Introduce two
temporary wrappers in revision.c to handle the incompatibilities between
each_ref_fn and each_ref_fn_oid.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 10 +-
refs.h | 8
next to pick up the first set of object_id patches.
* Fix a series of nasty conflicts that occurred due to other topics in
flight to promote easier testing and integration.
Comments and reviews on this series would be greatly appreciated.
brian m. carlson (16):
refs: convert struct ref_entry
Convert the callers as well.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 4 ++--
refs.h | 2 +-
revision.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/refs.c b/refs.c
index 7a8b579..68d0af8 100644
--- a/refs.c
+++ b/refs.c
break some use cases, such as
non-interactive applications.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description
to use the stricter format.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature
.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature
Yet, even if they were unmodified. Don't attempt to
convert the line endings when creating the fake commit so that blame
works correctly regardless of the autocrlf setting.
Reported-by: Ephrim Khong dr.kh...@gmail.com
Signed-off-by: brian m. carlson sand
be possible.
So it isn't as much of a we don't want to move to C99 as much as we
aren't yet willing to drop support for older versions of MSVC. I don't
use Windows, so I'm happy to drop support for MSVC 2012 and older, but
others may have different opinions.
--
brian m. carlson / brian with sandals
On Sat, Apr 04, 2015 at 01:06:43PM -0700, Junio C Hamano wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
So it isn't as much of a we don't want to move to C99 as much as we
aren't yet willing to drop support for older versions of MSVC.
I do not particularly like that 'we
: brian m. carlson sand...@crustytoothpaste.net
Date: Thu, 4 Jun 2015 01:26:10 +
Subject: [PATCH] Convert nth_packed_object_sha1 to object_id.
nth_packed_object_sha1 returned a pointer directly into the mmap'd
memory of the pack in question, but the C standard does not allow
converting a pointer
-256: 144 MiB/s, SHA-512/256: 242 MiB/s) for messages ≥ 55
bytes, and most systems these days are 64 bit.
That's what I've been thinking, at least, but if people have better
ideas, I'm open to hearing them.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http
was opposed to doing *dest = *src. So I don't
think this ends up being an issue.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
of GIT_SHA1_HEXSZ, as it
will be more obvious that this depends on that value. If you don't now,
I will later.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA
Use struct object_id in three fields in struct ref and convert all the
necessary places that use it.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/clone.c| 16 +++---
builtin/fetch-pack.c | 4 ++--
builtin/fetch.c| 50
Add has_object_file, which is a wrapper around has_sha1_file, but for
struct object_id.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
cache.h | 3 +++
sha1_file.c | 5 +
2 files changed, 8 insertions(+)
diff --git a/cache.h b/cache.h
index 571c98f..fa1f067 100644
Convert ref_newer and its caller to use struct object_id instead of
unsigned char *.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/remote.c | 2 +-
http-push.c | 4 ++--
remote.c | 8
remote.h | 2 +-
4 files changed, 8 insertions(+), 8
m. carlson (8):
refs: convert some internal functions to use object_id
sha1_file: introduce has_object_file helper.
Convert struct ref to use object_id.
Add a utility function to make parsing hex values easier.
add_sought_entry_mem: convert to struct object_id
parse_fetch: convert
Convert several internal functions in refs.c to use struct object_id,
and use the GIT_SHA1_HEXSZ constants in parse_ref_line.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 104 -
1 file changed, 52
Convert the parse_fetch function to use struct object_id. Switch from
get_sha1_hex to parse_oid_hex to avoid hard-coding constants. Remove
the strlen check as parse_oid_hex will fail safely on receiving a
too-short NUL-terminated string.
Signed-off-by: brian m. carlson sand
it easier for code not to assume fixed values when parsing,
and to move to larger hash functions in the future.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
cache.h | 9 +
hex.c | 7 +++
2 files changed, 16 insertions(+)
diff --git a/cache.h b/cache.h
index fa1f067
Convert this function to use struct object_id. Use parse_oid_hex to
avoid having to hard-code the number of bytes to be parsed.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/fetch-pack.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git
On Wed, Jun 10, 2015 at 09:43:34AM +0700, Duy Nguyen wrote:
On Tue, Jun 9, 2015 at 10:00 PM, brian m. carlson
sand...@crustytoothpaste.net wrote:
You've increased this by 20, but you're adding 40 characters to the
strcpy. Are you sure that's enough?
Also, you might consider writing
On Wed, Jun 10, 2015 at 04:59:58PM +0700, Duy Nguyen wrote:
On Tue, Jun 9, 2015 at 11:28 PM, brian m. carlson
sand...@crustytoothpaste.net wrote:
diff --git a/sha1_file.c b/sha1_file.c
index 7e38148..09f7f03 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -3173,6 +3173,11 @@ int
The code to handle printing of signature data from a struct
signature_check is very similar between verify-commit and verify-tag.
Place this in a single function. verify-tag retains its special case
behavior of printing the tag even when no valid signature is found.
Signed-off-by: brian m
. This behavior is more logical anyway, as the
signature is in fact valid, whether or not there's a path of trust to
the author.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/verify-commit.c | 5 +++--
builtin/verify-tag.c | 5 +++--
commit.c | 8
status information on standard error
instead of the human-readable format.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
Documentation/git-verify-commit.txt | 4
builtin/verify-commit.c | 15 ++-
gpg-interface.c | 7 +--
gpg
the signature text, as we now
call verify_signed_buffer with strbufs to catch the output, which
prevents it from being printed automatically.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/verify-tag.c | 9 -
commit.c | 15 +--
gpg-interface.c
-by: brian m. carlson sand...@crustytoothpaste.net
---
t/t7510-signed-commit.sh | 7 +++
1 file changed, 7 insertions(+)
diff --git a/t/t7510-signed-commit.sh b/t/t7510-signed-commit.sh
index 13331e5..4fc376e 100755
--- a/t/t7510-signed-commit.sh
+++ b/t/t7510-signed-commit.sh
@@ -81,6 +81,13
the patches to ensure that verify-tag tests came before
refactors, to avoid regressing functionality.
* Changed verify-commit to succeed if a signature is good, regardless of
whether it is trusted, at Michael J Gruber's suggestion.
brian m. carlson (7):
verify-tag: add tests
verify-tag: share
verify-tag was lacking tests. Add some, mirroring those used for
verify-commit.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
t/t7030-verify-tag.sh | 84 +++
1 file changed, 84 insertions(+)
create mode 100755 t/t7030-verify
information on standard error instead of the
human-readable format.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
Documentation/git-verify-tag.txt | 4
builtin/verify-tag.c | 17 +++--
t/t7030-verify-tag.sh| 31
., berkeley db)?
Berkeley DB has switched to the AGPLv3 for new versions. Besides being
unpalatable for many people, it's also incompatible with the GPLv2. I
do otherwise like Berkeley DB: it performs reasonably well and is
available on most systems.
--
brian m. carlson / brian with sandals: Houston
On Fri, Jun 26, 2015 at 09:15:24AM -0400, Jeff King wrote:
On Sun, Apr 26, 2015 at 08:30:12PM +, brian m. carlson wrote:
Improve the check by looking for plink or tortoiseplink (or those
names suffixed with .exe) only in the final component of the path.
This has the downside
On Fri, Jun 12, 2015 at 03:14:25PM -0700, Junio C Hamano wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
While I did run the tests between each commit, I hadn't noticed they
were failing because I don't have Apache installed on my laptop, so they
were silently skipped. I'll
status information on standard error
instead of the human-readable format.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
Documentation/git-verify-commit.txt | 4
builtin/verify-commit.c | 13 +++--
t/t7510-signed-commit.sh| 32
signature is made with an
untrusted key, verify-commit will exit 1, but verify-tag will exit 0.
I'm unclear on what we can do about this now, short of adding another
option. This is because the two commands share little common code.
brian m. carlson (3):
verify-commit: add option to print raw
information on standard error instead of the
human-readable format.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
Documentation/git-verify-tag.txt | 4
builtin/verify-tag.c | 21 +++--
t/t7030-verify-tag.sh| 31
verify-tag was lacking tests. Add some, mirroring those used for
verify-commit.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
t/t7030-verify-tag.sh | 85 +++
1 file changed, 85 insertions(+)
create mode 100755 t/t7030-verify
each of which signals a single bit.
I'll wait for other responses (if any) and then reroll.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
: 3, 7-16, 19
Non-zero exit status: 1
While I did run the tests between each commit, I hadn't noticed they
were failing because I don't have Apache installed on my laptop, so they
were silently skipped. I'll resubmit with that fixed.
--
brian m. carlson / brian with sandals: Houston, Texas
in the branch I'm
working on as well, or the area for that code is lacking tests, since I
don't think the tests are failing there. In the latter case, I'll send
a testsuite patch as part of my next series.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http
On Wed, Jun 10, 2015 at 11:51:14PM +, brian m. carlson wrote:
On Wed, Jun 10, 2015 at 03:50:32PM -0700, Junio C Hamano wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
Convert struct object to object_id
It seems that the last one didn't make it...
It appears
On Wed, Jun 10, 2015 at 03:50:32PM -0700, Junio C Hamano wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
Convert struct object to object_id
It seems that the last one didn't make it...
It appears the mail was too large for vger. Unfortunately for
bisectability reasons
Convert this function to use struct object_id. Express several
hardcoded constants in terms of GIT_SHA1_HEXSZ.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/fetch-pack.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/builtin/fetch
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
transport-helper.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/transport-helper.c b/transport-helper.c
index 4ca3e80..1f28b82 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -877,13
Replace an unsigned char array with struct object_id and express several
hard-coded constants in terms of GIT_SHA1_HEXSZ.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
connect.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git
Use struct object_id in three fields in struct ref and convert all the
necessary places that use it.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/clone.c| 16 +++---
builtin/fetch-pack.c | 4 ++--
builtin/fetch.c| 50
Add has_object_file, which is a wrapper around has_sha1_file, but for
struct object_id.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
cache.h | 3 +++
sha1_file.c | 5 +
2 files changed, 8 insertions(+)
diff --git a/cache.h b/cache.h
index 571c98f..fa1f067 100644
Convert the parse_fetch function to use struct object_id. Remove the
strlen check as get_oid_hex will fail safely on receiving a too-short
NUL-terminated string.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
remote-curl.c | 12 ++--
1 file changed, 6 insertions(+), 6
Convert several internal functions in refs.c to use struct object_id,
and use the GIT_SHA1_HEXSZ constants in parse_ref_line.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 104 -
1 file changed, 52
this. :-)
brian m. carlson (10):
refs: convert some internal functions to use object_id
sha1_file: introduce has_object_file helper.
Convert struct ref to use object_id.
add_sought_entry_mem: convert to struct object_id
parse_fetch: convert to use struct object_id
get_remote_heads
Convert ref_newer and its caller to use struct object_id instead of
unsigned char *.
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/remote.c | 2 +-
http-push.c | 4 ++--
remote.c | 8
remote.h | 2 +-
4 files changed, 8 insertions(+), 8
On Wed, Jun 10, 2015 at 05:21:33PM -0700, Junio C Hamano wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
[0] https://github.com/bk2204/git.git object-id-part2
No approach other than just letting reviewers fetch from there and
taking a look is reasonable, I would think.
Did
the necessary flags.
Reported-by: Bruce Korb bruce.k...@gmail.com
Diagnosed-by: Christian Couder christian.cou...@gmail.com
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/log.c | 6 ++
t/t4014-format-patch.sh | 10 ++
2 files changed, 16 insertions(+)
diff
wasn't aware of
test_line_count.
I'll reroll the patch later today.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
machinery, but
dereferencing. Otherwise, looks exactly like what I would have
written in my reroll had you not gotten to it before me.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC
On Tue, May 26, 2015 at 10:37:29AM -0700, Stefan Beller wrote:
On Mon, May 25, 2015 at 12:40 PM, brian m. carlson
sand...@crustytoothpaste.net wrote:
On Mon, May 25, 2015 at 12:34:59PM -0700, Junio C Hamano wrote:
[PATCH 01/56] was authored by you but has Michael's sign-off, which
looked
From: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
remote.c | 19 ---
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/remote.c b/remote.c
index 6d66ec1
From: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
upload-pack.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/upload-pack.c b/upload-pack.c
index 52fab23
From: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
refs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/refs.c b/refs.c
index 162760c..7515c2e 100644
From: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
revision.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/revision.c b/revision.c
index cfe3876..1d903cf
From: Michael Haggerty mhag...@alum.mit.edu
This function can be used with for_each_ref() without having to be
wrapped.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
fetch-pack.c | 11 +++
1 file changed, 7
From: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
transport.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/transport.c b/transport.c
index 58cb9ed
From: Michael Haggerty mhag...@alum.mit.edu
All of the callers of the for_each_ref family of functions have now
been rewritten to work with object_ids, so this adapter is no longer
needed.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand
401 - 500 of 2261 matches
Mail list logo