]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.h
tag, branch, for-each-ref: add --ignore-case for sorting and filtering
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 4 Dec 2016 02:52:25 +0000 (09:52 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Dec 2016 22:59:29 +0000 (14:59 -0800)
commit3bb16a8bf2ec02c4cc633c3efd4c012e55ee0c2d
treefec5cd35077dbd4cc9f086771b0410d9621b3a13
parent454cb6bd52a4de614a3633e4f547af03d5c3b640
tag, branch, for-each-ref: add --ignore-case for sorting and filtering

This options makes sorting ignore case, which is great when you have
branches named bug-12-do-something, Bug-12-do-some-more and
BUG-12-do-what and want to group them together. Sorting externally may
not be an option because we lose coloring and column layout from
git-branch and git-tag.

The same could be said for filtering, but it's probably less important
because you can always go with the ugly pattern [bB][uU][gG]-* if you're
desperate.

You can't have case-sensitive filtering and case-insensitive sorting (or
the other way around) with this though. For branch and tag, that should
be no problem. for-each-ref, as a plumbing, might want finer control.
But we can always add --{filter,sort}-ignore-case when there is a need
for it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-branch.txt
Documentation/git-for-each-ref.txt
Documentation/git-tag.txt
builtin/branch.c
builtin/for-each-ref.c
builtin/tag.c
ref-filter.c
ref-filter.h
t/t3203-branch-output.sh
t/t7004-tag.sh