Skip to content

short status: improve reporting for submodule changes

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

v4 from the cover letter

* broken down in a lot of tiny patches.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8submodule.c: port is_submodule_modified to use porcelain 2submodule.c+24 -290 replies
2/8submodule.c: use argv_array in is_submodule_modifiedsubmodule.c+21 -220 replies
3/8submodule.c: convert is_submodule_modified to use strbuf_getwholeline_fdsubmodule.c+2 -120 replies
4/8submodule.c: port is_submodule_modified to use porcelain 2submodule.c+4 -30 replies
5/8submodule.c: factor out early loop termination in is_submodule_modifiedsubmodule.c+6 -80 replies
6/8submodule.c: stricter checking for submodules in is_submodule_modifiedsubmodule.c+3 -20 replies
7/8short status: improve reporting for submodule changesDocumentation/git-status.txt t/t3600-rm.sh t/t7506-status-submodule.sh +1 more+90 -70 replies
8/8submodule.c: correctly handle nested submodules in is_submodule_modifiedsubmodule.c t/t3600-rm.sh t/t7506-status-submodule.sh+16 -40 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJonathan Nieder
SeriesR-b Helped-by R-b Helped-by R-b Helped-by R-b R-b R-b R-b R-b R-b Helped-by R-b Helped-by R-b R-b R-b Helped-by R-b Helped-by R-b R-b
1/8
2/8
3/8
4/8
5/8
6/8R-b
7/8Helped-by
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] short status: improve reporting for submodule changes

v4:
* broken down in a lot of tiny patches.

Quoted 4 lines · Jonathan

Patch 1/3 is the one that gives me pause, since I hadn't been able to chase down all callers. Would it be feasible to split that into two:
one patch to switch to --porcelain=2 but not change behavior, and a separate patch to improve what is stored in the dirty_submodule flags?

This part is in the latest patch now.

Thanks,
Stefan

v3:
This comes as a series; first I'd like to refactor is_submodule_modified to take advantage of the new porcelain=2 plumbing switch to check for changes in the submodule.

On top of the refactoring comes the actual change, which moved the rewriting of the submodule change indicator letter to the collection part.

Thanks,
Stefan

Stefan Beller (8):
submodule.c: port is_submodule_modified to use porcelain 2 submodule.c: use argv_array in is_submodule_modified submodule.c: convert is_submodule_modified to use
strbuf_getwholeline_fd
submodule.c: port is_submodule_modified to use porcelain 2 submodule.c: factor out early loop termination in
is_submodule_modified
submodule.c: stricter checking for submodules in is_submodule_modified short status: improve reporting for submodule changes submodule.c: correctly handle nested submodules in
is_submodule_modified

 Documentation/git-status.txt |  9 +++++++
 submodule.c                  | 56 ++++++++++++++++++++-----------------------
 t/t3600-rm.sh                | 18 ++++++++++----
 t/t7506-status-submodule.sh  | 57 ++++++++++++++++++++++++++++++++++++++++++++
 wt-status.c                  | 13 ++++++++--
 5 files changed, 116 insertions(+), 37 deletions(-)
Signature · 1 line
2.12.1.438.gb674c4c09c