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

Re: [EGIT PATCH] git property page for project properties.

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Oct 21, 2008, 17:50 UTC
Message-ID
<200810211950.50540.robin.rosenberg.lists@dewire.com>
In-Reply-To
<1224529604-42397-1-git-send-email-tomi.pakarinen@iki.fi>
måndagen den 20 oktober 2008 21.06.44 skrev Tomi Pakarinen:
>  Show git property page in project's properties, if project
> has git repository provider.
[...]
Show 20 quoted lines
> +		switch (repository.getRepositoryState()) {
> +		case BISECTING:
> +			state.setText("Bisecting");
> +			break;
> +		case MERGING:
> +			state.setText("Merging");
> +			break;
> +		case REBASING:
> +			state.setText("Rebasing");
> +			break;
> +		case REBASING_INTERACTIVE:
> +			state.setText("Rebasing interactive");
> +			break;
> +		case REBASING_MERGE:
> +			state.setText("Rebasing merge");
> +			break;
> +		case SAFE:
> +			state.setText("Safe");
> +			break;
> +		}
Why not this:
		state.setText(repository.getRepositoryState().getDescription());
Description is ment for presentation purposes. The enum for code.
-- robin
Previous: Robin RosenbergNext: Tomi Pakarinen
Message 3 of 6 in “git property page for project properties.”
  1. git property page for project properties.Tomi Pakarinen, Oct 20, 2008
  2. Robin RosenbergOct 21, 2008
  3. Robin RosenbergOct 21, 2008
  4. Tomi PakarinenOct 21, 2008
  5. Robin RosenbergOct 21, 2008
  6. Detect repository states according to post Git 1.5Robin Rosenberg, Oct 21, 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.