Skip to content

convert ls-files internals to pass around an index

Brandon Williams git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17convert: convert get_cached_convert_stats_ascii to take an indexbuiltin/ls-files.c convert.c convert.h+9 -40 replies
2/17convert: convert crlf_to_git to take an indexconvert.c+8 -60 replies
3/17convert: convert convert_to_git_filter_fd to take an indexconvert.c convert.h sha1_file.c+6 -40 replies
4/17convert: convert convert_to_git to take an indexapply.c blame.c combine-diff.c +5 more+18 -150 replies
5/17convert: convert renormalize_buffer to take an indexconvert.c convert.h ll-merge.c +1 more+9 -60 replies
6/17tree: convert read_tree to take an index parameterbuiltin/ls-files.c tree.c tree.h+21 -120 replies
7/17ls-files: convert overlay_tree_on_cache to take an indexbuiltin/commit.c builtin/ls-files.c cache.h+12 -90 replies
8/17ls-files: convert write_eolinfo to take an indexbuiltin/ls-files.c+6 -70 replies
9/17ls-files: convert show_killed_files to take an indexbuiltin/ls-files.c+11 -100 replies
10/17ls-files: convert show_other_files to take an indexbuiltin/ls-files.c+4 -30 replies
11/17ls-files: convert show_ru_info to take an indexbuiltin/ls-files.c+4 -40 replies
12/17ls-files: convert ce_excluded to take an indexbuiltin/ls-files.c+5 -40 replies
13/17ls-files: convert prune_cache to take an indexbuiltin/ls-files.c+8 -70 replies
14/17ls-files: convert show_ce_entry to take an indexbuiltin/ls-files.c+6 -50 replies
15/17ls-files: convert show_files to take an indexbuiltin/ls-files.c+15 -150 replies
16/17ls-files: factor out debug info into a functionbuiltin/ls-files.c+14 -90 replies
17/17ls-files: factor out tag calculationbuiltin/ls-files.c+25 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] convert ls-files internals to pass around an index

This is the second chunk of patches I want to carve off of my 'repository object' series. As you can see its 17 patches long so by eliminating this the repository series shrinks by a considerable amount.

The point of this series is to stop having some of the internals of ls-files (and subsequent library routines) from implicitly referencing 'the_index'. Instead a pointer to an 'index_state' struct is passed around and operated on. This is a preparatory step to enabling ls-files to able to recurse submodule in-process. They other step being the actual introduction of a repository object.

Brandon Williams (17):
convert: convert get_cached_convert_stats_ascii to take an index
convert: convert crlf_to_git to take an index
convert: convert convert_to_git_filter_fd to take an index
convert: convert convert_to_git to take an index
convert: convert renormalize_buffer to take an index
tree: convert read_tree to take an index parameter
ls-files: convert overlay_tree_on_cache to take an index
ls-files: convert write_eolinfo to take an index
ls-files: convert show_killed_files to take an index
ls-files: convert show_other_files to take an index
ls-files: convert show_ru_info to take an index
ls-files: convert ce_excluded to take an index
ls-files: convert prune_cache to take an index
ls-files: convert show_ce_entry to take an index
ls-files: convert show_files to take an index
ls-files: factor out debug info into a function
ls-files: factor out tag calculation

 apply.c            |   2 +-
 blame.c            |   2 +-
 builtin/commit.c   |   3 +-
 builtin/ls-files.c | 178 +++++++++++++++++++++++++++++------------------------
 cache.h            |   3 +-
 combine-diff.c     |   2 +-
 convert.c          |  31 ++++++----
 convert.h          |  19 ++++--
 diff.c             |   6 +-
 dir.c              |   2 +-
 ll-merge.c         |   2 +-
 merge-recursive.c  |   4 +-
 sha1_file.c        |   6 +-
 tree.c             |  28 ++++++---
 tree.h             |   3 +-
 15 files changed, 168 insertions(+), 123 deletions(-)
Signature · 1 line
2.13.1.518.g3df882009-goog