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

Re: [PATCH] branch: optionally setup branch.*.merge from upstream local branches

From
Alex Riesen <raa.lkml@gmail.com>
Date
Feb 20, 2008, 00:13 UTC
Message-ID
<20080220001339.GA16574@steel.home>
In-Reply-To
<76718490802190549p549a34afo913efefebaf5fa97@mail.gmail.com>
Jay Soffian, Tue, Feb 19, 2008 14:49:17 +0100:
Show 10 quoted lines
> On Feb 19, 2008 2:44 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
> > Jay Soffian, Tue, Feb 19, 2008 03:07:12 +0100:
> > > +enum branch_track {
> > > +     BRANCH_TRACK_NEVER = 0,
> >
> > enums start at 0 anyway, don't they?
> 
> I don't know, but guys, give me a break on the enums already. What's
> the preferred syntax already because the existing code is not
> consistent:

Well, it could also mean that there is no rules yet, and you can do the next sane thing of your choice.

Show 13 quoted lines
> enum color_branch {
> 	COLOR_BRANCH_RESET = 0,
> 	COLOR_BRANCH_PLAIN = 1,
> 	COLOR_BRANCH_REMOTE = 2,
> 	COLOR_BRANCH_LOCAL = 3,
> 	COLOR_BRANCH_CURRENT = 4,
> };
>
> enum {
> 	TAGS_UNSET = 0,
> 	TAGS_DEFAULT = 1,
> 	TAGS_SET = 2
> };

Which is just as useless. It is not useful even for documentation, as the verbatim values are not used anywere else (i.e. they are not a part of file format, where they could stand out as the numbers listed).

It looks like someone was just too paranoid or suffered a mental damage from too long exposure to proprietary code.

Show 14 quoted lines
> enum update_mode { BOTH = 0, WORKING_DIRECTORY, INDEX } *modes;
> 
> enum exist_status {
> 	index_nonexistent = 0,
> 	index_directory,
> 	index_gitdir,
> };
> 
> enum CAPABILITY {
> 	NOLOGIN = 0,
> 	UIDPLUS,
> 	LITERALPLUS,
> 	NAMESPACE,
> };
All the same...
Previous: Johannes SchindelinNext: Junio C Hamano
Message 12 of 14 in “branch: optionally setup branch.*.merge from upstream local branches”
  1. branch: optionally setup branch.*.merge from upstream local branchesJay Soffian, Feb 19, 2008
  2. Jay SoffianFeb 19, 2008
  3. Johannes SchindelinFeb 19, 2008
  4. Jay SoffianFeb 19, 2008
  5. Jay SoffianFeb 19, 2008
  6. Johannes SchindelinFeb 19, 2008
  7. Junio C HamanoFeb 19, 2008
  8. Jay SoffianFeb 19, 2008
  9. Alex RiesenFeb 19, 2008
  10. Jay SoffianFeb 19, 2008
  11. Johannes SchindelinFeb 19, 2008
  12. Alex RiesenFeb 20, 2008
  13. Junio C HamanoFeb 20, 2008
  14. Junio C HamanoFeb 20, 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.