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

Re: [PATCH v3 10/11] contrib: remove "git-new-workdir"

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 12, 2025, 22:21 UTC
Message-ID
<xmqqldmjjorv.fsf@gitster.g>
In-Reply-To
<b4628cc8-3aad-4911-bcd1-6880d7707250@gmail.com>
Gabriel Scherer <gabriel.scherer@gmail.com> writes:
> I have a naive question. 'workdir' is a script that has been around
> for a long while, and apparently causes no maintenance burden
> whatsoever.
Not free of maintenance burden, unfortunately.

The "git worktree" was added with a clear intention that we do not want to keep the hacky "workdir" script with known limitation and sharp edges to break your history and replacing it with something more sensible. Once it has become in serviceable shape, there is no reason to spend engineering effort to see if "workdir" is still working every time the implementation of the repository on the filesystem changes, assess how much work is involved to keep it working if a change would break it, and judge if it is worth to update "workdir" to keep it working or add yet another known limitation to the list of "this hack does not work with X, Y, ...".

That has happened recently when we added the reftable support.

In short, keeping it is distracting of us, *and* of dubious value especially becauseit is not as good as its more modern replacement.

> It was removed based on the impression that nobody was
> using it

Again, not really. The true reason is more like "Nobody *should* be using it", mixed with "There is a designed replacement these days. They should learn to use it instead of that old hack".

Previous: Gabriel SchererNext: Phillip Wood
Message 20 of 25 in “Spring cleanup of "contrib/"”
  1. 00/11 Spring cleanup of "contrib/"Patrick Steinhardt, May 12, 2025
  2. 01/11 contrib: remove "remotes2config.sh"Patrick Steinhardt, May 12, 2025
  3. 02/11 contrib: remove "examples" directoryPatrick Steinhardt, May 12, 2025
  4. 03/11 contrib: remove remote-helper stubsPatrick Steinhardt, May 12, 2025
  5. 04/11 contrib: remove "thunderbird-patch-inline"Patrick Steinhardt, May 12, 2025
  6. Junio C HamanoMay 16, 2025
  7. Toon ClaesMay 26, 2025
  8. Junio C HamanoJun 4, 2025
  9. 05/11 contrib: remove "hooks" directoryPatrick Steinhardt, May 12, 2025
  10. 07/11 contrib: remove "persistent-https" remote helperPatrick Steinhardt, May 12, 2025
  11. 06/11 contrib: remove "mw-to-git"Patrick Steinhardt, May 12, 2025
  12. 08/11 contrib: remove "git-resurrect.sh"Patrick Steinhardt, May 12, 2025
  13. 09/11 contrib: remove "emacs" directoryPatrick Steinhardt, May 12, 2025
  14. 10/11 contrib: remove "git-new-workdir"Patrick Steinhardt, May 12, 2025
  15. Gabriel SchererSep 8, 2025
  16. Kristoffer HaugsbakkSep 8, 2025
  17. Gabriel SchererSep 8, 2025
  18. D. Ben KnobleSep 12, 2025
  19. Gabriel SchererSep 12, 2025
  20. Junio C HamanoSep 12, 2025
  21. Phillip WoodSep 12, 2025
  22. Junio C HamanoSep 12, 2025
  23. Junio C HamanoSep 8, 2025
  24. 11/11 contrib: remove some scripts in "stats" directoryPatrick Steinhardt, May 12, 2025
  25. Elijah NewrenMay 13, 2025

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.