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

Re: [RFC PATCH] hooks: add some defaults to support sane workflow to pre-commit

From
Wincent Colaiuta <win@wincent.com>
Date
Feb 20, 2009, 20:49 UTC
Message-ID
<C95EAEB9-D520-497F-BA42-0CDCC1348340@wincent.com>
In-Reply-To
<499EF2B6.7060103@hvoigt.net>
El 20/2/2009, a las 19:13, Heiko Voigt escribió:
> As far as I know all "sane" workflows involve topic branches, so
> normally a developer will never commit directly on master but use  
> topic
> branch instead and merge them into master once finished.

(Shudder... by that definition there must be a lot of insane people out there!)

I think what constitutes a "sane" workflow depends very much on the project in question, the number of developers, the collaboration model etc.

I imagine there are plenty of developers (particularly those working alone on small or private projects) for whom working directly on "master" makes a lot of sense; after all, one of the great things about distributed SCM is that what people do in their own private repos is really up to them.

And what about "topics" that are really just a single commit? A one line spelling fix, for example. Should that be done on a topic branch and merged in too?

Horses for courses. In my own projects I work on master for some things, and on topic branches for others, and I feel very sane.

Cheers, Wincent

Previous: Heiko VoigtNext: Heiko Voigt
Message 2 of 10 in “hooks: add some defaults to support sane workflow to pre-commit”
  1. hooks: add some defaults to support sane workflow to pre-commitHeiko Voigt, Feb 20, 2009
  2. Wincent ColaiutaFeb 20, 2009
  3. Heiko VoigtFeb 21, 2009
  4. Thomas RastFeb 21, 2009
  5. Heiko VoigtFeb 21, 2009
  6. Jakub NarebskiFeb 21, 2009
  7. Heiko VoigtFeb 21, 2009
  8. Heiko VoigtFeb 23, 2009
  9. Junio C HamanoOct 19, 2009
  10. Heiko VoigtOct 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.