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

Re: [PATCH] Add platform-independent .git "symlink"

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 4, 2008, 21:31 UTC
Message-ID
<alpine.LSU.1.00.0802042128170.8543@racer.site>
In-Reply-To
<47A78104.9050909@nrlssc.navy.mil>
Hi,
On Mon, 4 Feb 2008, Brandon Casey wrote:
Show 16 quoted lines
> Johannes Schindelin wrote:
> 
> > BTW just to tell you why I am so excited with your patch: I have a 
> > patch to git-branch in my tree, which implements the git-new-workdir 
> > functionality (it's a patch to git-branch, not git-checkout, mainly 
> > because git-checkout is no builtin yet).
> 
> Are you planning something that works like:
> 
>   $ cd <my_repo>
>   $ git branch
>     * master
>       other_branch
>   $ git checkout --new-workdir ../<other_work_dir> other_branch
> 
> (not sure how it would work using git-branch).

Something like this, yes. In my local version of git, you can say "git branch --new-workdir=../bla new-branch [branch-point]".

> Have you thought about using git-clone instead?

Briefly. But this is not about cloning the repository. It is about having an additional working directory for the current repository.

> It seems a good fit but would require a new option to specify a branch 
> to checkout (which I believe is a requested feature for clone).

It is an often-requested feature for clone, but we have "clone -n" for now, and nobody seemed to care deeply enough to actually do something about it.

But really, clone is something different. I _want_ the original repository to know that there is another working directory.

Ciao, Dscho

Previous: Brandon CaseyNext: Brandon Casey
Message 12 of 29 in “Add platform-independent .git "symlink"”
  1. Add platform-independent .git "symlink"Lars Hjemli, Feb 2, 2008
  2. Add tests for .git fileLars Hjemli, Feb 2, 2008
  3. Johannes SchindelinFeb 2, 2008
  4. Lars HjemliFeb 2, 2008
  5. Add platform-independent .git "symlink"Lars Hjemli, Feb 2, 2008
  6. Johannes SchindelinFeb 2, 2008
  7. Johannes SchindelinFeb 2, 2008
  8. Shawn O. PearceFeb 4, 2008
  9. Junio C HamanoFeb 4, 2008
  10. Johannes SchindelinFeb 4, 2008
  11. Brandon CaseyFeb 4, 2008
  12. Johannes SchindelinFeb 4, 2008
  13. Brandon CaseyFeb 4, 2008
  14. Johannes SchindelinFeb 4, 2008
  15. Brandon CaseyFeb 4, 2008
  16. Brandon CaseyFeb 4, 2008
  17. Johannes SchindelinFeb 5, 2008
  18. Johannes SchindelinFeb 5, 2008
  19. Brandon CaseyFeb 5, 2008
  20. Johannes SchindelinFeb 5, 2008
  21. Lars HjemliFeb 2, 2008
  22. Johannes SchindelinFeb 3, 2008
  23. Junio C HamanoFeb 4, 2008
  24. Johannes SchindelinFeb 4, 2008
  25. Shawn O. PearceFeb 4, 2008
  26. Junio C HamanoFeb 4, 2008
  27. Shawn O. PearceFeb 4, 2008
  28. Lars HjemliFeb 4, 2008
  29. Johannes SchindelinFeb 4, 2008

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.