Coder Social home page Coder Social logo

waderyan / vscode-gitblame Goto Github PK

View Code? Open in Web Editor NEW
71.0 3.0 48.0 7.7 MB

Visual Studio Code Extension - See Git Blame info in status bar.

Home Page: https://marketplace.visualstudio.com/items/waderyan.gitblame

License: MIT License

TypeScript 100.00%

vscode-gitblame's Introduction

Git Blame

See Git Blame information in the status bar for the currently selected line.

Feature Usage

Install

Open up VS Code.

  1. Type F1
  2. Type ext in command palette.
  3. Select "install" and hit enter.
  4. Type "blame"
  5. Select "Git Blame" extension and hit enter.

Backlog

Update Log

Version 1.1

  • Reduced text size which was causing the blame info not to show.
  • Merged in PR (credit to @fogzot) that searches for .git in parent dirs.

Version 1.2

  • Merged in PR replacing 'Hello World' message with hash and commit message (credit to @carloscz).

Version 1.3

  • Merged in PR to make the status bar message interactive (credit to @j-em);

vscode-gitblame's People

Contributors

carloscz avatar fogzot avatar j-em avatar wade-ryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vscode-gitblame's Issues

Show the blame line ranges

It would be nice to see which ranges of lines where changed together.
You could use the decorator API for this.

Commit message on click

Hi, can you please show commit message popup on author name click, it would be super helpful :)

Bitbucket commit URL invalid

When selecting the View button on a commit, the extension opens the URL of https://bitbucket.org/MyCompany/MyRepo/commit/MyCommitHash which leads to a 404 page. It should be https://bitbucket.org/MyCompany/MyRepo/commits/MyCommitHash

Not working

Windows 10, Vcode 1.5.1, GitBlame 1.3.0 (installed)
After I click on line in editor (I tried different file types), nothing is shown in status bar (except gitblame icon which is there).

add link to commit in github

a click on the status bar text or clicking on the info message would send me straight to the GitHub page of the commit itself
10x :)

Feature: Add git submodule support

Just got assigned a project at work which includes submodules. Git blame doesn't seem to work on files which are not part of the root repository.

The status bar only displays a circle with two small lines aside

Using vscode insider edition (2016-07-14), only a small circle with two small lines aside is displayed. On hover it shows tooltip 'git blame'. Clicking on the status bar does not invoke any action.

Note aside: the git blame extension never worked on this machine, so I'm not quite sure if the system meets the requirements.

vscode-gitblame ignore "git.path" setting

Can you add supporting of VSCode setting "git.path"?

Currently your extension use "git-blame" module. But it use module "git-spawned-stream".
"git-spawned-stream" is very simple function, which exec "git" without any paths.
I am not expert in NodeJS, but if it possible, can you overwrite this function-module?
Or overwrite both of them. "git-blame" is also simple enough module...

thank you.

Wrong blame shown for a commit that was authored by someone else

git blame that is shown in VSCode is pointing to the right commit, but it is authored by someone else i.e git blaming the wrong person in UI.

This seems to be breaking the core functionality of the plugin.
Let me know if you need some diagnostics or specifications as I am unsure what to provide here that would be helpful.

Thank you

Activating extension `waderyan.gitblame` failed: Cannot find module '../src/textDecorator'.

Hi,

the latest gitblame release (1st of May 2017) does not start on my visual studio code.
The console prints the following:

Activating extension waderyan.gitblame failed: Cannot find module '../src/textDecorator'.

This is the error stack:

[Extension Host] Here is the error stack: Error: Cannot find module '../src/textDecorator'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Function.J.i._load (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:374834)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/luca/.vscode/extensions/waderyan.gitblame-1.8.0/out/src/controller.js:4:25)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Function.J.i._load (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:374834)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/luca/.vscode/extensions/waderyan.gitblame-1.8.0/out/src/extension.js:5:22)
at Module._compile (module.js:556:32)

No longer visible in status bar

Difficult to pinpoint exactly why, because I updated both Code and Git this morning. I uninstalled/reinstalled the extension with no luck.

  • Code version 1.0.0
  • Git version 2.8.1.windows.1

output wrong data if add/remove strings

GitBlame ignore new line shifts in modified file.

Steps:

  1. open document modify history has few people, for example:
    line 1 by user A
    line 2 by user B
    line 3 by user C
  2. put cursor in end of line 1 and press Enter
  3. check owners of lines 1-4

Expected:
line 1 by user A
line 2 (empty) has no user
line 3 by user B
line 4 by user C

Actual:
line 1 by user A
line 2 (empty) by user B
line 3 by user C
line 4 has no user

Too many options for gitblame

I have seen that this extension has of today 84 possible settings.
I think it is time for a GUI tab with all the essential options (with checkboxes, dropdowns and so on) plus a a advanced section because the options are too crowded.

Ignore whitespace changes

Hi, it would be great if whitespace changes could be ignored. I have prepared change of git-blame enabling this behaviour, but original author of NPM package seems to be a bit inactive.

Would You consider moving to another package for this feature?

Commit time is not correct

The commit time of some of the commits is not correct, I found this bug existed for a long time, even on the Git Blame 1.3.0.
Hope you guys can fix it as soon as possible.
3q

Cannot see commit details

Recently, I've been unable to click on the bottom bar to see the commit for the current line. When I click, I see the text change to "Waiting for git blame response", and it never stops trying to load. I have version 5.0.1 of the extension, and am running VS Code 1.50.0 on macOS Mojave 10.14.6, if that helps. I haven't changed any of the settings from their defaults.

Many git processes can be spawned at startup

From microsoft/vscode#23773

  • Open a large git repo in vscode (here, chromium)
  • Quickly after opening vscode, make an edit, save the file
    • Repeat making an edit and saving several times

Git processes are spawned without limit:

image

.gitignore is the file I was editing. I think another one is spawned each time I save the file. My computer is slow and my tunes start skipping (my main motivation for investigating).

They run for a very long time. I close that vscode window, and they are still running a minute or more later.

Only reproes if I do this right after opening the vscode window. I can't repro it later.

Wrong history by line (Visual Studio Code 1.7.1 / windows 10)

Example
I have 2 lines

aaaaaa (edited 1 month ago)
bbbbb (edited 2 month ago)

If I insert new row:
aaaaaa (edited 1 month ago)
NEW LINE (edited 2 month ago) ERROR
bbbbb ( no info??? ) ERROR

I just enter new row, without commit.
Need shift info by rows, if inserted new rows.

Awaiting git blame response forever

after latest update, vscode causes vscode-gitblame unresponsive and below process and it's message takes forever

waiting for git blame response

vscode:
Version: 1.50.1
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-13T14:44:48.716Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-52-generic snap

vscode-gitblame version: 6.0

Is there anyway to customise starting point of commit history?

I am working on an enterprise size repo right now having ~50K commits, and the extension keeps on crashing while indexing the source files. If these two are co-related I was wondering if it was possible to provide a more latest commit as base history for indexing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.