git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] add case insensitivity option to bash completion

From
Alison Winters via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 5, 2022, 17:28 UTC
Message-ID
<pull.1374.git.git.1667669315.gitgitgadget@gmail.com>

In 3bb16a8bf2 (tag, branch, for-each-ref: add --ignore-case for sorting and filtering, 2016-12-04), support was added for filtering and sorting refs in a case insensitive way. This is a behavior that seems appropriate to enable with shell completion. Many shells provide case insensitive completion as an option, even on filesystems that remain case sensitive.

This patch adds a new variable that, when set, will allow Bash completion to use the --ignore-case option to match refs. Additionally, some basic support is implemented to match pseudorefs like HEAD.

Alison Winters (2):
  completion: add optional ignore-case when matching refs
  completion: add case-insensitive match of pseudorefs
 contrib/completion/git-completion.bash | 51 ++++++++++++++++++++++++--
 t/t9902-completion.sh                  | 32 ++++++++++++++++
 2 files changed, 80 insertions(+), 3 deletions(-)
base-commit: 3b08839926fcc7cc48cf4c759737c1a71af430c1
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1374%2Falisonatwork%2Fbash-insensitive-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1374/alisonatwork/bash-insensitive-v1
Pull-Request: https://github.com/git/git/pull/1374
-- 
gitgitgadget
Next: Alison Winters via GitGitGadget
Message 1 of 15 in “add case insensitivity option to bash completion”
  1. 0/2 add case insensitivity option to bash completionAlison Winters via GitGitGadget, Nov 5, 2022
  2. 1/2 completion: add optional ignore-case when matching refsAlison Winters via GitGitGadget, Nov 5, 2022
  3. SZEDER GáborNov 20, 2022
  4. 2/2 completion: add case-insensitive match of pseudorefsAlison Winters via GitGitGadget, Nov 5, 2022
  5. SZEDER GáborNov 20, 2022
  6. SZEDER GáborNov 20, 2022
  7. Taylor BlauNov 8, 2022
  8. 0/2 add case insensitivity option to bash completionAlison Winters via GitGitGadget, Nov 21, 2022
  9. 1/2 completion: add optional ignore-case when matching refsAlison Winters via GitGitGadget, Nov 21, 2022
  10. 2/2 completion: add case-insensitive match of pseudorefsAlison Winters via GitGitGadget, Nov 21, 2022
  11. Junio C HamanoNov 29, 2022
  12. Alison WintersNov 29, 2022
  13. Ævar Arnfjörð BjarmasonNov 29, 2022
  14. Alison WintersNov 30, 2022
  15. Junio C HamanoNov 30, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.