本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
帮助
返回水杉在线
登录水杉在线
登录水杉码园
wlxsp
/
test1
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Fixes
#496
- matches git's default abbrev sha length
main
Eric Amodio
6 年之前
父節點
9c8b81090c
當前提交
9ae4877f05
共有
2 個檔案被更改
,包括
4 行新增
和
3 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
CHANGELOG.md
+3
-3
src/git/git.ts
+ 1
- 0
CHANGELOG.md
查看文件
@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [
#496
](
https://github.com/eamodio/vscode-gitlens/issues/496
) - Short hash length doesn't match git's default length
- Fixes [
#503
](
https://github.com/eamodio/vscode-gitlens/issues/503
) - Open Changes (with difftool) opens one difftool window per changed file
- Fixes [
#405
](
https://github.com/eamodio/vscode-gitlens/issues/405
) - Secondary, blank repository appears repeatedly in gitExplorer view
- Fixes [
#430
](
https://github.com/eamodio/vscode-gitlens/issues/430
) - File revisions can end up being parsed by language servers (causing errors and warnings, etc)
+ 3
- 3
src/git/git.ts
查看文件
@ -227,12 +227,12 @@ export class Git {
}
const
index
=
ref
.
indexOf
(
'^'
)
;
if
(
index
>
6
)
{
if
(
index
>
5
)
{
// Only grab a max of 5 chars for the suffix
const
suffix
=
ref
.
substring
(
index
)
.
substring
(
0
,
5
)
;
return
`
${
ref
.
substring
(
0
,
8
-
suffix
.
length
)
}
${
suffix
}
`
;
return
`
${
ref
.
substring
(
0
,
7
-
suffix
.
length
)
}
${
suffix
}
`
;
}
return
ref
.
substring
(
0
,
8
)
;
return
ref
.
substring
(
0
,
7
)
;
}
static
splitPath
(
fileName
:
string
,
repoPath
:
string
|
undefined
,
extract
:
boolean
=
true
)
:
[
string
,
string
]
{
Write
Preview
Loading…
取消
儲存