+1

Branches view: Multiple branches-views with pre-defined filters

InD84 yesterday at 1:41 a.m. updated 10 hours ago 4
Situation
There are thousands of branches in hundreds of groups with “path-like names”. It is very tedious to find the branchs you want in the branches-view (The overview is miserable). And most of the times you are only interested in the branches of a handful of subfolders anyway.


Of course, you can also press CTRL + P and then enter the relevant subfolder to quickly see the desired branches. But unfortunately this is also very cumbersome if you want to merge the respective branch into your current branch:

  1. You have to click into the branches-view.
  2. You have to press CTRL+P and enter the subfolder you are looking for (and rememeber those names).
  3. YouI have to select the desired branch. (Unfortunately, in this view you don't have the option to merge the selected branch with your current branch).
  4. So you have to reveal the branch.
  5. Finally you can merge the desired branch into your current branch.


Desired behavior:

I would like to define a filter for the branches-view and attach the filtered view as a separate tab in Smartgit (with a self-defined title). This way we could have multiple tabs for the branches-views (each with different filters and title).


Not only would this greatly improve the overview, but it would also reduce the number of steps that need to be taken:

  1. Click into the filtered branches-view and select the desired branch.
  2. Merge the desired branch into the current branch.

GUI Branches view

Please checkout the Standard window and its "My History" view.

Thank you for your answer. 

I checked out the Standard window and the "My History" view as you suggested. It seems that I only see my last checked out branches and I seem unable to filter this view. So, this does not work for the use-case described above (Filtering for branches in different sub-folders).

Nevertheless I also checked the "All branches + Tags" view. There, filtering is possible and works with regex expressions (this would indeed satisfy the "Filtering for branches in different sub-folders" use-cases). Also merging a filtered branch into my current local branch is possible.

But there are some (breaking) drawbacks:

  1. The filter resets everytime SmartGit is closed and opened again. Even the "interpret the search pattern as regex" setting is not safed and has to be clicked again every time. I see this as a no-go, espacially with regex filter patterns.
  2. For some reason im unable to reset my current checked out branch in the context menu nor can I reveal its origin in the graph on the side (See picture below).
  3. It seems that in the "History" view staging/commiting/resetting is not possible. Also the current changes are not visible. It seems one has to switch back into "Local Files" view for this (But even there I'm unable to reset my current branch. Or at least I didn't find out how to achieve this).

Conclusion:

I do like the filtering in the "All branches + Tags" view (Big thumbs up here!). That is exactly what I have in mind for the "filtered branch-views" request.

But the fact that the filter is not saved, I am not able to reset my current branch, see the local changes and reveal the origin of my checked out branch prevents me from using this approach.

Image 938

The next 25.1 preview build 251045 will remember the reg-ex option.

This is certainly a positive change (although not the one asked for in this feature request).