Git Product home page Git Product logo

mhutchie / vscode-git-graph Goto Github PK

View Code? Open in Web Editor NEW
1.9K 1.9K 244.0 10.34 MB

View a Git Graph of your repository in Visual Studio Code, and easily perform Git actions from the graph.

Home Page: https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph

License: Other

CSS 2.42% TypeScript 97.55% Shell 0.02% JavaScript 0.02%
git visual-studio-code visual-studio-code-extension vscode vscode-extension

vscode-git-graph's People

Contributors

dan1994 avatar egi avatar kazuma1989 avatar larrylutw avatar meierw avatar mhutchie avatar sebastianlay-webit avatar shoshinnikita avatar thmatot avatar vfonic avatar wilkmaciej avatar yzhang-gh 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-git-graph's Issues

Make committer identity more apparent

I'll cut straight to the chase.

At the moment the 'Author' column doesn't make it easy to see at a glance who did what commit
image
It not terribly, but I personally can't tell at a glance who's responsible for what.

Feature Request

It would be nice if use of colour/icons to differentiate authors could be applied so that it's possible to tell at a glance who did what.

Ideas

  • colour picking rotation, add colour as centre of git graph dot
  • colour picking rotation, add colour to author name
  • fetch icons from gravitar/github etc and display those

Otherwise this is very nice and easy to use. Great work so far!

tecosaur.

Add option not to centre the view on the expanded commit

Describe the feature that you'd like
Consider the current behaviour:

  1. Open Git Graph.
  2. Click on a commit.

The view jumps so that the expanded commit is centred. This results in a visible flicker. I would suggest adding an option for the graph not to move when a commit is clicked on.

Ability to copy branch and tag name to Clipboard like with hash

Describe the feature that you'd like
Ability to copy branch and tag name to Clipboard like with hash.

Additional context (optional)
When right-clicking on a branch, add an option to copy the branch name to the Clipboard
When right-clicking on a tag, add an option to copy the tag name to the Clipboard

Improve documentation and descriptions of extension settings

Describe the feature that you'd like

Hi, I noticed that we got some customization on the date format recently. Then it occurred to me why not having the "friendly dates" feature.

Additional context

It is something like this (notice the "Date modified" column)

demo

https://blogs.windows.com/windowsexperience/2018/12/19/announcing-windows-10-insider-preview-build-18305/

I am not sure but I think there are already some modules we can make use of.

brilliant

Sorry for abusing an issue for this but...

Love the extension, absolutely brilliant,

a missing feature in vscode

You had that other git log extension but it had rendering isssues which required me te browse a page in history and back every time I opened it (still, better then nothing). But I will see if I can post a review for you on MS's marketplace, in a few hours.

Cheers.

Assigning tags and branches via drag&drop

Very cool that VSC finally getting a proper git log!

Basically I suggest the same thing SmartGit's log does:

You probably know it anyway, but just in case there is native D&D support, that VSC<-Electron<-Chromium should be able to use (and probably is already using)

Thank you.

Highlight HEAD commit some more

I use the "Branch: Show All" mode most of the time in which it's not always easy to identify the HEAD commit – it's just a slightly different dot in the graph. Maybe use some kind of marker or a different background or both together, I'm not sure, but it would be great if I could tell what commit I'm on immediately.

Long loading and embedded page crash

If i open git graph on a new project it works.
adding 3-4 commit , i see them
add one branch and 3-4 commit it also update and works.

But

if i open a relatively small project (5 branches, ~120 commits)
it loads 1-2 minutes then crash and tab content go black.

developer tools error

webviewElement.ts:306 embedded page crashed

  (anonymous) @ webviewElement.ts:306
  dispatchEvent @ C:\Program Files\Mic…iew\web-view.js:142
  dispatchEvent @ C:\Program Files\Mic…view-internal.js:56
  (anonymous) @ C:\Program Files\Mic…view-internal.js:74
  emit @ events.js:182

Visual studio information :

Version: 1.31.1 (system setup)
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763

git graph version is 1.2.0

Doesn't work with Multiple Repositories

Describe the bug
Right now it's only selecting the first repo in the list regardless of the one we've selected.
If you have multiple repos, it doesn't load them, and there is no way to load them in the graph

What does the bug relate to
Repo showed in the graph

To reproduce
Click git graph, and then try to change repos, git graph only reflects the first repo in list

Expected behaviour
Should change between repos if we've selected another

Environment

  • OS: MacOS

Add ability to do a merge from a commit

Describe the feature that you'd like
From the context menu when right-clicking on a commit, add the option to merge into current branch, like when right-clicking on a branch.

Master branch is not continuous on the graph when it is merged into another branch

What does the bug relate to

  • Graph Rendering
  • Git Command
  • Responsiveness

To reproduce
Steps to reproduce the behaviour:

  1. Clone VSCode repo: https://github.com/Microsoft/vscode/
  2. Open Git Graph.
  3. Scroll down to commit b3fd242ad3e4e74a4faddcba6c9318d5b0b5e613.

Notice how the blue line for master branch is not continuous near that commit (see screenshot). Have seen this with another repo in the same circumstances (master branch merged into another branch).

Expected behaviour
Graph is continuous.

Environment

  • OS: [e.g. Windows 10]
  • Visual Studio Code Version: [e.g. 1.31.1]

Screenshots (optional)
image

Add option for annotated tag

Once again, I'll keep this brief and to the point.

It would be nice if there was the option to switch between adding an annotated tag or not within the 'add tag' modal.

Add text box for searching logs

I think we should add the text box on the right side of Branch dropdown. We can input some keywords to searching for logs by commit message, commit ID... The results will be displayed in a table which likes the current table that we have. I think this feature will very helpful for anyone!

Filter branches from view

Describe the feature that you'd like
Provide a way to filter branches from the view. Would be nicer if the user could provide a glob pattern.

Additional context (optional)
Gitlab currently requires that the user checkout the merge request in order for the pipelines to be properly triggered. Unfortunately this creates a messy view in the graph. It would be great if you could add the ability to filter the viewable branches.

Also, since the branches are names like origin/merge-requests/*, it would be even nicer if we could filter out according to a glob pattern.

Doing this will also make it nicer for those using the gitflow workflow where branches are named like feature/some-feature.

Show commits with only tags

Describe the feature that you'd like
Show commits in the graph that is referenced by a tag only

Additional context (optional)
When looking at the graph with 'Show All' selected I could not see commits that are only referenced by tags. (head of commits is a tag only, no branch). When using 'gitk --all' I could see the tags.

Support for portable git installations

Describe the feature that you'd like
Support for portable git installations.

Additional context (optional)
Visual Studio Code has a setting git.path which can be used to point to a portable git installation. This configuration value should be used if it is provided, and then fall back to using git.

Chromium zoom issue causing graph nodes to become misaligned with commits

Describe the bug

The graph shifts with non-zero window.zoomLevel

What does the bug relate to

  • Graph Rendering

To reproduce

  1. Change window.zoomLevel with Ctlr+= or Ctrl+-

Screenshots

"window.zoomLevel": 0

zoom_0

"window.zoomLevel": 1

zoom_1

Environment

  • OS: Windows 10
  • Visual Studio Code Version: 1.32.3

Note

I don't think it is a problem of vscode-git-graph. Rather it is a problem of Electron and Chromium.

change text of context menu

Describe the feature that you'd like
The text of context menu like "Create Branch from this commit" may be should change to "New Branch..." since their should be other steps to finish the job

By the way.I made some change to the UI.
I saw that when one click a commit the detail will show bellow.
I change this to a split window something just like intellij version control doing.
Do you think it is a good idea?
Thanks

Remember last used Repo

When there are multiple repos in your workspace (We'll call them Repo1 and Repo2), when you view Git Graph, change the repo to Repo2, close git graph and reopen git graph, it switches back to Repo1.

git graph

What does the bug relate to
Graph rendering for multiple repos

To reproduce
Steps to reproduce the behaviour:

  1. Add multiple repos to workspace
  2. Open Git Graph
  3. Change repo
  4. Close and reopen Git Graph

Expected behaviour
Expected behavior is for git graph to remember last selected repo

Environment

  • OS: Windows 10
  • Visual Studio Code Version: 1.32.3
  • Git Graph: 1.4.3

Ability to cherry-pick / revert a commit from the context menu

Describe the feature that you'd like
In the commit context menu, the ability to cherry-pick a commit into the current branch or to revert it
There are other fonctionnalities in the screenshot, but they seems less critical to me.
Thanks for your work, your extension is very usefull

Additional context (optional)
An example from the most popular extension (but less usefull than yours :p)

image

push tag option

First, thx for this great plugin.

It would be nice if we had an option to push the Tag once created.

image

Automatic refresh

Describe the feature that you'd like
Automatic update the graph on changes (commit/pull/merge/...) to the git repository.

Additional context (optional)
I would like to use this plugin for git trainings or demonstrations.
Here it would be perfect if the graph will update automatically to the current state of the repository.
Actually the graph must be refreshed manually with a focus change or a click on refresh.

Similar to GitUp (sadly Mac only).

Support for git repositories in subfolders

Referencing this comment in here:#13 (comment)

It would be nice if the extension supports sub-folders with git repos in them. Something like the following structure:

Folder1 (is not a git repo)
-- library1 (is a git repo)
-- library2 (is a git repo)
-- .. (some more git repos)

Folder2 (is not a git repo)
-- library1 (is a git repo)
-- library2 (is a git repo)
...

Thanks mate!

Filter repo

Describe the feature that you'd like
The repo drop-down is a simple drop-down that does not respond to keyboard input. It would be awesome if I could click on the repo drop-down and have the ability to select from the list or type and have the list narrow based on what I type (i.e. filter based on what I type)

Additional context (optional)
Adding a keyboard shortcut to pick the repo could be nice as well.

Load More Commits broken at least for some repos

Describe the bug
Load More Commits is broken at least for some repos.

What does the bug relate to

  • Graph Rendering
  • Git Command
  • Responsiveness

To reproduce
Steps to reproduce the behaviour:

  1. Clone this repo: https://github.com/github/government.github.com
  2. Open Git Graph.
  3. Click Load More Commits.
  4. Wait for a while (~10 min in my case).

After a while, Git Graph tab is just black (see screenshot below), commits are not loaded properly. CPU usage is also high during loading.

Expected behaviour
Commits should be loaded successfully.

Environment

  • OS: macOS 14.0.2
  • Visual Studio Code Version: 1.31.1

Screenshots (optional)
image

Context menu disappears when you move the cursor away.

Describe the bug
Context menu disappears when you move the cursor away.

What does the bug relate to
List the area(s) this issue relates to, for example:

  • Context menu

To reproduce
Steps to reproduce the behaviour:

  1. Open Git Graph.
  2. Right-click on a commit.
  3. Move the mouse cursor away.

The context menu disappears.

Expected behaviour
I am not sure if this is by design but I have not seen this behaviour with any other apps/plugins.

Environment

  • OS: macOS 14.0.2
  • Visual Studio Code Version: 1.31.1

Add an option to change column header background color

Describe the feature that you'd like
I would like to have an option to change column header background color.

Additional context (optional)
This is especially important for completely flat themes, like Material Theme. Note how on the screenshot the column headers are the only element which is light grey. Having an option to change it dark grey like most other UI elements would be great.

image

Extend settings with possibility to define what branch to show in a graph

Describe the feature that you'd like
It would be nice user expierience to have the possibility to make graph showing only one branch by default or via settings. I usually prefer to browse a history of a single branch instead of all branches in one place.
My proposals:

  1. Show a graph of default branch. This would be an option in settings where default is master, but I can specify custom default branch.
  2. Either show a graph of current branch or show branch list to pick from after clicking on Git Graph at the bottom panel. Just like VSCode built-in branch switch works.

Support for git show

First of all, thank you for this awesome extension. I really love it.

The only important functionality that it is missing at the moment in my opinion is the ability to see all file changes within a given commit. Something like "git show" but implemented within the UI.

Thanks and keep up the excellent work!

FR: Add git reset to context menu

One thing stopping me from using this instead of gitk is not being able to reset from the tree. I could have a look at adding it myself if you like...

Add ability to show changes in working folder

Describe the feature that you'd like
When clicking on Uncommitted changes, show the diff similarly to when clicking on a commit.
Add the context-menu option to diff with working folder.

Missing highlight if HEAD on commit

Describe the bug
If a specific commit is used for checkout it is not highlighted in the Graph.

What does the bug relate to
Graph Rendering

To reproduce
Checkout a commit that is not on the end of a branch.

Expected behaviour
The same highlight as for the checkout on a branch end.

Environment

  • OS: Windows 10
  • Visual Studio Code Version: 1.31.1
  • Plugin Version: 1.3.3

Screenshots (optional)
image

$ git status
HEAD detached at afd32c6
nothing to commit, working tree clean

Thank you

This is helpful and beautiful extension, thank you very much 👍

Git Graph Unable to load Git Graph. Either the current workspace is not a Git Repository, or the Git executable could not found.

Describe the bug
Git Graph
Unable to load Git Graph. Either the current workspace is not a Git Repository, or the Git executable could not found.

git.path is defined in the settings file

What does the bug relate to
List the area(s) this issue relates to, for example:

  • Graph Rendering

To reproduce
Steps to reproduce the behaviour:

  1. Open a Workspace
  2. Click on 'Git Graph' or F1 > Git Graph
  3. See error

Expected behaviour
I would expect to see a colored graph

Environment

  • OS: [Windows 10]
  • Visual Studio Code Version: [1.31.1]

Screenshots (optional)
Add any screenshots to help explain your problem.
error1

Additional context (optional)
git.path is defined and other git extensions are working GitHistory etc

Show Stashes

Describe the feature that you'd like
It would be nice to to be able to see stashes in the graph, it could be selectable like with "Show Remote Branches"

Additional context (optional)
Like when using
git log --oneline --graph --decorate --all $(git reflog show --format="%h" stash)
or
gitk --all

Show commit date as well

Describe the feature that you'd like
A column that shows commit date rather than or adjacent to author date

Additional context (optional)

When running git log without filter options, eg "--since", git will show the author date. But when using said options or using git bisect it will use the commit date. Yet the commit date is not necessarily the same as the author date.

This discrepancy can manifest itself in various ways, but most commonly when rebasing branches. One situation in particular is running CI package updates and rebasing on develop to bring the current branch up to date.

I propose adding the %ct placeholder to assist when running commands like git bisect or filtering commits by date.

I'm willing to make a pull request if you'd like. Just point me on where to look.

Add checkout to context menu?

Similarly to #2, I'd often appreciate a git checkout functionality in the context menu.

BTW, I use Git Graph more and more, the UI is so pleasant to use! Great job!

Ability to compare branches (actually, commits)

Thank you so much for this awesome extension. I used to use the Git History extension but immediately switched to yours since I found it (and left the first 5 ⭐ review of your extension 😎).

Describe the feature that you'd like

Select a commit for comparison, then select another commit to compare

Additional context (optional)

demo

(This is just an example of what Git History does. I don't think it is a good idea to show the comparison in the file explorer)

Resizable columns

The "Graph", "Description", etc. columns should be resizable. When working with massive repositories, the graph column can become very large, even though the latest most relevant commits/branches are only a few levels deep. (example)
Ideally the resized column width values would be saved/restored for each individual repo.

GitKraken has a pretty good implementation of this I think, by allowing you to peek the commit avatar behind the hidden part (example)

Add ability to do rebase on a commit or branch

Describe the feature that you'd like
From the context menu when right-clicking on a commit, add the option to rebase on the commit.
From the context menu when right-clicking on a branch, add the option to rebase on the branch.
For both commit/branch rebase, ask if rebase should happen interactively.

Dark dropdown text in GitHub sharp theme

Describe the bug

As this screenshot show, the branch dropdown is totally dark in GitHub sharp theme.

Screen Shot 2019-03-12 at 3 46 11 PM

What does the bug relate to
List the area(s) this issue relates to, for example:

  • Graph Rendering

Expected behaviour
A clear and concise description of what you expected to happen.

Environment

  • OS: macOS High Sierra
  • Visual Studio Code Version: 1.32.1

Screenshots (optional)

Screen Shot 2019-03-12 at 3 46 11 PM

Support for multi-root workspaces, with multiple git repositories

Describe the feature that you'd like
When there are multiple workspaces, the default workspace will only be resolved by default.

But this is not what we want, we need to be able to select the specified workspace and parse.

For example, open the terminal.

There will be a popup window in which workspace to open

2019-02-25 21 31 34

Additional context (optional)
none!

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.