diff options
| author | Philippe Blain <levraiphilippeblain@gmail.com> | 2023-09-12 17:30:27 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-09-12 17:33:59 -0700 |
| commit | 0b658eae751968506552f1bddadc338653819d20 (patch) | |
| tree | c6eac57ce9d757cf7797e7f7cee466560abbc10a /commit-graph.c | |
| parent | completion: commit: complete configured trailer tokens (diff) | |
| download | git-0b658eae751968506552f1bddadc338653819d20.tar.gz git-0b658eae751968506552f1bddadc338653819d20.zip | |
completion: commit: complete trailers tokens more robustly
In the previous commit, we added support for completing configured
trailer tokens in 'git commit --trailer'.
Make the implementation more robust by:
- using '__git' instead of plain 'git', as the rest of the completion
script does
- using a stricter pattern for --get-regexp to avoid false hits
- using 'cut' and 'rev' instead of 'awk' to account for tokens including
dots.
Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
