submodule helper: cleanup prefix passing
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 9 repliesIn review
- v24 patches 18 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | submodule: prepare recursive path from non root directorygit-submodule.sh | +5 | 1 reply | |
| 2/5 | submodule--helper list: lose the extra prefix optionbuiltin/ git-submodule.sh | +7 | 0 replies | |
| 3/5 | submodule update: add test for recursive from non root dirt/ | +11 | 0 replies | |
| 4/5 | submodule sync: test syncing one submodulet/ | +9 | 0 replies | |
| 5/5 | submodule--helper clone: lose the extra prefix optionbuiltin/ git-submodule.sh | +3 | 8 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jacob Keller |
|---|---|
| Series | R-b |
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv3 0/5] submodule helper: cleanup prefix passing
Thanks Junio for the in-depth discussion!
I squashed the first two commits as they are actually fixing the same underlying issue. Setting wt_prefix=<empty> is the actual preparation for switching the submodule--helper to git -C instead of "--prefix$prefix".
But setting wt_prefix=empty would break existing tests, so the different computation of the prefix (relative_path of sm_path instead of plain sm_path) is the fix of the fix.
Eric, I picked up the git -C in the tests, which are broken into 2 patches and have a more concise commit message each.
Jacob, thanks for your
although I changed the code so much, that I did not put it in this series.
New in this series is the last commit, which gets rid of the prefix for "submodule--helper clone". (It was useless to begin with; probably just cargo-culted in because we had it in "submodule--helper list")
Thanks,
Stefan
Stefan Beller (5):
submodule: prepare recursive path from non root directory submodule--helper list: lose the extra prefix option submodule update: add test for recursive from non root dir submodule sync: test syncing one submodule submodule--helper clone: lose the extra prefix option
builtin/submodule--helper.c | 10 ++-------- git-submodule.sh | 23 +++++++++++++---------- t/t7403-submodule-sync.sh | 13 +++++++++---- t/t7406-submodule-update.sh | 14 +++++++++++--- 4 files changed, 35 insertions(+), 25 deletions(-)
Signature · 1 line
2.8.0.rc4.10.g52f3f33.dirty