Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 11/19] bash prompt: use bash builtins to find out current branch

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:47

SZEDER Gábor [off-list ref] writes:
Since HEAD is a single-line file and the symbolic ref format is quite
simple to recognize and parse,...
Strictly speaking, that is true only if you somehow know that HEAD is not
a symlinked symref.  You may end up reading [0-9a-f]{40} out of HEAD
without learning where the symbolic link pointed at.

I personally do not _know_ of anybody who is still using a symlinked
symref, but the reasoning behind 9f0bb90 (core.prefersymlinkrefs: use
symlinks for .git/HEAD, 2006-05-02) cannot go away by definition until
every project that benefited from the configuration the commit introduced
goes extinct, so I wouldn't be surprised if you get complaints from the
users if we adopt this patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help