less ignorance of submodules for ignore=all
Get series with b4
b4 am 20131204221659.GA7326@sandbox-ubVersions newest first
- v1 Latest4 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | disable complete ignorance of submodules for index <-> HEAD diffbuiltin/ diff-lib.c diff.h +4 more | +35 | 0 replies | |
| 2/4 | fix 'git add' to skip submodules configured as ignoredbuiltin/ | +6 | 0 replies | |
| 3/4 | teach add -f option for ignored submodulesbuiltin/ submodule.c submodule.h | +48 | 2 replies | |
| 4/4 | always show committed submodules in summary after commitbuiltin/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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