summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2026-01-14 19:27:53 +0100
committerJohannes Sixt <j6t@kdbg.org>2026-01-20 17:09:40 +0100
commit28f96e0173b4de1543ce45978837ddc49b532a83 (patch)
tree5f0109c45c8ae46a340f5a2947bbf7035b7496f5 /contrib/persistent-https
parent776223c4d8482a29585266e189ea8f1933ac9652 (diff)
downloadgit-28f96e0173b4de1543ce45978837ddc49b532a83.tar.gz
git-28f96e0173b4de1543ce45978837ddc49b532a83.zip
gitk: fix highlighted remote prefix of branches with directories
The decoration of a remote ref is colored in two parts: (1) the prefix that mentions the remove (including "remote/"); and (2) the branch name. To extract the prefix from the ref name, a regular expression is used. However, the expression is not restrictive enough: it picks everything before the last slash character as prefix, so that, for example, the ref name "remotes/orgin/ml/themes" is split into "remotes/origin/ml" and "themes". Tighten the regular expression so that only the name of the remote is pulled into the prefix, but no part of the branch name. This gives the desired result in the example: "remotes/origin" and "ml/themes". Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions