0
Completed

Display 0 changes 'Working Tree' entry (Log as main Window workflow)

Bernard Poulin 5 years ago updated by Marc Strapetz 5 years ago 5

I often want to know if I have pending changes in my working tree (and if I do what are they). On the command line this is "git status".
In SmartGit, this is looking at the Working Tree view and seeing no files in the file pane.

In the new Log as main window workflow, there is no clear place to look since the Working Tree entry is not present in that case. Not being present might just mean it is scrolled out. Yes, I know the current commit I am on is set to "bold" but this is not very reassuring, I would much rather see the `Working Tree` entry always with 0 changes instead.

Answer

Answer

> Shouldn't this be set as the default when switching to Working Tree as main Window?

I don't think it's more reasonable to use this as default. It's simply a matter of taste.

> In Permanent mode and Working Tree clean, I think the index should show only 'on demand'. Maybe this is a bug?

Either everything on demand or everything permanent is reasonable to me. So again, a matter of taste. If you want to have a third mode or a corresponding low-level property, please create a new topic.

GOOD, I'M SATISFIED
Satisfaction mark by Bernard Poulin 5 years ago
+1
Completed

From the Commits view hamburger menu, you can select to Show Working Tree & Index Permanently.

2 more related requests:

Oh my! That's great! It even turns green instead of red and says "(clean)"  which is exactly what I needed.

But its totally non-obvious to discover I must say. 


#1- Shouldn't this be set as the default when switching to Working Tree as main Window?

#2- In Permanent mode and Working Tree clean, I think the index should show only 'on demand'. Maybe this is a bug? I say this because it remains 'on demand' when the Working Tree is not clean which is not consistent IMHO.

Answer

> Shouldn't this be set as the default when switching to Working Tree as main Window?

I don't think it's more reasonable to use this as default. It's simply a matter of taste.

> In Permanent mode and Working Tree clean, I think the index should show only 'on demand'. Maybe this is a bug?

Either everything on demand or everything permanent is reasonable to me. So again, a matter of taste. If you want to have a third mode or a corresponding low-level property, please create a new topic.

> Either everything on demand or everything permanent is reasonable to me. So again, a matter of taste. I you want to have a third mode or a corresponding low-level property, please create a new topic.

Yes, everything one way or the other makes sense. Just pointing out that the permanent options does not seem to work correctly with the index entry. I mean:

When you pick the "permanent option", the index (clean) does not appear when the Working Tree has changes. But it will appear when both are clean.


I could log a bug if you want, again nothing serious.


Thank you again for answering very quickly Marc. BTW, I think that with the new single window workflow, SmartGit is now the best visual Git tool out there! :)

> When you pick the "permanent option", the index (clean) does not appear when the Working Tree has changes. But it will appear when both are clean.

That's actually unexpected. For me, "Index (clean)" will always show up, regardless of the working tree state. If you can provide a small test repository for which the problem is reproducible, that would be great.