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

Re: What's cooking in git.git (topics)

From
Junio C Hamano <junkio@cox.net>
Date
Mar 13, 2007, 19:48 UTC
Message-ID
<7vd53cj55n.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070313174304.GA2540@moooo.ath.cx>
Matthias Lederhofer <matled@gmx.net> writes:
Show 18 quoted lines
> Here is what I thought about:
>
> check that --work-dir overrides $GIT_WORK_DIR and both override
> $GIT_DIR/workdir.
>
> use a correct and an invalid path for:
>     $GIT_DIR/workdir:
>         file containing a relative and an absolute path
>         symlink pointing to an invalid path, a directory, a file
>         test a symlink to something else (e.g. device, fifo, ..) too?
>         directory
>     $GIT_WORK_DIR: relative and absolute path
>     and test what git does with git-rev-parse
>             --is-bare-repository
>             --show-prefix
>             --show-cdup
>
> test git rev-parse --is-inside-git-dir

... and do the rev-parse test with *and* *without* $GIT_WORK_DIR or $GIT_DIR/workdir to make sure there won't be any regressions.

Show 6 quoted lines
> A symlink pointing to an invalid path is currently handled as if there
> is no $GIT_DIR/workdir at all because stat returns ENOENT.  Is this ok
> or should git complain like it does for an invalid path when
> $GIT_DIR/workdir is a file?  We could also decide to ignore all
> invalid workdir settings and handle this the same as being outside the
> workdir.

Silently ignoring would leave the user who misconfigured it by mistake.

By the way, why should it be $GIT_DIR/workdir when it appears everybody is putting things in $GIT_DIR/config? Shouldn't it be something like:

	[core]
        	worktree = "/path/to/the/working/tree"

And more importantly, why nobody mentioned the above so far? Maybe it is a sign that nobody is interested in this new feature?

Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 15 of 28 in “What's cooking in git.git (topics)”
  1. Junio C HamanoFeb 20, 2007
  2. Eric WongFeb 20, 2007
  3. Junio C HamanoFeb 20, 2007
  4. Alexander LitvinovFeb 20, 2007
  5. Junio C HamanoFeb 23, 2007
  6. Johannes SchindelinFeb 23, 2007
  7. Junio C HamanoFeb 23, 2007
  8. Junio C HamanoMar 4, 2007
  9. Johannes SchindelinMar 4, 2007
  10. Linus TorvaldsMar 4, 2007
  11. Junio C HamanoMar 4, 2007
  12. Marco CostalbaMar 4, 2007
  13. Junio C HamanoMar 13, 2007
  14. Matthias LederhoferMar 13, 2007
  15. Junio C HamanoMar 13, 2007
  16. Matthias LederhoferMar 13, 2007
  17. Julian PhillipsMar 13, 2007
  18. Junio C HamanoMar 13, 2007
  19. Santi BéjarMar 13, 2007
  20. Junio C HamanoMar 14, 2007
  21. Santi BéjarMar 14, 2007
  22. Junio C HamanoMar 25, 2007
  23. Johannes SchindelinMar 25, 2007
  24. Junio C HamanoMar 25, 2007
  25. Johannes SchindelinMar 25, 2007
  26. Florian WeimerMar 26, 2007
  27. Junio C HamanoMar 26, 2007
  28. Document git-log --first-parentJunio C Hamano, Mar 27, 2007

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.