OSDN Git Service
(root)
/
tortoisegit
/
TortoiseGitJp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BrowseRefs: Simplified some code
[tortoisegit/TortoiseGitJp.git]
/
src
/
TortoiseProc
/
BrowseRefsDlg.cpp
diff --git
a/src/TortoiseProc/BrowseRefsDlg.cpp
b/src/TortoiseProc/BrowseRefsDlg.cpp
index
e7b060e
..
6666a72
100644
(file)
--- a/
src/TortoiseProc/BrowseRefsDlg.cpp
+++ b/
src/TortoiseProc/BrowseRefsDlg.cpp
@@
-195,9
+195,7
@@
void CBrowseRefsDlg::Refresh(CString selectRef)
{
\r
if(selectRef == "HEAD")
\r
{
\r
- selectRef.Empty();
\r
- g_Git.Run(L"git symbolic-ref HEAD",&selectRef,CP_UTF8);
\r
- selectRef.Trim(L"\r\n\t ");
\r
+ selectRef = g_Git.GetSymbolicRef(selectRef, false);
\r
}
\r
}
\r
else
\r