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

Re: [PATCHv1 1/2] git-p4: support git-workspaces

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 5, 2016, 20:53 UTC
Message-ID
<xmqq8tru3xom.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20161202224319.5385-2-luke@diamand.org>
Luke Diamand <luke@diamand.org> writes:
> Teach git-p4 about git-workspaces.
Is this what we call "git worktree", or something else?
Show 23 quoted lines
>
> Signed-off-by: Luke Diamand <luke@diamand.org>
> ---
>  git-p4.py | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/git-p4.py b/git-p4.py
> index 0c4f2afd2..5e2db1919 100755
> --- a/git-p4.py
> +++ b/git-p4.py
> @@ -566,6 +566,12 @@ def isValidGitDir(path):
>      if (os.path.exists(path + "/HEAD")
>          and os.path.exists(path + "/refs") and os.path.exists(path + "/objects")):
>          return True;
> +
> +    # git workspace directory?
> +    if (os.path.exists(path + "/HEAD")
> +        and os.path.exists(path + "/gitdir")):
> +        return True
> +
>      return False
>  
>  def parseRevision(ref):
Previous: Luke DiamandNext: Luke Diamand
Message 3 of 9 in “[PATCHv1 0/2] git-p4 patches”
  1. Luke DiamandDec 2, 2016
  2. 1/2 git-p4: support git-workspacesLuke Diamand, Dec 2, 2016
  3. Junio C HamanoDec 5, 2016
  4. Luke DiamandDec 5, 2016
  5. Junio C HamanoDec 5, 2016
  6. Junio C HamanoDec 5, 2016
  7. Luke DiamandDec 5, 2016
  8. Junio C HamanoDec 5, 2016
  9. 2/2 git-p4: support updating an existing shelved changelistLuke Diamand, Dec 2, 2016

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.