author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 31 May 2007 00:39:46 +0000 (20:39 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 1 Jun 2007 03:37:34 +0000 (23:37 -0400) | ||
commit | fc4e8da727d5c1737322b14386282456fd3c99c9 | |
tree | a61de33163a574aa7d5c05c7d2021fd0c424fb2a | tree | snapshot |
parent | 71a9db534a6bb4a6e9824c01b557a96ccaae0e89 | commit | diff |
git-gui: Internalize symbolic-ref HEAD reading logic
To improve performance on fork+exec impoverished systems (such as
Windows) we want to avoid running git-symbolic-ref on every rescan
if we can do so. A quick way to implement such an avoidance is to
just read the HEAD ref ourselves; we'll either see it as a symref
(starts with "ref: ") or we'll see it as a detached head (40 hex
digits). In either case we can treat that as our current branch.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
To improve performance on fork+exec impoverished systems (such as
Windows) we want to avoid running git-symbolic-ref on every rescan
if we can do so. A quick way to implement such an avoidance is to
just read the HEAD ref ourselves; we'll either see it as a symref
(starts with "ref: ") or we'll see it as a detached head (40 hex
digits). In either case we can treat that as our current branch.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |