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
---
log-tree.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/log-tree.c b/log-tree.c
index abf5cc3..01beb11
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
---
walker.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/walker.c b/walker.c
index bb2e0b9..44a936c
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
---
replace_object.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/replace_object.c b/replace_object.c
index
From: Michael Haggerty mhag...@alum.mit.edu
Now that the function is not being used as an each_ref_sha1_fn, we can
delete the unused arguments in its signature.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
fetch-pack.c | 6
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
---
log-tree.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/log-tree.c b/log-tree.c
index 1a0e170
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/upload-pack.c b/upload-pack.c
index 96dbedc
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 | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/refs.c b/refs.c
index 7515c2e
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 | 32 ++--
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/upload-pack.c b
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
---
fetch-pack.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/fetch-pack.c b/fetch-pack.c
index
From: Michael Haggerty mhag...@alum.mit.edu
Now that the function is not being used as an each_ref_sha1_fn, we can
delete the unused arguments in its signature.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
fetch-pack.c | 6
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
---
submodule.c | 22 +++---
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/submodule.c b/submodule.c
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
---
help.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/help.c b/help.c
index f813093..6f3415b 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
---
upload-pack.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/upload-pack.c b/upload-pack.c
index 929284f
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 | 10 +++---
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
---
sha1_name.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/sha1_name.c b/sha1_name.c
index 1aad0a322
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 | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/transport.c b/transport.c
index df87386
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
---
reachable.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/reachable.c b/reachable.c
index acac86a
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
---
refs.c | 44 ++--
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/refs.c b/refs.c
index 8480d8d..9ca4651 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
---
builtin/show-ref.c | 33 +++--
1 file changed, 15 insertions(+), 18 deletions(-)
diff --git a/builtin
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
---
builtin/remote.c | 21 -
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/builtin/remote.c b/builtin
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
---
builtin/reflog.c | 16 ++--
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/builtin/reflog.c b/builtin
From: Michael Haggerty mhag...@alum.mit.edu
We need to convert the SHA-1 to hexadecimal before printing it.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/show-branch.c | 2 +-
1 file changed, 1 insertion(+), 1
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
---
server-info.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/server-info.c b/server-info.c
index
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
---
builtin/fsck.c | 29 +
1 file changed, 13 insertions(+), 16 deletions(-)
diff --git a/builtin/fsck.c b
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
---
http-backend.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/http-backend.c b/http-backend.c
index a2d388d
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
---
shallow.c | 29 +++--
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/shallow.c b/shallow.c
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
---
builtin/receive-pack.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/builtin/receive-pack.c b/builtin
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
---
http-backend.c | 23 +--
1 file changed, 9 insertions(+), 14 deletions(-)
diff --git a/http-backend.c b/http
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
---
builtin/for-each-ref.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/builtin/for-each-ref.c b/builtin
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
---
builtin/show-ref.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin/show-ref.c b/builtin/show-ref.c
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
---
builtin/branch.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/builtin/branch.c b/builtin/branch.c
index
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
---
builtin/show-branch.c | 35 +--
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git
check for certain.
So technically, although I wrote it, I also received it from him without
changing it, so both (a) and (c) of the DCO apply.
--
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
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
---
builtin/fetch.c | 23 +++
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/builtin/fetch.c b
From: Michael Haggerty mhag...@alum.mit.edu
They were never used.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/remote.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/builtin/remote.c b
of it consists of simple,
mechanical changes to the sites that call any of the for_each_ref
family of functions. Subsequent to this change, the call sites can be
rewritten one by one to use the new interface.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand
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
---
builtin/show-branch.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/builtin/show-branch.c b
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 | 35 +--
1 file changed, 9 insertions(+), 26 deletions(-)
diff --git a/revision.c b
From: Michael Haggerty mhag...@alum.mit.edu
Rewrite to take an object_id argument and convert the local variable
peeled object_id.
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu
Signed-off-by: brian m. carlson sand...@crustytoothpaste.net
---
builtin/describe.c | 16 +++-
1
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
---
notes.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/notes.c b/notes.c
index baa1c41..df08209 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
---
builtin/rev-parse.c | 41 +
1 file changed, 17 insertions(+), 24 deletions(-)
diff --git
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
---
builtin/show-branch.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin/show-branch.c b/builtin/show
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
---
builtin/checkout.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/builtin/checkout.c b/builtin/checkout.c
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
---
builtin/remote.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/builtin/remote.c b/builtin/remote.c
index
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
---
builtin/name-rev.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/builtin/name-rev.c b/builtin/name
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
---
builtin/pack-objects.c | 26 ++
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/builtin/pack
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
---
builtin/replace.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/builtin/replace.c b/builtin
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
---
builtin/tag.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/builtin/tag.c b/builtin/tag.c
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
---
bisect.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/bisect.c b/bisect.c
index 0848d91..03d5cd9
rev_list_insert_ref(): remove unneeded arguments
each_ref_fn_adapter(): remove adapter
warn_if_dangling_symref(): convert local variable junk to object_id
struct ref_lock: convert old_sha1 member to object_id
brian m. carlson (1):
refs: convert struct ref_entry to use struct object_id
Documentation
On Mon, May 25, 2015 at 04:27:40PM -0700, Junio C Hamano wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
My use case is determining whether a patch to a pristine-tar
repository introduced trailing whitespace (which is not okay) or
just left it there (which is okay).
In your
want to insert works before like so that it's a complete
sentence.
+ of a patch (i.e. those preceeded with a '-') (not enabled by default)
I believe this should be preceded.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My
less painful (e.g. a
reroll or such)? If waiting is the best technique, that's fine; I just
want to minimize the impact of this change in terms of other code and
maintainer burden.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My
only PLAIN and GSSAPI available
server-side, and AUTH is required.)
It may be better to simply force the text to upper case, as that would
allow us not to have to change Git if Authen::SASL::Perl implements new
mechanisms.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623
the ones
to use the GIT_SHA1_* constants, because it's very easy to get
off-by-one errors in there or mess up the values such that things break.
Extra effort on those, or additional suggestions on how to make them
cleaner and less brittle, both now and in the future, would be welcome.
--
brian m. carlson
On Thu, Jul 30, 2015 at 11:58:05AM +0200, Matthieu Moy wrote:
brian m. carlson sand...@crustytoothpaste.net writes:
On Mon, Jul 27, 2015 at 02:23:04PM -0700, Junio C Hamano wrote:
* bc/object-id (2015-06-17) 10 commits
Is there anything I can do to make this series less painful (e.g
.
--
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
) properly on shared drives, and if not, would this patch help it
do so? I can imagine that perhaps SMB doesn't support the necessary
operations to make a POSIX link(2) work properly.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My
://bugs.debian.org/790316
--
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
/;
rewritePrefix=.//
rewriteSystem
systemIdStartString=http://docbook.sourceforge.net/release/xsl/current/;
rewritePrefix=.//
I don't know how your system is configured, so I can't tell you what
entries would be correct. You might ask in an appropriate user forum
for Homebrew.
--
brian m. carlson / brian
to discover all of
that information trivially (and maybe even then, due to compatibility
with older versions of git), people are going to poke around those
directories.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
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
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
instead, are not converted.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
archive.c| 6 +++---
bisect.c | 6 +++---
branch.c | 2 +-
builtin/blame.c | 24 ++---
builtin/branch.c | 2 +-
b
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
Convert all instances of get_object_hash to use an appropriate reference
to the hash member of the oid member of struct object. This provides no
functional change, as it is essentially a macro substitution.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
The script used
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 3ba0b8f3..27bc121b
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 91cb0e72..0eb3cf01 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -
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
Convert several unsigned char arrays to use struct object_id instead,
and change hard-coded 40-based constants to use GIT_SHA1_HEXSZ as well.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
remote.c | 58 +-
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 inse
This macro is a temporary change to ease the transition of struct object
to use struct object_id. It takes an argument of struct object and
returns the object's hash. Provide this hash next to struct object for
easier conversion.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.
the first patch.
* Re-run the script to expand get_object_hash.
brian m. carlson (12):
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
optionally freshens the object. It's trivial
to implement freshening and simple checking by tweaking a
single parameter.
Signed-off-by: Jeff King <p...@peff.net>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
Perhaps implementing a backup strategy based on content instead of mt
On Tue, Oct 13, 2015 at 01:43:30PM +0200, Michael Haggerty wrote:
> On 10/09/2015 03:43 AM, brian m. carlson wrote:
> > 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
operations.
>
> Given this, would a trivial patch to remove the freshening of packfiles
> be acceptable?
I'm not familiar enough with the code to say for certain, but it looks
like you're right. Peff, Junio, do you think this is safe, or is there
something we're missing?
--
brian m.
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
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 chang
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 752031e8..61a686e3
struct object is one of the major data structures dealing with object
IDs. Convert it to use struct object_id instead of an unsigned char
array. Convert get_object_hash to refer to the new member as well.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
bi
Convert several unsigned char arrays to use struct object_id instead,
and change hard-coded 40-based constants to use GIT_SHA1_HEXSZ as well.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
remote.c | 64
Convert all instances of get_object_hash to use an appropriate reference
to the hash member of the oid member of struct object. This provides no
functional change, as it is essentially a macro substitution.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
Implemented en
instead, are not converted.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
This does not follow a hard and fast rule, but the goal was to keep the
changes down between both this patch and the following. *Generally*,
things I was going to convert in the next patch I didn't c
patches.
brian m. carlson (13):
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
This macro is a temporary change to ease the transition of struct object
to use struct object_id. It takes an argument of struct object and
returns the object's hash. Provide this hash next to struct object for
easier conversion.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.
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
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
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 inse
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
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 91cb0e72..0eb3cf01 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -
d suggest sending the patch as
specified in Documentation/SubmittingPatches, and it's likely Junio will
pick it up.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552
eleted, but new files you have not told Git about
are not affected.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: PGP signature
the documentation for PHP. The libcurl documentation[0]
doesn't mention a limitation.
[0] http://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html
--
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
likely to undergo a lot of
changes, I'll try to keep away from it for now, but it will need to be
converted at some point.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196
On Sun, Dec 06, 2015 at 06:49:14PM -0800, Junio C Hamano wrote:
> "brian m. carlson" <sand...@crustytoothpaste.net> writes:
>
> > git format-patch is often used to create patches that are then stored in
> > version control or displayed with diff. Having the c
hing like this:
Jagan Teki <a...@abc.com> Jagannadha Teki <x...@xynz.com>
Jagan Teki <a...@abc.com> Jagannadha Sutradharudu Teki <p...@pqr.com>
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My op
null_oid is the struct object_id equivalent to null_sha1.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
cache.h | 1 +
sha1_file.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/cache.h b/cache.h
index 5ab6cb50..c63fcc11 100644
--- a/cache.h
+++ b/c
hat the latter made more sense as
an option in struct rev_info, as it's strictly more accurate, while the
former is less accurate but more friendly to humans. Of course, this
can be changed if reviewers feel it to be undesirable.
brian m. carlson (2):
Introduce a null_oid constant.
format-pa
to avoid this diff noise.
Signed-off-by: brian m. carlson <sand...@crustytoothpaste.net>
---
Documentation/git-format-patch.txt | 4
builtin/log.c | 5 +
log-tree.c | 3 ++-
revision.h | 1 +
t/t4014-format-pa
d git-rebase--interactive as well. I'm sure I'm not
the only person who frequently uses rebase -m.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 22
501 - 600 of 2261 matches
Mail list logo