git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/12] object_id part 2
@ 2015-11-10  2:22 brian m. carlson
  2015-11-10  2:22 ` [PATCH v4 01/12] sha1_file: introduce has_object_file helper brian m. carlson
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: brian m. carlson @ 2015-11-10  2:22 UTC (permalink / raw)
  To: git
  Cc: Jeff King, Nguyễn Thái Ngọc Duy,
	Michael Haggerty, Junio C Hamano

This is the second in a series of conversions to struct object_id.

This series converts more of the refs code and struct object to use
struct object_id.  It introduces an additional helper function,
has_object_file, which is the equivalent of has_sha1_file.  The name was
chosen to be slightly more logical than has_oid_file, although it can be
changed if desired.

This series splits out the conversion of struct object into the
introduction of a helper macro, the use of that macro in several areas,
the conversion of other struct object uses and update of the macro, and
the removal of the macro.  The final patch of that set (patch 11) was
implemented entirely by the use of a Perl script, which will be included
for inspection.

Patches 1 through 7 remain unchanged except for the rebase and the
necessary changes due to other topics.  Necessary changes were minimal.

I think this series is ready to be picked up, although I'm happy to make
changes or refinements if people have comments.

This series is also available in the object-id-part2 branch from

https://github.com/bk2204/git.git
https://git.crustytoothpaste.net/git/bmc/git.git

Changes from v3:
* Rebase on latest master.
* Drop 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 to struct object_id
  push_refs_with_export: convert to struct object_id
  ref_newer: convert to use struct object_id
  object: introduce get_object_hash macro.
  Add several uses of get_object_hash.
  Convert struct object to object_id
  Remove get_object_hash.
  remote: convert functions to struct object_id

 archive.c                |   6 +--
 bisect.c                 |  10 ++--
 branch.c                 |   2 +-
 builtin/am.c             |   2 +-
 builtin/blame.c          |  56 +++++++++++------------
 builtin/branch.c         |   2 +-
 builtin/checkout.c       |  22 ++++-----
 builtin/clone.c          |  18 ++++----
 builtin/commit-tree.c    |   4 +-
 builtin/commit.c         |   8 ++--
 builtin/describe.c       |  20 ++++----
 builtin/diff-tree.c      |  12 ++---
 builtin/diff.c           |  12 ++---
 builtin/fast-export.c    |  34 +++++++-------
 builtin/fetch-pack.c     |  14 +++---
 builtin/fetch.c          |  54 +++++++++++-----------
 builtin/fmt-merge-msg.c  |   6 +--
 builtin/fsck.c           |  36 +++++++--------
 builtin/grep.c           |   6 +--
 builtin/index-pack.c     |  10 ++--
 builtin/log.c            |  36 +++++++--------
 builtin/ls-remote.c      |   2 +-
 builtin/merge-base.c     |   8 ++--
 builtin/merge-tree.c     |   6 +--
 builtin/merge.c          |  60 ++++++++++++------------
 builtin/name-rev.c       |  12 ++---
 builtin/notes.c          |   2 +-
 builtin/pack-objects.c   |  16 +++----
 builtin/pull.c           |   2 +-
 builtin/receive-pack.c   |   2 +-
 builtin/reflog.c         |   4 +-
 builtin/remote.c         |  12 ++---
 builtin/replace.c        |   6 +--
 builtin/reset.c          |  30 ++++++------
 builtin/rev-list.c       |  18 ++++----
 builtin/rev-parse.c      |   4 +-
 builtin/shortlog.c       |   2 +-
 builtin/show-branch.c    |   8 ++--
 builtin/unpack-objects.c |  10 ++--
 builtin/worktree.c       |   2 +-
 bundle.c                 |  20 ++++----
 cache-tree.c             |   2 +-
 cache.h                  |   3 ++
 combine-diff.c           |   4 +-
 commit.c                 |  32 ++++++-------
 connect.c                |  22 +++++----
 decorate.c               |   2 +-
 diff-lib.c               |   2 +-
 fetch-pack.c             |  24 +++++-----
 fsck.c                   |  14 +++---
 http-backend.c           |   2 +-
 http-push.c              |  86 +++++++++++++++++------------------
 http.c                   |   2 +-
 line-log.c               |   6 +--
 list-objects.c           |   4 +-
 log-tree.c               |  40 ++++++++--------
 merge-blobs.c            |   4 +-
 merge-recursive.c        |  26 +++++------
 merge.c                  |   2 +-
 notes-merge.c            |  24 +++++-----
 object.c                 |   8 ++--
 object.h                 |   2 +-
 pack-bitmap-write.c      |  16 +++----
 pack-bitmap.c            |  34 +++++++-------
 patch-ids.c              |   6 +--
 pretty.c                 |  18 ++++----
 ref-filter.c             |  14 +++---
 refs.c                   |   2 +-
 remote-curl.c            |  20 ++++----
 remote.c                 | 116 +++++++++++++++++++++++------------------------
 remote.h                 |   8 ++--
 revision.c               |  48 ++++++++++----------
 send-pack.c              |  16 +++----
 sequencer.c              |  40 ++++++++--------
 server-info.c            |   2 +-
 sha1_file.c              |   5 ++
 sha1_name.c              |  20 ++++----
 shallow.c                |   6 +--
 submodule.c              |   8 ++--
 tag.c                    |  10 ++--
 test-match-trees.c       |   2 +-
 transport-helper.c       |  24 +++++-----
 transport.c              |  32 ++++++-------
 transport.h              |   8 ++--
 tree.c                   |  10 ++--
 upload-pack.c            |  26 +++++------
 walker.c                 |  18 ++++----
 wt-status.c              |   2 +-
 88 files changed, 715 insertions(+), 703 deletions(-)

-- 
2.6.2.409.gb049f0a

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-11-20 13:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-10  2:22 [PATCH v4 00/12] object_id part 2 brian m. carlson
2015-11-10  2:22 ` [PATCH v4 01/12] sha1_file: introduce has_object_file helper brian m. carlson
2015-11-10  2:22 ` [PATCH v4 02/12] Convert struct ref to use object_id brian m. carlson
2015-11-10  2:22 ` [PATCH v4 03/12] add_sought_entry_mem: convert to struct object_id brian m. carlson
2015-11-10  2:22 ` [PATCH v4 04/12] parse_fetch: convert to use " brian m. carlson
2015-11-10  2:22 ` [PATCH v4 05/12] get_remote_heads: convert to " brian m. carlson
2015-11-10  2:22 ` [PATCH v4 06/12] push_refs_with_export: " brian m. carlson
2015-11-10  2:22 ` [PATCH v4 07/12] ref_newer: convert to use " brian m. carlson
2015-11-10  2:22 ` [PATCH v4 08/12] object: introduce get_object_hash macro brian m. carlson
2015-11-10  2:22 ` [PATCH v4 09/12] Add several uses of get_object_hash brian m. carlson
2015-11-20 11:38   ` Jeff King
2015-11-20 13:00     ` brian m. carlson
2015-11-10  2:22 ` [PATCH v4 10/12] Convert struct object to object_id brian m. carlson
2015-11-10  2:22 ` [PATCH v4 11/12] Remove get_object_hash brian m. carlson
2015-11-10  2:22 ` [PATCH v4 12/12] remote: convert functions to struct object_id brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).