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

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

From
TPTomi Pakarinen <tomi.pakarinen@gmail.com>
Date
Oct 21, 2008, 18:09 UTC
Message-ID
<f299b4f30810211109q7f2919f2r1d5cd8faf0048154@mail.gmail.com>
In-Reply-To
<200810211950.50540.robin.rosenberg.lists@dewire.com>

On Tue, Oct 21, 2008 at 8:50 PM, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:

Show 32 quoted lines
> 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.
> [...]
>> +             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
>
 That is ok. I just didn't notice that method before. But, what if
someone wants localize this plugin, he'll propably have to explode
this back to switch statement.
   Tomi.
Previous: Robin RosenbergNext: Robin Rosenberg
Message 4 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.