git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 00/13] Reference iterators

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 3, 2016, 21:33 UTC
Message-ID
<xmqqporyneik.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<cover.1464957077.git.mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> This patch series applies on top of mh/split-under-lock. It can also
> be obtained from my GitHub repo [2] as branch "ref-iterators".
Ah, that reminds me.  What's the doneness of the dependent topic?
The patches in this series looked all good to me.
Show 37 quoted lines
> Michael
>
> [1] http://thread.gmane.org/gmane.comp.version-control.git/295860
> [2] https://github.com/mhagger/git
>
> Michael Haggerty (13):
>   refs: remove unnecessary "extern" keywords
>   do_for_each_ref(): move docstring to the header file
>   refs: use name "prefix" consistently
>   delete_refs(): add a flags argument
>   remote rm: handle symbolic refs correctly
>   get_ref_cache(): only create an instance if there is a submodule
>   entry_resolves_to_object(): rename function from
>     ref_resolves_to_object()
>   ref_resolves_to_object(): new function
>   refs: introduce an iterator interface
>   do_for_each_ref(): reimplement using reference iteration
>   for_each_reflog(): don't abort for bad references
>   dir_iterator: new API for iterating over a directory tree
>   for_each_reflog(): reimplement using iterators
>
>  Makefile             |   2 +
>  builtin/fetch.c      |   2 +-
>  builtin/remote.c     |   8 +-
>  dir-iterator.c       | 185 +++++++++++++++
>  dir-iterator.h       |  86 +++++++
>  iterator.h           |  81 +++++++
>  refs.c               |  20 ++
>  refs.h               | 139 +++++++-----
>  refs/files-backend.c | 629 +++++++++++++++++++++++++++++++--------------------
>  refs/iterator.c      | 384 +++++++++++++++++++++++++++++++
>  refs/refs-internal.h | 226 +++++++++++++++++-
>  11 files changed, 1440 insertions(+), 322 deletions(-)
>  create mode 100644 dir-iterator.c
>  create mode 100644 dir-iterator.h
>  create mode 100644 iterator.h
>  create mode 100644 refs/iterator.c
Previous: David TurnerNext: Michael Haggerty
Message 20 of 23 in “Reference iterators”
  1. 00/13 Reference iteratorsMichael Haggerty, Jun 3, 2016
  2. 01/13 refs: remove unnecessary "extern" keywordsMichael Haggerty, Jun 3, 2016
  3. 02/13 do_for_each_ref(): move docstring to the header fileMichael Haggerty, Jun 3, 2016
  4. 03/13 refs: use name "prefix" consistentlyMichael Haggerty, Jun 3, 2016
  5. 04/13 delete_refs(): add a flags argumentMichael Haggerty, Jun 3, 2016
  6. 05/13 remote rm: handle symbolic refs correctlyMichael Haggerty, Jun 3, 2016
  7. 06/13 get_ref_cache(): only create an instance if there is a submoduleMichael Haggerty, Jun 3, 2016
  8. 07/13 entry_resolves_to_object(): rename function from ref_resolves_to_object()Michael Haggerty, Jun 3, 2016
  9. 08/13 ref_resolves_to_object(): new functionMichael Haggerty, Jun 3, 2016
  10. 09/13 refs: introduce an iterator interfaceMichael Haggerty, Jun 3, 2016
  11. 10/13 do_for_each_ref(): reimplement using reference iterationMichael Haggerty, Jun 3, 2016
  12. 11/13 for_each_reflog(): don't abort for bad referencesMichael Haggerty, Jun 3, 2016
  13. 12/13 dir_iterator: new API for iterating over a directory treeMichael Haggerty, Jun 3, 2016
  14. Eric SunshineJun 7, 2016
  15. Michael HaggertyJun 9, 2016
  16. Michael HaggertyJun 9, 2016
  17. Junio C HamanoJun 9, 2016
  18. 13/13 for_each_reflog(): reimplement using iteratorsMichael Haggerty, Jun 3, 2016
  19. David TurnerJun 3, 2016
  20. Junio C HamanoJun 3, 2016
  21. Michael HaggertyJun 3, 2016
  22. Junio C HamanoJun 3, 2016
  23. Michael HaggertyJun 7, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.