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

Re: [PATCHv1 2/2] git-p4: add option to disable syncing of p4/master with p4

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 5, 2018, 08:47 UTC
Message-ID
<CAPig+cQH1n+c2sNijPBKTG2tGDYEWjBz_PUoWREQh8y9tG4a-Q@mail.gmail.com>
In-Reply-To
<20180605082854.17090-3-luke@diamand.org>
On Tue, Jun 5, 2018 at 4:29 AM Luke Diamand <luke@diamand.org> wrote:
Show 14 quoted lines
> Add an option to the git-p4 submit command to disable syncing
> with Perforce.
>
> This is useful for the case where a git-p4 mirror has been setup
> on a server somewhere, running from (e.g.) cron, and developers
> then clone from this. Having the local cloned copy also sync
> from Perforce just isn't useful.
>
> Signed-off-by: Luke Diamand <luke@diamand.org>
> ---
> diff --git a/Documentation/git-p4.txt b/Documentation/git-p4.txt
> @@ -369,6 +369,11 @@ These options can be used to modify 'git p4 submit' behavior.
> +--disable-p4sync::
> +    Disable the automatic sync of p4/master from Perforce after commit have
s/commit/commits/
Show 6 quoted lines
> +    been submitted. Implies --disable-rebase. Can also be set with
> +    git-p4.disableP4Sync. Sync with origin/master still goes ahead if possible.
> diff --git a/git-p4.py b/git-p4.py
> @@ -1368,7 +1368,9 @@ def __init__(self):
> +                optparse.make_option("--disable-p4sync", dest="disable_p4sync", action="store_true",
> +                                     help="Skip perforce sync of p4/master after submit or shelve"),
s/perforce/Perforce/
Previous: Luke Diamand
Message 4 of 4 in “[PATCHv1 0/2] git-p4: disable sync after submit”
  1. Luke DiamandJun 5, 2018
  2. 1/2 git-p4: disable-rebase: allow setting this via configurationLuke Diamand, Jun 5, 2018
  3. 2/2 git-p4: add option to disable syncing of p4/master with p4Luke Diamand, Jun 5, 2018
  4. Eric SunshineJun 5, 2018

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.