0

Straightforward way to see staged changes

IanJ 4 years ago updated 4 years ago 4

To view staged changes, as far as I can see, you need to pick each file that shows "staged" in the list, doubleclick, and pick the appropriate diff option.  Non-utitive and a little annoying (compared to, for example, SourceTree which I'm more used to).  It would be great if there was a simple single view to see all staged changes that will be part of the next commit.

There is such a view. In the Log, for example, simply click the Index node.

Could you elaborate?  Because I cuoldn't find it.  I did try.  The reply isn't particularly helpful.  What is "the index node" ?

Which SmartGit version you are using? In 19.1 there was a special Index node in the Graph view for staged changes. In 20.1 you can see staged changes in a separate table if the toolbar button directly right to the filter input field is clicked (in the Files view).

I'm using the latest on the website as of yesterday 19.1.6 #14220

I see now there is an "Index (1 change)" node in the tree, which, when selected, despite the file status showing "Staged, modified" as it does when the "Working tree" item is selected, it does only show the staged changes at that time.  Very subtle.  I've never seen the tree used in this way, but I guess it makes sense once you understand that it is there -- and I did search fairly hard, I thought, for this feature yesterday.