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

Re: Fwd: git p4: feature request - branch check filtering

From
PWPete Wyckoff <pw@padd.com>
Date
Apr 23, 2014, 19:46 UTC
Message-ID
<20140423194635.GA19597@padd.com>
In-Reply-To
<CADtnS+w9q0dmnGsZoDr12GZ-RSZzcfPs6rfii-4eK7Hhn2byag@mail.gmail.com>
dpreid@gmail.com wrote on Tue, 22 Apr 2014 10:29 +0100:
Show 18 quoted lines
> There is a patch viewable at this link:
> https://github.com/Stealthii/git/commit/f7a2e611262fd977ac99e066872d3d0743b7df3c
> 
> For the use case this works perfectly - if I define branch mappings
> with git config, followed by setting 'git-p4.skipBranchScan' to true,
> git-p4 will skip scanning of all remote branches and limit to what's
> defined in the map.  An example config:
> 
> [git-p4]
>         skipBranchScan = true
>         branchList = release_1.0.0:release_1.1.0
>         branchList = release_1.1.0:release_1.2.0
> 
> If there is any more information I need to provide let me know. I have
> been using this patch for over two months, testing both use cases with
> and without git-p4.skipBranchScan and I have noticed no issues.  Logic
> of git-p4 is not changed from default behaviour, unless the user
> explicitly sets the boolean flag to skip scanning.

Thanks, Dan. This looks good and is a fine compromise considering the various choices we discussed earlier.

Junio's comments about 2.0 non-withstanding, I think this change should go into the next convenient release. So 2.1 or 2.0.1; however the numbers end up working post-2.0.

If you could take a look at Documentation/SubmittingPatches, and do a few things:

    1.  Write a nice commit message, say:
	git p4: add skipBranchScan to avoid p4 branch scan
	Some more useful text.
    2.  Include at the bottom of that message:
	Acked-by: Pete Wyckoff <pw@padd.com>
    3.  Inline the text of your patch, not just a link to github.
    4.  Consider adding a t98xx test.  This isn't required for
	a fairly minor change like yours, but if you think TDD
	is fun, have at it.  Might protect your feature against
	future hackers who would try to break it.  :)

Then send it to vger, cc junio (and me), and he will be kind enough to queue it up appropriately.

Thanks!
		-- Pete
Previous: Junio C Hamano
Message 5 of 5 in “Fwd: git p4: feature request - branch check filtering”
  1. Dan PorterFeb 18, 2014
  2. Pete WyckoffFeb 23, 2014
  3. Dan PorterApr 22, 2014
  4. Junio C HamanoApr 22, 2014
  5. Pete WyckoffApr 23, 2014

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.