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

Re: [RFC] teamGIT bonjour support

From
Petr Baudis <pasky@suse.cz>
Date
Nov 20, 2009, 09:05 UTC
Message-ID
<20091120090529.GM17748@machine.or.cz>
In-Reply-To
<2fcfa6df0908280002y221a22e6md27db56865472144@mail.gmail.com>
  Hi!
On Fri, Aug 28, 2009 at 12:32:39PM +0530, Abhijit Bhopatkar wrote:
> I plan to do this on LAN using bonjour service discovery

I wonder why so much emphasis for this? It seems like a nifty convenience bit, but I don't think making this idea too central is any good. What if you get a second office at the other end of the world? What if part of your team is working on a deployment at customer site? What if part of your team works from home over a VPN? What if your team is collaborating over the internet on an open project? What if...?

That said, it sounds like a great idea to have let's say a post-commit hook that will start an upload job:

	extbranch="$(whoami)/$(git symbolic-ref HEAD | sed 's#refs/heads/##')"
	pushurl="$(melting_pot)"
	git push --force "$pushurl" "HEAD:$extbranch" >/dev/null &

(untested, +corner cases). On the server side, cronjob or post-update hook can do the integration testing. The complete setup should be a matter of few-minutes hack.

Now, it seems totally irrelevant if melting_pot is
	melting_pot() { git config teamgit.meltingpot }
or extra code that tries/caches some local discovery first.

P.S.: It's not clear if you want the information sharing with commit granularity or less - in that case, things might get rather tricky e.g. if you add new files and don't git add them until right before you commit, and the work tree state might be total mess anyway.

P.P.S.: It's not clear if you strive after complete de-centralization of the service, with no central melting pot. That would seem fancy, but I think rather useless and hard in practice to arrange your reports that you want, etc. It's not clear again then if the integration testing should happen on single machine they all vote on (samba-like), or if all machines should do integration-testing, and whether of all branches or only some of them, and how to recognize the interesting branches, and things are getting very hairy already... Your requirements are too ambiguous.

-- 
				Petr "Pasky" Baudis
A lot of people have my books on their bookshelves.
That's the problem, they need to read them. -- Don Knuth
Previous: Abhijit BhopatkarNext: Petr Baudis
Message 8 of 10 in “[RFC] teamGIT bonjour support”
  1. Abhijit BhopatkarAug 28, 2009
  2. John TapsellAug 28, 2009
  3. Abhijit BhopatkarAug 28, 2009
  4. Ben HoskingsAug 28, 2009
  5. Ben HoskingsAug 28, 2009
  6. Jakub NarebskiAug 28, 2009
  7. Abhijit BhopatkarAug 28, 2009
  8. Petr BaudisNov 20, 2009
  9. Petr BaudisNov 20, 2009
  10. Björn SteinbrinkNov 20, 2009

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.