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

Re: [GIT-P4] usage under Windows

From
Marius Storm-Olsen <marius@trolltech.com>
Date
Feb 27, 2008, 22:32 UTC
Message-ID
<47C5E4EC.1060003@trolltech.com>
In-Reply-To
<96c268400802212244g7fd2de2bj6c1b7022885c8e89@mail.gmail.com>
Maxim Gordienko wrote:
> What are best practices to use git-p4 under windows?
> What p4 client should i use, native or cygwin one? Is any special
> perforce client configuration required?
 > What python distribution is preferred, included in cygwin or active 
python?

Depends on what your system is. Are you using Git under Cygwin or MSys? If you're using Cygwin normally, it's probably wise to use the cygwin version of perforce too.

Here's what I do:
     1) Use MSys Git. It's faster. (http://code.google.com/p/msysgit/)
     2) Use native Perforce. It's faster.
     3) Get Python from python.org. There's a binary installer.
> Where i need to put imported directory under perforce client' root or
> in any other place?

In perforce create your client spec somewhere where you don't see it. You never need to touch these files, but they are needed to be able to submit back to the perforce depot, if you need that. For cloning a perforce depot, you don't need a checkout (git-p4 used 'p4 print' to get the files directly)

Keep in mind to always rebase your patches before submitting back to a 
Perforce depot, since merges can be represented properly. So, a good 
work practice is to
    1) Clone perforce branch
    2) work, work, commit, work, commit...
    3) git p4 rebase
    4) git p4 submit
Good luck!

-- .marius

Previous: Maxim GordienkoNext: Maxim Gordienko
Message 2 of 9 in “[GIT-P4] usage under Windows”
  1. Maxim GordienkoFeb 22, 2008
  2. Marius Storm-OlsenFeb 27, 2008
  3. Maxim GordienkoFeb 29, 2008
  4. Marius Storm-OlsenFeb 29, 2008
  5. Maxim GordienkoMar 1, 2008
  6. Marius Storm-OlsenMar 1, 2008
  7. Tor Arvid LundMar 1, 2008
  8. Marius Storm-OlsenMar 1, 2008
  9. Maxim GordienkoMar 3, 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.