Skip to content

less ignorance of submodules for ignore=all

Heiko Voigt git 1 version In review

Get series with b4
b4 am 20131204221659.GA7326@sandbox-ub

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4disable complete ignorance of submodules for index <-> HEAD diffbuiltin/diff.c diff-lib.c diff.h +4 more+35 -70 replies
2/4fix 'git add' to skip submodules configured as ignoredbuiltin/add.c+6 -00 replies
3/4teach add -f option for ignored submodulesbuiltin/add.c submodule.c submodule.h+48 -122 replies
4/4always show committed submodules in summary after commitbuiltin/commit.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC/WIP PATCH 0/4] less ignorance of submodules for ignore=all

This is my current work in progress. Sergey it would be awesome if you could test these and tell me whether the behaviour is what you would expect. Once that is settled I will add some tests and possibly clean up some code.

Since nobody spoke against this change of behavior I assume that we agree on the general approach I am taking here. If not please speak up now so we can work something out and save me implementation time ;-)

Whats still missing is:

* it seems reset does not care at all about the ignore settings. It still shows a

M submodule

line even when the submodule in question was not in the index and is marked as ignored. Have not looked at the code yet.

* The git diff $commit question Junio mentioned here[1] it does not yet show diffs of ignore=all submodules.

For testing convenience you can also find all patches applied to Junio's current master here:

https://github.com/hvoigt/git/commits/hv/fix_ignore_all_submodules

Cheers Heiko

Heiko Voigt (4):
disable complete ignorance of submodules for index <-> HEAD diff fix 'git add' to skip submodules configured as ignored teach add -f option for ignored submodules
always show committed submodules in summary after commit

 builtin/add.c             | 55 ++++++++++++++++++++++++++++++++++++-----------
 builtin/commit.c          |  1 +
 builtin/diff.c            |  2 ++
 diff-lib.c                |  3 +++
 diff.h                    |  2 +-
 submodule.c               | 26 ++++++++++++++++++++--
 submodule.h               |  2 ++
 t/t4027-diff-submodule.sh | 12 ++++++++---
 t/t7508-status.sh         |  6 +++++-
 9 files changed, 90 insertions(+), 19 deletions(-)
Signature · 1 line
1.8.5.1.43.gf00fb86