huizhougit / githd Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
My setup is Windows machine, with "Git For Windows" installed.
Other options working perfectly, but when using "View Line History" I get no changes and a file with:
No History
Where can I find the output log?
Thanks.
Bug
githd
2.2.1
Windows_NT x64 6.1.7601
1.42.0
When I do F1, GitHD, View Branch Diff, I cannot Enter a Commit SHA like the demo. All I see are available branches. Any idea why?
Add option to allow configuration of the keys to follow link in the "Git History" list.
Want to just click on the link to follow it, too lazy to press the Ctrl key.
Cheers.
huizhou.githd-unresponsive.cpuprofile.txt
Performance
githd
2.1.0
Darwin x64 18.2.0
1.32.3
/Users/soksan/huizhou.githd-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
Hello,
A lot of extension add options in the right click context menu.
Is it possible to group all commands or even to hide them with a settings ?
Thanks
Issue Type: Bug
I tried to list my staashes but I get the following error:
command 'githd.viewStashes' not found
Extension version: 2.1.0
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:16:34.800Z)
OS version: Darwin x64 18.7.0
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: enabled oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_deferred_display_list: disabled_off skia_renderer: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | 2, 2, 3 |
Memory (System) | 32.00GB (0.02GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
In diff view, going to another file loses diff view's scroll position
Left githd pane remains empty on a project with valid git repository.
Can't find the reason for it. Any ideas? Thx.
huizhou.githd
Version 2.2.4
VSCODE
Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:50:03.709Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.0.0-38-generic
I love this plugin, I think it is really good.
Even though, I think there is a very interesting feature missing which I think it would be really easy for you to implement since it is like a variation of: githd.diffBranch
.
In the same way the command: githd.diffBranch
allows to see a list of modified files between two commits, I would like to be able to see a list of modified files on the current branch (uncommited ones).
Do you thing is this interesting?, for me it will.
I think this functionality is not implemented. I also played a lot with the GUI
but didn't find it.
Thanks!
Bug
githd
2.2.3
Windows_NT x64 10.0.18362
1.43.0
{
"messages": [],
"activationTimes": {
"codeLoadingTime": 15,
"activateCallTime": 63,
"activateResolvedTime": 115,
"activationReason": {
"startup": true,
"extensionId": {
"value": "huizhou.githd",
"_lower": "huizhou.githd"
},
"activationEvent": "*"
}
},
"runtimeErrors": [
{
"name": "TypeError",
"message": "Cannot read property 'hash' of null"
},
{
"name": "TypeError",
"message": "Cannot read property 'hash' of null"
}
]
}
Performance
githd
2.1.0
Darwin x64 18.5.0
1.33.0
/Users/atishkevich/huizhou.githd-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
Bug
githd
2.2.4
Windows_NT x64 10.0.18363
1.44.0
When a file was slightly changed and moved in a commit, git show
would display something like:
--- a/foo/old-file
+++ b/bar/new-file
@@ -3,3 +3,7 @@
line 3
line 4
+line 5
The compare view for this file in GitHD does not display the old file on the left, only the new file on the right, so the changes aren't visible.
huizhou.githd-unresponsive.cpuprofile.txt
Performance
githd
2.1.0
Linux x64 4.15.0-42-generic
1.30.1
/home/selpo/huizhou.githd-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
The extension is good to see a file or line history. But I find it odd that the default view simply shows nothing at all. Wouldn't it be more clear if the default view was just a commit list? When clicked to unfold it would load the SHA with all files and etc (for performance issues). This way I could easily select 2 commits for compare and etc
Digging a little further, I realize there is a "view branch history" option, altough it opens on a tab, not the side panel. So maybe what I'm asking is to eliminate the tab and show everything on that panel. Let me ilustrate:
.. showing commit message, off course.
Commit details could be shown by selecting it on the panel (no need for "Commit Info" in the top). List of commits details (current view) by selecting first line (replace "Commit Info" by "Commits details").
I know that's a lot to ask, but just wanted to share my thoughts.
Cheers
The April 2018 Update introduced an API to create custom activity views and have them on the activity bar.
I think the extension moving to such a view would make the extension easier to use and remove some of the clutter in the explorer view caused by this and other extensions.
Blemish
- Cannot focus on the explorer view automatically after selecting the commit..
I haven't used the API myself, but I reckon it would have a solution to this, opening the GitHD activity view after selecting a commit
Thanks for this extension, I love it! Clean and simple. But there's one little thing I'm missing:
In our team, we value good commit messages. When looking at a commit, I would like to read through the details. The "Commit Info" seems to be the place to look for details on a commit, however, it includes only the summary line, not the entire message.
Could you include the full commit message in the "Commit Info"?
ERR Cannot read property 'trim' of undefined: TypeError: Cannot read property 'trim' of undefined
at GitService.<anonymous> (/Users/fox/.vscode/extensions/huizhou.githd-2.1.0/out/src/gitService.js:369:35)
at Generator.next (<anonymous>)
at fulfilled (/Users/fox/.vscode/extensions/huizhou.githd-2.1.0/out/src/gitService.js:4:58)
at propagateAslWrapper (/Users/fox/.vscode/extensions/vscjava.vscode-java-debug-0.16.0/node_modules/async-listener/index.js:504:23)
at /Users/fox/.vscode/extensions/vscjava.vscode-java-debug-0.16.0/node_modules/async-listener/index.js:541:70
at <anonymous>
at process._tickDomainCallback [as _tickCallback] (internal/process/next_tick.js:228:7)
在工作分支和新的master分支比较时,我想接受某些更改,能不能在比较视图中直接修改文件内容。
GITHD:COMMITED FILES不知道从哪个版本开始就不显示任何内容了,不论是修改了文件、删除了文件、新增了文件,都不显示。我记得原来是显示的。现在移到了左侧了,不再占用文件浏览和大纲位置,还是挺好的,但要是有个选项可以隐藏这个功能就更好了。毕竟自带的Git已经可以完成大部分功能了。
I cannot find the ‘githd’option in the vscode search box,My computer isn't connected to the Internet.
As far as I can tell all diff views are read-only; even if I compare a local file from my working copy against a different commit, the local file on the right is read-only.
Hi Hui Zhou,
thanks for providing such a great extension :)
Would it be possible to add "View File History" and "View Line History" to the command palette for the currently active file / line in the editor? This would improve using githd without having to use the mouse.
Regards,
Thomas
This is one of the best extensions - Thanks!
I do a lot of branch comparison, and when I rightclick on a file in the GitHD panel, it would be nice with a "Open file", that just opens the file normally without any diff. This will help to quickly open the file and make changes to it.
Usefull? :)
Thanks :)
Is it possible to show pixels diff for images? It would be great feature
Like here: https://github.com/dmtrKovalenko/odiff
I can try to help with it if needed
Hi there!
I'm reaching out to you because we currently have your extension manually added to our extension gallery at Coder for code-server, and we're currently working on a migration to open-vsx, which is also used by other community VSCode forks (including, but not limited to Arch Linux's Code-OSS builds and VSCodium).
We (and other open source VSCode forks) cannot use Microsoft's extension gallery, as MS' terms of service allows only the proprietary MS products to interact with the official gallery.
We'd really appreciate it if you can add your extension to open-vsx! A simple guide on publishing extensions to Open-VSX is available here.
Bug
githd
2.1.0
Darwin x64 18.6.0
1.34.0
{
"messages": [],
"activationTimes": {
"startup": true,
"codeLoadingTime": 344,
"activateCallTime": 190,
"activateResolvedTime": 13,
"activationEvent": "*"
},
"runtimeErrors": [
{
"name": "TypeError",
"message": "Cannot read property 'hash' of null"
},
{
"name": "TypeError",
"message": "Cannot read property 'hash' of null"
}
]
}
It would be nice to be able to select two different commits and get a list of changed files and then be able to select any of those files to see the diff of that file between those two commits.
If it would be easier or make more sense, it would be acceptable to be able to select a file and then select two commits and be able to see the diff of that file between those two commits.
Or at a mimimum, I'd like to be able to view the diff of a file between any arbitrary commit and the current working file.
Linux系统上: OK.
Windows系统上: 使用file diff时,提示Unable to open ...
错误. log信息如下:
[renderer1] [error] Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined
at BlameViewProvider. (C:\Users\DELL.vscode\extensions\huizhou.githd-2.0.0\out\src\blameViewProvider.js:145:33)
at Generator.next ()
at C:\Users\DELL.vscode\extensions\huizhou.githd-2.0.0\out\src\blameViewProvider.js:7:71
at new Promise ()
at __awaiter (C:\Users\DELL.vscode\extensions\huizhou.githd-2.0.0\out\src\blameViewProvider.js:3:12)
at BlameViewProvider._onDidChangeActiveTextEditor (C:\Users\DELL.vscode\extensions\huizhou.githd-2.0.0\out\src\blameViewProvider.js:144:16)
at BlameViewProvider.vscode_1.window.onDidChangeActiveTextEditor.editor (C:\Users\DELL.vscode\extensions\huizhou.githd-2.0.0\out\src\blameViewProvider.js:63:22)
at e.fire (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496)
at d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:588:237
at e.fire (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496)
at e.$acceptDocumentsAndEditorsDelta (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:488:823)
at t._doInvokeHandler (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:888)
at t._invokeHandler (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:554)
at t._receiveRequest (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:126)
at t._receiveOneMessage (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:59)
at d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926
at d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138
at e.fire (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496)
at a (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213)
at Socket._socketDataListener (d:\Program Files\MicrosoftVSCode\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
谢谢
Hello,
This tool looks like something I have been looking for a while. I only made it work on the insiders edition of VScode, but I'm not here because that. I want to know if it is possible to use this extension to diff relative git commits (like HEAD~1) or even to compare the current branch with its remote counterpart. Something like this
git fetch # get the remote, but do not integrate
git diff develop origin/develop
Thanks and regards
Thank for you this great tool!
Unfortunately, I received an error when my VS Code working folder/repo is reached through a linux symlink. Here is an example error I received when I tried the "View uncommitted file diff" action to compare an open file to a branch called feature
.
Unable to open 'feature .. Uncommitted (products.js)': Unable to read file 'git:/home/brendan/code/tbf/its/app_feature/src/server/controllers/import/products.js?{"path":"/home/brendan/code/tbf/its/app_feature/src/server/controllers/import/products.js","ref":"feature"}' (Error: Unable to resolve non-existing file 'git:/home/brendan/code/tbf/its/app_feature/src/server/controllers/import/products.js?{"path":"/home/brendan/code/tbf/its/app_feature/src/server/controllers/import/products.js","ref":"feature"}').
The folder code
above is actually a symlink.
Please let me know if this issue could be addressed. Thank you.
Hi
When i try to view the history of a file it just keeps displaying dots..... again and again but no history is being show.
Do I need to configure something else?
For now there exist a button called 'githd: Express Off', it's seems like a temp switch.
But I don't like it. I wanna make it hide.
Any option for that? thanks! This is a great extension I like it much.
P.S. Could you speak Chinese? I am bad talk with English.
Selecting "GitHD: View Line History" is not working at all. It always hows "No History. However, doing this from the command line works:
git log -L 259,259:file.js
When I try to use GitHD: View File History
command on a file inside some submodule, I get the history of the subomodule pointer and not the actual file history from submodule.
I try to see the difference in the file and get an error like in the header. I have this error reproduced on two different projects in "Remote - WSL" mode. In local, everything works fine.
周同志,你好,请教一下,我在vscode中安装了git history diff的扩展,为什么我按F1后输入githd总会提示没有匹配命令,我的电脑没有连外网,是因为网络的原因吗?
请问.git目录一定要在当前的根目录么?
比如:/a/b/c/d.x
.git在c中
此时无法查看d.x的历史信息
Hello, Git History Diff is awesome and I have some suggestion: comparing branches is just comparing the target branch with the current branch and I can't change current branch for now, it's possible to freely choose the two branch?
I have a file having the commits shown below.
λ git log master --graph --date-order --oneline -- **/assessment-form-select.component.ts
* 6bc5a388 Merged PR 12120: Fixed Issue with product values disappearing when you go to the next page and come back
* 80143d60 Merged PR 12077: Product Recommendations Checklist
* 7e75e5dd Merged PR 11788: Fixed Barber selecting hairdresser
|\
| * bb7130eb Fixed bug
* | 1a29104d 15317 MED: I cook as part of my business question, difficult to select
* | dd5b1d6e 15317 MED: I cook as part of my business question, difficult to select
|/
* 9c6c5e85 Fixed min height
* 6e12a7b1 Added bool so dropdown changes only happen when wanted
* 0f7ee060 Fixed UI
* 09f98481 Added check for nativeElement not null
* 47713a0f Add extra logic to check for is input selected in Android - handle element read order
* e3b50c49 Add max select length constant. Add element attribute for maxlength on search component.
Git History Diff doesn't show the merge commit 7e75e5dd
in the file history, but all others including merge commits 6bc5a388
& 80143d60
(see the screenshot below). Unless there are no commits 1a29104d
& dd5b1d6e
here, then the merge commit 7e75e5dd
is unrelated and doesn't need to show up in the file history.
It would be great if you could allow the setting of some diff options like -M
to help with the diffs of renamed files.
For commit messages that consist of multiple sections (as recommended here), the blame view popup displays the summary line and the first section as code block and the rest as markdown.
I'd suggest to display the entire commit message as markdown, as e.g. Github does.
githd causes a 'Loading...' hover to appear for 20+ secs and makes vscode unresponsive.
From Log(Window):
[2021-03-27 13:38:53.297] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 98% of 10210.839ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-738332.cpuprofile' [{"id":"DavidAnson.vscode-markdownlint","total":182,"percentage":0},{"id":"huizhou.githd","total":10007590,"percentage":98},{"id":"ms-python.python","total":1145,"percentage":0},{"id":"ms-toolsai.jupyter","total":252,"percentage":0},{"id":"self","total":194733,"percentage":2},{"id":"streetsidesoftware.code-spell-checker","total":481,"percentage":0},{"id":"vscode.git","total":142,"percentage":0},{"id":"vscode.markdown-language-features","total":6016,"percentage":0},{"id":"vscode.merge-conflict","total":112,"percentage":0}]
[2021-03-27 13:39:23.809] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 98% of 10227.104ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-5a618d.cpuprofile' [{"id":"gc","total":849,"percentage":0},{"id":"huizhou.githd","total":10003297,"percentage":98},{"id":"ms-python.python","total":1991,"percentage":0},{"id":"program","total":416,"percentage":0},{"id":"self","total":3265,"percentage":0},{"id":"vscode.markdown-language-features","total":217159,"percentage":2}]
[2021-03-27 13:42:18.127] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 98% of 10199.79ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-106b7d.cpuprofile' [{"id":"gc","total":319,"percentage":0},{"id":"huizhou.githd","total":10004359,"percentage":98},{"id":"ms-python.python","total":193066,"percentage":2},{"id":"ms-toolsai.jupyter","total":96,"percentage":0},{"id":"self","total":1696,"percentage":0},{"id":"streetsidesoftware.code-spell-checker","total":193,"percentage":0}]
[2021-03-27 13:44:11.805] [renderer5] [warning] {}
[2021-03-27 13:44:37.792] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 98% of 10172.201ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-6cbc3f.cpuprofile' [{"id":"gc","total":304,"percentage":0},{"id":"huizhou.githd","total":10010481,"percentage":98},{"id":"ms-python.python","total":864,"percentage":0},{"id":"ms-toolsai.jupyter","total":150476,"percentage":1},{"id":"redhat.vscode-yaml","total":162,"percentage":0},{"id":"self","total":3810,"percentage":0},{"id":"streetsidesoftware.code-spell-checker","total":561,"percentage":0},{"id":"vscode.markdown-language-features","total":5417,"percentage":0}]
[2021-03-27 13:44:48.152] [renderer5] [warning] UNRESPONSIVE extension host, 'DavidAnson.vscode-markdownlint' took 90% of 166.295ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-a5fe49.cpuprofile' [{"id":"DavidAnson.vscode-markdownlint","total":149779,"percentage":90},{"id":"gc","total":727,"percentage":0},{"id":"huizhou.githd","total":6970,"percentage":4},{"id":"ms-python.python","total":1509,"percentage":1},{"id":"ms-toolsai.jupyter","total":153,"percentage":0},{"id":"program","total":584,"percentage":0},{"id":"self","total":5729,"percentage":3},{"id":"streetsidesoftware.code-spell-checker","total":244,"percentage":0},{"id":"vscode.emmet","total":152,"percentage":0},{"id":"vscode.git","total":258,"percentage":0}]
[2021-03-27 13:44:54.026] [renderer5] [warning] {}
[2021-03-27 13:45:08.477] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 99% of 154.714ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-0d5882.cpuprofile' [{"id":"huizhou.githd","total":153888,"percentage":99},{"id":"ms-python.python","total":438,"percentage":0},{"id":"self","total":298,"percentage":0}]
[2021-03-27 13:45:28.847] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 100% of 10164.73ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-60e1d7.cpuprofile' [{"id":"huizhou.githd","total":10164559,"percentage":100}]
[2021-03-27 13:45:29.187] [renderer5] [error] Server returned 422: Error: Server returned 422
at Object.p [as asText] (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:631:134974)
at s (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1494:48262)
at async n._processCpuProfile (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1687:20305)
[2021-03-27 13:48:10.984] [renderer5] [warning] {}
[2021-03-27 13:48:27.273] [renderer5] [warning] UNRESPONSIVE extension host, 'huizhou.githd' took 98% of 10192.706ms, saved PROFILE here: 'file:///var/folders/00/3ln54lf50bv0bhyp38nskdhr0000gn/T/exthost-da3d65.cpuprofile' [{"id":"huizhou.githd","total":10012692,"percentage":98},{"id":"ms-python.python","total":945,"percentage":0},{"id":"self","total":175801,"percentage":2},{"id":"streetsidesoftware.code-spell-checker","total":503,"percentage":0},{"id":"vscode.extension-editing","total":159,"percentage":0},{"id":"vscode.markdown-language-features","total":2381,"percentage":0},{"id":"vscode.merge-conflict","total":123,"percentage":0}]
If I remove the huizhou.githd extension vscode becomes responsive again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.