* [ANN] git-branch-list 0.1 released
@ 2021-06-25 16:21 Felipe Contreras
0 siblings, 0 replies; only message in thread
From: Felipe Contreras @ 2021-06-25 16:21 UTC (permalink / raw)
To: git; +Cc: Ævar Arnfjörð Bjarmason
The current version of `git branch --list` mostly works, but it's slow and
cumbersome. While this could easily be fixed in git itself, every patch
that tries to improve the user interface is de facto rejected [1].
An external command `git branch-list` is the solution.
Why is `git branch-list` better?
1. It provides useful information at all verbosity levels
2. It does not clutter the output with unhelpful characters
3. It provides a more consistent output
4. It sorts branches by default
5. It filters branches more conveniently
6. It tracks branches in a simpler way
7. It's way faster
== Verbosity levels ==
At level 0:
* master origin/master
At level 1:
* master [origin/master] The first batch post Git 2.32
What about the tracking information? That's orthogonal in
`git branch-list`, and simplified:
% git branch-list -t
* master origin/master=
== Performance ==
Using 100 random branches on Linux with random commits over the past
decade:
% git branch --list --verbose
21.611 seconds
% git branch-list
0.106 seconds
Grab it from my GitHub repository:
https://github.com/felipec/git-branch-list
Cheers.
[1] https://lore.kernel.org/git/YL8KiiGXF8LdGmQ2@coredump.intra.peff.net/
--
Felipe Contreras
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-25 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 16:21 [ANN] git-branch-list 0.1 released Felipe Contreras
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).