git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Use string_lists when processing notes
@ 2012-11-04  7:07 Michael Haggerty
  2012-11-04  7:07 ` [PATCH 1/5] string_list: add a function string_list_remove_empty_items() Michael Haggerty
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Michael Haggerty @ 2012-11-04  7:07 UTC (permalink / raw)
  To: Jeff King; +Cc: Junio C Hamano, git, Michael Haggerty

This simplifies the code.  Also, sort lines all at once (O(N lg N))
rather than insertion sorting as lines are processed (O(N^2)) and fix
the handling of empty values in GIT_NOTES_DISPLAY_REF and
GIT_NOTES_REWRITE_REF.

Michael Haggerty (5):
  string_list: add a function string_list_remove_empty_items()
  Initialize sort_uniq_list using named constant
  combine_notes_cat_sort_uniq(): sort and dedup lines all at once
  notes: fix handling of colon-separated values
  string_list_add_refs_from_colon_sep(): use string_list_split()

 Documentation/technical/api-string-list.txt |  9 ++++-
 notes.c                                     | 61 ++++++++++++-----------------
 string-list.c                               |  9 +++++
 string-list.h                               |  7 ++++
 4 files changed, 49 insertions(+), 37 deletions(-)

-- 
1.8.0

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

end of thread, other threads:[~2012-11-06 14:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04  7:07 [PATCH 0/5] Use string_lists when processing notes Michael Haggerty
2012-11-04  7:07 ` [PATCH 1/5] string_list: add a function string_list_remove_empty_items() Michael Haggerty
2012-11-04  7:07 ` [PATCH 2/5] Initialize sort_uniq_list using named constant Michael Haggerty
2012-11-04  7:07 ` [PATCH 3/5] combine_notes_cat_sort_uniq(): sort and dedup lines all at once Michael Haggerty
2012-11-04  7:07 ` [PATCH 4/5] notes: fix handling of colon-separated values Michael Haggerty
2012-11-04  7:07 ` [PATCH 5/5] string_list_add_refs_from_colon_sep(): use string_list_split() Michael Haggerty
2012-11-04 11:57   ` Jeff King
     [not found] ` <CALKQrgebzH5vJUQVNxTks0Nq_3OZBWrb-cLDkABxnGJJqfB7gQ@mail.gmail.com>
     [not found]   ` <5098C29A.4010901@alum.mit.edu>
2012-11-06 14:20     ` [PATCH 0/5] Use string_lists when processing notes Johan Herland

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).