git branch: filtering by formatted ref when using --format and --list flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A few days ago, I wanted to list my branches on a remote. (By "my
branches", I mean branches whose head commit I authored.) The first
command I tried was:

git branch -r --format '%(refname:short) %(authoremail)' \
              --list '*aaron@xxxxxxxxxxx*'

However, the --list flag only applies filtering using plain refname,
not custom-formatted refs. So I just used grep:

git branch -r --format '%(refname:short) %(authoremail)' |
  grep 'aaron@xxxxxxxxxxx'

Even though grep works fine, I'd find it convenient for git branch/tag
to filter formatted refs when passed both --format and --list flags. I
have a patch series implementing this, but before I polish my work to
get it submission ready, I wanted to check whether others feel this is
a worthwhile change. Feedback welcome.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux