diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-12-04 03:52:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-05 23:59:29 +0100 |
commit | 3bb16a8bf2ec02c4cc633c3efd4c012e55ee0c2d (patch) | |
tree | fec5cd35077dbd4cc9f086771b0410d9621b3a13 /Documentation/git-branch.txt | |
parent | Git 2.11 (diff) | |
download | git-3bb16a8bf2ec02c4cc633c3efd4c012e55ee0c2d.tar.xz git-3bb16a8bf2ec02c4cc633c3efd4c012e55ee0c2d.zip |
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>
Diffstat (limited to 'Documentation/git-branch.txt')
-rw-r--r-- | Documentation/git-branch.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 1fe73448f3..5516a47b54 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -118,6 +118,10 @@ OPTIONS default to color output. Same as `--color=never`. +-i:: +--ignore-case:: + Sorting and filtering branches are case insensitive. + --column[=<options>]:: --no-column:: Display branch listing in columns. See configuration variable |