guberm / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
0 stars 0 forks source link

option to hide sub-branches #2488

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, when browsing references and using the possibility to organise 
branches in directories ("branch subdirectories"), it is possible to navigate 
to "branch subdirectories", but the list shown includes branches from even 
lower levels.

As a result, when using many "subbranch directories" (eg experimental/..., 
production/... , temp/..., it is difficult to differentiate between branches 
living in the current branch subdirectory (or possibly put in the wrong 
subdirectory), and those living in (deeper) subdirectories.

The only way to solve this issue is by visually scanning all entries to find 
those branches that exist in the currently shown subdirectory and not in lower 
subdirectories.

A checkbox could allow to hide branches at deeper levels. In other words, the 
righthand pane would show branch leaves only, no subdirectories.

Alternatives to a checkbox are to provide a way to visually differentiate 
branch subdirectories from actual branches, eg by rendering subdirectories in a 
different visual mode (eg italic, bold, or decorate with "folder"-like icons), 
or, even better, rendering actual branch names in bold (although this changes 
the UI, but making subdirectories is bold would risk drowning actual branch 
names).

What version of TortoiseGit and msysgit are you using? On
what operating system?

TortoiseGit 1.8.13.0 (C:\Program Files\TortoiseGit\bin) 
git version 1.9.5.msysgit.0 (C:\Program Files (x86)\Git\bin) 

Original issue reported on code.google.com by alexande...@gmail.com on 11 Apr 2015 at 7:42

GoogleCodeExporter commented 9 years ago
Filtering out is not possible. However, you can click on the branch indicator 
in the upper left and select the branches you want to see. For different visual 
indicators we'd need concrete idea and proposal we can consider.

Original comment by sstrickr...@googlemail.com on 11 Apr 2015 at 11:44

GoogleCodeExporter commented 9 years ago
I'm aware of the directory navigation in the left pane.

If you can apply visual indicators that differentiate branches from branch 
directories, you can add a checkbox that filters away one of the two types? Or 
maybe there is a misunderstanding?

https://code.google.com/p/tortoisegit/source/browse/src/TortoiseProc/BrowseRefsD
lg.cpp?name=REL_1.8.9.0_EXTERNAL#608
https://code.google.com/p/tortoisegit/source/browse/src/TortoiseProc/BrowseRefsD
lg.cpp#577

When I browse CBrowseRefsDlg::FillListCtrlForShadowTree() in BrowseRefsDlg.cpp, 
I see references to nodes and leaves, so the concept is present - but maybe not 
the concept of branch subdirectories. (Just noticed the '!' option of the 
filter BTW :)

The logic already includes the text filter (IsMatchFilter()). One could add 
another (checkbox) filter that checks for the presence of '/' in CString ref, 
which indicates that 'ref' is not a real "leaf" but a "deeper branch"; if the 
checkbox is set, such "leaves" are simply not shown.

The checkbox could be called eg "show only end branches", one small issue is 
that there is a mixup of terminology of Git branches and tree branches here.

Original comment by alexande...@gmail.com on 12 Apr 2015 at 8:04

GoogleCodeExporter commented 9 years ago
@alexander...
Now I see what you mean. At first I thought you are talking about the log 
dialog.

Original comment by sstrickr...@googlemail.com on 25 Apr 2015 at 1:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 54737286f7ea.

Original comment by sstrickr...@googlemail.com on 25 Apr 2015 at 2:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 54737286f7ea.

Original comment by sstrickr...@googlemail.com on 15 May 2015 at 8:06

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 54737286f7ea.

Original comment by sstrickr...@googlemail.com on 16 May 2015 at 2:59