git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gitk: alter the ordering for the "Tags and heads" view
@ 2016-03-09 18:18 Michael Rappazzo
  2016-03-09 18:18 ` [PATCH 1/2] " Michael Rappazzo
  2016-03-09 18:18 ` [PATCH 2/2] gitk: add an option to enable sorting the "Tags and heads" view by ref type Michael Rappazzo
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Rappazzo @ 2016-03-09 18:18 UTC (permalink / raw)
  To: paulus; +Cc: git, Michael Rappazzo

In a codebase with a large number of remote branches, the "Tags and heads"
view can split the local refs around the name "remotes".  I wanted to make
this view more useful as a quick view of the refs that are important to me
at the moment (the branches that I am actively working on).

This patch series adds a command line option to change the ordering of the
view (`--sort-refs-by-type`) which will sort the refs in the following
order:

    local refs
    remote refs which are tracked (upstream) by local refs
    remote refs
    tags
    other refs

Each of these lists is independently sorted before being put into the main
ref list.  Also note that the upstream refs are _not_ duplicated in the
remote refs list.

Michael Rappazzo (2):
  gitk: alter the ordering for the "Tags and heads" view
  gitk: add an option to enable sorting the "Tags and heads" view by ref
    type

 gitk | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 52 insertions(+), 7 deletions(-)

-- 
2.7.2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-09 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 18:18 [PATCH 0/2] gitk: alter the ordering for the "Tags and heads" view Michael Rappazzo
2016-03-09 18:18 ` [PATCH 1/2] " Michael Rappazzo
2016-03-09 18:18 ` [PATCH 2/2] gitk: add an option to enable sorting the "Tags and heads" view by ref type Michael Rappazzo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).