chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.06k stars 107 forks source link

`bit info` is very verbose #21

Open jyn514 opened 4 years ago

jyn514 commented 4 years ago

This makes it hard to read the important points. Maybe this could be trimmed down to only the remote and recent commits? Or make the info configurable with flags, so that you have to pass -a to see it all?

--- INFO ---

## Remote URLs:

origin  git@github.com:rust-lang/docs.rs.git (fetch)
origin  git@github.com:rust-lang/docs.rs.git (push)
personal    git@github.com:jyn514/docs.rs.git (fetch)
personal    git@github.com:jyn514/docs.rs.git (push)

## Remote Branches:

  origin/HEAD -> origin/master
  origin/master
  personal/about
  personal/automate-all-the-things
  personal/behind-the-times
  personal/cleanup-lol
  personal/clippy
  personal/copy
  personal/crates
  personal/css
  personal/css-optional
  personal/deduplicate
  personal/deprecation-warning
  personal/fix-links
  personal/impl-from-err
  personal/ios
  personal/local
  personal/master
  personal/no-cache
  personal/no-duplicates
  personal/no-more-targets
  personal/non-null
  personal/old-docs
  personal/optional-rustfmt
  personal/prometheus
  personal/query
  personal/readme
  personal/redirects
  personal/releases-feed
  personal/remove-git2
  personal/sqlx
  personal/tests
  personal/version
  personal/welcome-to-the-matrix
  personal/whitespace

## Local Branches:

  always-foreground
  broken
  clippy
  copy
  crates
  css
  css-optional
  fix-metrics
  fix-tera
  impl-from-err
  ios
  limit-cpu
  lip-asyncin
  lip-asyncing
  load-registry-config
  master
  no-mutex
  non-null
  old-docs
  once_cell
  orig-async-lock
  query
* readme
  redirects
  router
  self-check
  sets
  sqlx
  sqlx-oops
  targeted-upgrade
  tired-of-hosting-parties
  tokio-redux
  tokio-spawn
  tracking-policy
  version
  whitespace

## Most Recent Commit:

commit 51110c564d1f4eaa8c650ee47dce3c498fbb3bf7
Author: Joshua Nelson <jyn514@gmail.com>

    Show readmes even if the build fails

## Configuration (.git/config):

filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
user.name=Joshua Nelson
user.email=jyn514@gmail.com
user.signingkey=E655823D8D8B1088
credential.helper=store
push.default=simple
core.eol=lf
core.editor=vim
core.preloadindex=true
core.excludesfile=~/.gitignore
core.autocrlf=false
alias.save=git-save
alias.update=submodule update
alias.conf=config
alias.module=submodule
alias.deepen=git pull --unshallow
alias.unshallow=git pull --unshallow
alias.a=add
alias.b=branch
alias.c=commit
alias.conf=config
alias.d=diff
alias.h=help
alias.l=log --graph --oneline
alias.r=remote
alias.s=status -sb --ignore-submodules
alias.t=tag
alias.v=!git --version
alias.recent=for-each-ref --sort=-committerdate --format='%(committerdate:short): %(refname:short): %(contents:subject)' refs/heads/
alias.signed=log --show-signature
diff.algorithm=minimal
submodule.fetchjobs=4
merge.tool=vimdiff
sendemail.smtpserver=smtp.gmail.com
sendemail.smtpserverport=587
sendemail.smtpencryption=tls
sendemail.smtpuser=jyn514@gmail.com
sendemail.smtppass=reubifikmyicbgdn
pull.rebase=true
includeif.gitdir:~/src/yottadb/.path=~/src/yottadb/.gitconfig
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@github.com:rust-lang/docs.rs.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
remote.personal.url=git@github.com:jyn514/docs.rs.git
remote.personal.fetch=+refs/heads/*:refs/remotes/personal/*
branch.version.remote=personal
branch.version.merge=refs/heads/version
branch.tired-of-hosting-parties.remote=personal
branch.tired-of-hosting-parties.merge=refs/heads/tired-of-hosting-parties
branch.copy.remote=personal
branch.copy.merge=refs/heads/copy
branch.css.remote=personal
branch.css.merge=refs/heads/css
branch.css-optional.remote=personal
branch.css-optional.merge=refs/heads/css-optional
branch.crates.remote=personal
branch.crates.merge=refs/heads/crates
branch.impl-from-err.remote=personal
branch.impl-from-err.merge=refs/heads/impl-from-err
branch.whitespace.remote=personal
branch.whitespace.merge=refs/heads/whitespace
branch.ios.remote=personal
branch.ios.merge=refs/heads/ios
branch.old-docs.remote=personal
branch.old-docs.merge=refs/heads/old-docs
branch.query.remote=personal
branch.query.merge=refs/heads/query
branch.sqlx.remote=personal
branch.sqlx.merge=refs/heads/sqlx
branch.redirects.remote=personal
branch.redirects.merge=refs/heads/redirects
branch.non-null.remote=personal
branch.non-null.merge=refs/heads/non-null
branch.clippy.remote=personal
branch.clippy.merge=refs/heads/clippy
branch.readme.remote=personal
branch.readme.merge=refs/heads/readme

--- SUMMARY ---

 project  : docs.rs
 repo age : 4 years, 9 months
 active   : 474 days
 commits  : 1940
 files    : 1752
 authors  : 
   481  Onur Aslan                    24.8%
   458  Joshua Nelson                 23.6%
   274  Pietro Albini                 14.1%
   227  Chase Wilson                  11.7%
   119  QuietMisdreavus               6.1%
    78  Wim Looman                    4.0%
    52  Guillaume Gomez               2.7%
    36  Koenraad Verheyden            1.9%
    26  Mark Rousskov                 1.3%
    22  Zexbe                         1.1%
    17  Michael Howell                0.9%
    10  Alan Du                       0.5%
     9  Folyd                         0.5%
     9  Reese Williams                0.5%
     7  cynecx                        0.4%
     6  Camelid                       0.3%
     6  Jonas Schievink               0.3%
     5  Jon Gjengset                  0.3%
     4  Jacob Hoffman-Andrews         0.2%
     4  Lzu Tao                       0.2%
     4  Maarten de Vries              0.2%
     4  Nemo157                       0.2%
     4  Robin Hundt                   0.2%
     4  Sam Reis                      0.2%
     4  Sora Morimoto                 0.2%
     4  ohaddahan                     0.2%
     3  Alex Shorsher                 0.2%
     3  Andreas Fuchs                 0.2%
     3  Corey Farwell                 0.2%
     3  Giacomo Pasini                0.2%
     3  LEARAX                        0.2%
     3  Sebastian Thiel               0.2%
     3  Wesley Norris                 0.2%
     2  Ashe Connor                   0.1%
     2  Fabio Valentini               0.1%
     2  Jack Gerrits                  0.1%
     2  Laurent Arnoud                0.1%
     2  Mara Bos                      0.1%
     2  Russell Cousineau             0.1%
     2  Samuel Tardieu                0.1%
     2  lzutao                        0.1%
     1  Alex Burka                    0.1%
     1  Ashley Mannix                 0.1%
     1  Benedikt Werner               0.1%
     1  Benjamin Coenen               0.1%
     1  Christoph Schulz              0.1%
     1  Dimitri Sabadie               0.1%
     1  Donough Liu                   0.1%
     1  Giang Nguyen                  0.1%
     1  Ivan Tham                     0.1%
     1  Johannes Löthberg             0.1%
     1  Jonathan Bastien-Filiatrault  0.1%
     1  Kaleb Elwert                  0.1%
     1  Koxiaet                       0.1%
     1  Lucio Franco                  0.1%
     1  Matthew Hall                  0.1%
     1  Mike Boutin                   0.1%
     1  Nemikolh                      0.1%
     1  Nicholas Young                0.1%
     1  Ohad Dahan                    0.1%
     1  Pascal Hartig                 0.1%
     1  Pradip Caulagi                0.1%
     1  Rekai Musuka                  0.1%
     1  Ryan Scheel                   0.1%
     1  Yuki Izumi                    0.1%
     1  Yuki Okushi                   0.1%
     1  bluss                         0.1%
     1  codetrotter                   0.1%
     1  theduke                       0.1%
     1  陈梓立                        0.1%

--- EFFORT ---

Commits | Files
    199 Cargo.lock
    188 Cargo.toml
    186 src/web/mod.rs
    166 src/web/rustdoc.rs
    135 src/bin/cratesfyi.rs
    133 src/docbuilder/rustwide_builder.rs
    111 src/web/releases.rs
    101 src/web/crate_details.rs
     96 templates/style.scss
     90 src/db/add_package.rs
     87 src/docbuilder/mod.rs
     80 src/db/file.rs
     79 README.md
     78 src/lib.rs
     76 src/storage/mod.rs
chriswalz commented 4 years ago

we can probably change this to bit extra info, bit extra effort etc. since this is actually running 3 separate commands

jyn514 commented 4 years ago

Another way to trim this down: don't show remote branches with the same name as local branches (maybe make the old behavior opt-in).