git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ab/remove--super-prefix and -rc0 (was What's cooking in git.git (Nov 2022, #07; Tue, 29))

From
Glen Choo <chooglen@google.com>
Date
Dec 1, 2022, 17:44 UTC
Message-ID
<kl6la647ow7e.fsf@chooglen-macbookpro.roam.corp.google.com>
In-Reply-To
<221130.864jugi59l.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 5 quoted lines
> For my part I was waiting to see what Junio would do with
> "ab/submodule-no-abspath", which is already in "next". Depending on
> whether it's ejected or not I'd need to re-roll
> "ab/remove--super-prefix" on top of a new "master", as it extends the
> tests it added.
Thanks for the status update!
Show 7 quoted lines
> You noted in [1] that you strongly preferred seeing
> "ab/submodule-no-abspath" ejected. I think you're right that the output
> is a bit weird, but:
>
> A. I think it's mainly odd/unintuitive for the recursive cases, I think
>   outside of our own test suite absorbing repositories recursively
>   almost never happens.

Frankly, I find it odd in the non-recursive case too e.g. in one of the non-recursive tests, we have:

  Migrating git directory of '\''sub1'\'' from '\''sub1/.git'\'' to '\''../../.git/modules/sub1'\''

where all 3 paths are relative, the first two share the same base but not the last one. I don't think a casual reader can easily tell that the last one should be relative to the second one.

> B. I think it's an improvement in the output compared to the absolute
>    paths we have now, especially for the common case of non-recursive.
For the reason above, this doesn't feel like an improvement to me :/
> C. Changing it made it easier to test it, which is how it ended up as a
>    supposedly quick prerequisite for "ab/remove--super-prefix": It's
>    otherwise changing a test blindspot.
With abspaths, couldn't we test this with $PWD?
> D. As you note in [1] the data we'd need to pass around to make it
>    sensible (maybe it should always be consistent with "git mv -v"?)
>    would require passing more state around, some of which is tricky.

Yeah I think this a good to have in the long run, but let's punt on it for now.

Show 7 quoted lines
> I'd prefer to just have it graduate as-is, and build
> "ab/remove--super-prefix" on top. We can always further tweak the output
> later.
>
> But if you & Junio feel otherwise I think the best way forward would be
> to eject both topics, and I'd submit a re-rolled
> "ab/remove--super-prefix".

A re-rolled "ab/remove--super-prefix" makes sense to me. Sorry again for not voicing my thoughts sooner and saving us from this churn :(

Show 5 quoted lines
>
> Either would work as a way forward. Just let me know what you both
> prefer.
>
> 1. https://lore.kernel.org/git/kl6l7czmec10.fsf@chooglen-macbookpro.roam.corp.google.com/
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 43 in “What's cooking in git.git (Nov 2022, #07; Tue, 29)”
  1. Junio C HamanoNov 29, 2022
  2. ab/remove--super-prefix and -rc0 (was What's cooking in git.git (Nov 2022, #07; Tue, 29))Glen Choo, Nov 29, 2022
  3. Junio C HamanoNov 30, 2022
  4. Glen ChooNov 30, 2022
  5. Ævar Arnfjörð BjarmasonNov 30, 2022
  6. Junio C HamanoDec 1, 2022
  7. Glen ChooDec 1, 2022
  8. Junio C HamanoDec 1, 2022
  9. Glen ChooNov 29, 2022
  10. Junio C HamanoNov 30, 2022
  11. Glen ChooNov 30, 2022
  12. ds/bundle-uri-4 (was Re: What's cooking in git.git (Nov 2022, #07; Tue, 29))Derrick Stolee, Nov 29, 2022
  13. Derrick StoleeDec 1, 2022
  14. Junio C HamanoDec 2, 2022
  15. ab/cmake-nix-and-ci (was Re: What's cooking in git.git (Nov 2022, #07; Tue, 29))Phillip Wood, Nov 30, 2022
  16. Ævar Arnfjörð BjarmasonNov 30, 2022
  17. Phillip WoodDec 1, 2022
  18. test-lib.sh: discover "git" in subdirs of "contrib/buildsystems/out"Ævar Arnfjörð Bjarmason, Dec 1, 2022
  19. Phillip WoodDec 1, 2022
  20. Ævar Arnfjörð BjarmasonDec 1, 2022
  21. Junio C HamanoDec 1, 2022
  22. Phillip WoodDec 2, 2022
  23. Ævar Arnfjörð BjarmasonDec 2, 2022
  24. Jeff KingDec 2, 2022
  25. Junio C HamanoDec 3, 2022
  26. Ævar Arnfjörð BjarmasonDec 3, 2022
  27. Jeff KingDec 5, 2022
  28. Taylor BlauDec 5, 2022
  29. Ævar Arnfjörð BjarmasonDec 5, 2022
  30. Taylor BlauDec 6, 2022
  31. Jeff KingDec 6, 2022
  32. Ævar Arnfjörð BjarmasonDec 6, 2022
  33. Jeff KingDec 6, 2022
  34. Ævar Arnfjörð BjarmasonDec 6, 2022
  35. Junio C HamanoDec 6, 2022
  36. Phillip WoodDec 6, 2022
  37. Ævar Arnfjörð BjarmasonDec 6, 2022
  38. ab/cmake-nix-and-ci, was Re: [PATCH] test-lib.sh: discover "git" in subdirs of "contrib/buildsystems/out"Johannes Schindelin, Dec 8, 2022
  39. Ævar Arnfjörð BjarmasonDec 8, 2022
  40. Junio C HamanoDec 9, 2022
  41. Ævar Arnfjörð BjarmasonDec 9, 2022
  42. Taylor BlauDec 7, 2022
  43. Phillip WoodNov 30, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.