# legend on top-right pane in 'git gui'

4 messages from 2009-03-31 to 2009-04-10. Participants: Sitaram Chamarty, James Pickens.
Thread: https://gitlist.dev/t/18665

## Sitaram Chamarty, 2009-03-31 16:25

Subject: legend on top-right pane in 'git gui'
Message-ID: <slrngt4h04.q0l.sitaramc@sitaramc.homelinux.net>
URL: https://gitlist.dev/e/slrngt4h04.q0l.sitaramc%40sitaramc.homelinux.net

```
Hello,

'git gui' has a minor issue with the legend on the main code
panel (yellow bar, top right pane).

When you click on a file in the top left pane, the yellow
bar becomes "untracked, not staged".  When you click on a
file in the bottom left pane, it becomes "staged for
commit".  So far so good.

But when you take a file and (un)stage a part of it, then
the text on the yellow bar changes to "Portions staged for
commit", regardless of whether you clicked on the filename
in the top left (unstaged) or bottom left (staged) pane.

One of the two texts should be different, but what?  I was
thinking, just add "(partial)" to the normal text, like:

    "untracked, not staged (partial)"
    "staged for commit (partial)"

I also tried to see if I could patch it, but it's not just a
matter of changing the text somewhere, and I don't know tcl.
However, if someone can give me a pointer I could still
try...

Any thoughts?

```

## Sitaram Chamarty, 2009-04-09 03:31

Subject: Re: legend on top-right pane in 'git gui'
Message-ID: <slrngtqr13.566.sitaramc@sitaramc.homelinux.net>
URL: https://gitlist.dev/e/slrngtqr13.566.sitaramc%40sitaramc.homelinux.net
In-Reply-To: <slrngt4h04.q0l.sitaramc@sitaramc.homelinux.net>

```
Hi guys,

Can someone at least tell me "Sita, you're wrong/this is a
stupid question/this is perfectly correct behaviour/whatever"?  :-)

I won't even ask why, I promise :-)

Regards,

Sitaram

On 2009-03-31, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> Hello,
>
> 'git gui' has a minor issue with the legend on the main code
> panel (yellow bar, top right pane).
>
> When you click on a file in the top left pane, the yellow
> bar becomes "untracked, not staged".  When you click on a
> file in the bottom left pane, it becomes "staged for
> commit".  So far so good.
>
> But when you take a file and (un)stage a part of it, then
> the text on the yellow bar changes to "Portions staged for
> commit", regardless of whether you clicked on the filename
> in the top left (unstaged) or bottom left (staged) pane.
>
> One of the two texts should be different, but what?  I was
> thinking, just add "(partial)" to the normal text, like:
>
>     "untracked, not staged (partial)"
>     "staged for commit (partial)"
>
> I also tried to see if I could patch it, but it's not just a
> matter of changing the text somewhere, and I don't know tcl.
> However, if someone can give me a pointer I could still
> try...
>
> Any thoughts?
>

```

## James Pickens, 2009-04-09 04:11

Subject: Re: legend on top-right pane in 'git gui'
Message-ID: <885649360904082111q31f1d90br8ee62eb4afba2611@mail.gmail.com>
URL: https://gitlist.dev/e/885649360904082111q31f1d90br8ee62eb4afba2611%40mail.gmail.com
In-Reply-To: <slrngtqr13.566.sitaramc@sitaramc.homelinux.net>

```
On Wed, Apr 8, 2009, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> Can someone at least tell me "Sita, you're wrong/this is a
> stupid question/this is perfectly correct behaviour/whatever"?  :-)
>
> I won't even ask why, I promise :-)

Well, I for one think your proposed new message - "untracked, not
staged (partial)" - is nonsense.  A file can't be both untracked
and partially staged.

Also I don't agree that the message needs to be different
depending on where you click; actually I think such behavior
would be more confusing to users than the current behavior.

James

```

## Sitaram Chamarty, 2009-04-10 19:19

Subject: Re: legend on top-right pane in 'git gui'
Message-ID: <slrngtv6tk.7aq.sitaramc@sitaramc.homelinux.net>
URL: https://gitlist.dev/e/slrngtv6tk.7aq.sitaramc%40sitaramc.homelinux.net
In-Reply-To: <885649360904082111q31f1d90br8ee62eb4afba2611@mail.gmail.com>

```
On 2009-04-09, James Pickens <jepicken@gmail.com> wrote:
> On Wed, Apr 8, 2009, Sitaram Chamarty <sitaramc@gmail.com> wrote:
>> Can someone at least tell me "Sita, you're wrong/this is a
>> stupid question/this is perfectly correct behaviour/whatever"?  :-)
>>
>> I won't even ask why, I promise :-)
>
> Well, I for one think your proposed new message - "untracked, not
> staged (partial)" - is nonsense.  A file can't be both untracked
> and partially staged.

Fine, some other wording may suit better; doesn't matter if
you don't even agree that the message needs to be different.

> Also I don't agree that the message needs to be different
> depending on where you click; actually I think such behavior
> would be more confusing to users than the current behavior.

Right now, both panes say "Portions staged for commit".

In fact, while one pane does indeed show the portions staged
for commit, the other one is actually showing portions *not*
staged for commit.  To some of my users, that is certainly
confusing.

I guess confusion, like beauty, is in the eyes of the
beholder...

```
