Commit Graph

158 Commits

Author SHA1 Message Date
Ladislau Szomoru dab807f670 Git - expose more options to apply a patch (#291309)
* Git - expose more options to apply a patch

* 💄 Reorder options
2026-01-28 08:29:50 -08:00
Ladislau Szomoru a067b22e62 Git - expose recent repository information (#289837) 2026-01-23 08:41:06 +00:00
Osvaldo Ortega cb1c94e345 Adding kind property to repository 2026-01-22 14:37:48 -08:00
Ladislau Szomoru 650bc4f9ae Git - expose repository kind through the git extension API (#287737) 2026-01-14 10:51:47 +00:00
Ladislau Szomoru f5e25ad4ca Git - show main worktree under the Worktrees node (#287564) 2026-01-13 15:38:32 +00:00
Ladislau Szomoru d0576dab05 Git - add extension API to get a patch for a commit range (#286159)
* Git - add extension API to get a patch for a commit range

* Turns out `git diff` does not support the `--root` flag
2026-01-06 15:18:53 +00:00
Ladislau Szomoru 43081d3bac Git - expose list of worktrees through the git extension API (#285087)
* Git - expose list of worktrees through the git extension API

* Fix compilation error

* Add property to `RepositoryState`
2025-12-26 02:04:01 -08:00
Ladislau Szomoru b5397ced5d Git - add new method to the interface (#284471) 2025-12-19 07:53:53 -08:00
Ladislau Szomoru c95739960f Git - get the diff and num stats for a commit (#284403) 2025-12-19 10:18:29 +00:00
Ladislau Szomoru a6932a2c79 Git - expose createStash() in the git extension API (#284226)
* Git - expose `createStash()` in the git extension API

* Add method to the interface
2025-12-18 10:59:23 +00:00
Ladislau Szomoru 150682a14a Git - add worktrees node to the Repositories view (#284224)
* Worktree node - initial implementation

* Wire up various commands
2025-12-18 10:48:41 +00:00
Ladislau Szomoru 13a7952cd6 SCM - fix tag sorting in the Repositories view (#280929) 2025-12-03 12:07:00 +00:00
Ladislau Szomoru 7c999f6f62 Git - refactor migrate changes functionality (#278426)
* Git - rework migrate changes

* Add extension API

* Revert some of the options

* Remove staged option

* More cleanup

* More command cleanup
2025-11-19 12:55:43 -08:00
Ladislau Szomoru 5a1c4e6ca5 Git - refactor create/delete worktree and expose extension API (#278107)
* Git - refactor create/delete worktree and expose extension API

* Pull request feedback

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-18 15:37:56 +00:00
Ladislau Szomoru 1644a34e71 Git - fix extension API method signature (#276931) 2025-11-12 15:17:35 +00:00
Ladislau Szomoru a18659d8e1 Git - add extension API to get short stats for staged changes (#276308) 2025-11-08 21:43:43 +01:00
Ladislau Szomoru e36e94ac8b Git - add the new method into the interface (#276152) 2025-11-07 18:36:53 +00:00
Alex Ross edf4ea5879 Simplify git clone API (#272912)
- Don't allow to skip the cache
- Only have "none" post commit action
- Consolidate post commit logic
- I ended up keeping the `Uri | null` return type for the `clone` API. It's just too useful, and there's no reason why we couldn't pass it back if the user didn't decide to open the clone and reload the window.
2025-10-23 16:55:21 +02:00
Alex Ross dda6e09f62 Update git clone to use new repo cache (#272276) 2025-10-22 21:06:20 +02:00
Christy 😺 1297e26760 Handle worktree errors (#258867)
* throw err when choosing already checked out branch

* fix two separate worktree error handling

* Validate branch as soon as it is selected

* Working path validation upfront

* normalize paths

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-07-31 16:44:24 +00:00
Christy 😺 2b37aecab3 Error handling of create worktree and fix create worktree... command from command palette (#257172)
* esc when creating worktree name cancels create operation

* Find main repo for createworktree command palette to prevent repo picker

* error handling of creating worktree

* add back repo picker for create worktree... command
2025-07-22 07:37:50 -07:00
Christy 😺 dd052e8d44 rework deletion flow (#256415)
* rework deletion flow

* change delete label

* Revise deletion of worktree

* reopen correct repo

* clean up

* Refactor deleteWorkspace command

* Do not show deleteWorktree command in the command palette

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-07-18 07:06:08 -07:00
Ladislau Szomoru 6e189da432 Git - add extension API to get the repository root (#250044)
* Git - add extension API to get the repository root

* Pull request feedback
2025-05-30 18:13:55 +00:00
Ladislau Szomoru 761976573f SCM - add the ability to search for a history item (#249819)
* WIP implementation illustrating the problem

* Tweak searching

* Saving my work

* Use the cancellation token

* Adopt delayer

* Remove debug messages
2025-05-26 17:16:06 +02:00
Ladislau Szomoru daab3ffa1e SCM - add the capability to attach a history item as chat context (#249073)
* Saving my work

* Got the variable widget working

* Refactored the variable widget

* Clean up the attachment widget

* Content provider stub

* Add proposed API for chat context

* Add method to get the complete details of a commit
2025-05-16 01:09:12 -07:00
Ladislau Szomoru 2365ea12ec Git - display ahead/behind information in the checkout picker (#244003)
* Initial implementation

* Handle scenario where the git version does not support ahead/behind
2025-03-19 16:04:58 +01:00
Ladislau Szomoru 757405278f Git - do not expose ref commit details to extensions (#243970) 2025-03-19 10:49:00 +01:00
Ladislau Szomoru 0a7b6a0f8b Git - add commit details to ref pickers (#243582)
* Refactor ref parsing

* Initial implementation of getting the commit details

* Show additional information in the pickers
2025-03-14 10:52:13 -07:00
Ladislau Szomoru 11b2f94022 Git - add missing event to the Repository interface (#238298) 2025-01-20 16:17:04 +01:00
Ladislau Szomoru 1600fb4c76 GitHub - avatar resolution improvements (#238239)
* Add support for size

* Add support for extracting user id from GitHub no-reply email addresses

* Fix git blame email parsing

* Extrat link into function
2025-01-19 16:44:40 +01:00
Ladislau Szomoru 5e399f3069 GitHub - add support for batch avatar query (#238114) 2025-01-17 10:56:49 +01:00
Ladislau Szomoru abecfae1ec Git - add avatar resolution to git blame editor decoration hover (#238083)
* Initial implementation

* Add logging

* Improve avatar resolution
2025-01-16 21:33:08 +01:00
Ladislau Szomoru 7610cc1d19 Git - 💄 fix history item details provider name (#238045) 2025-01-16 20:25:19 +09:00
Ladislau Szomoru eaba97f995 Git - extract history item detail provider (#238041)
* Initial refactor of hover commands

* Delete old code for hover commands

* More refactoring
2025-01-16 11:37:27 +01:00
Ladislau Szomoru e258958d35 Git - expose unsetConfig through the extension API (#237393) 2025-01-07 05:46:07 -08:00
Ladislau Szomoru 253145591b Git - export stash methods in the extension API (#235773) 2024-12-10 21:48:12 +01:00
Ladislau Szomoru d085816005 Git - better handle conflict during cherry-pick (#230312) 2024-10-02 16:39:30 +02:00
Ladislau Szomoru 44d05b9dfa Git - cheery-pick now handles the case where the changes are already present on the current branch (#229731) 2024-09-25 18:07:16 +02:00
Ladislau Szomoru 47a8de0b9f SCM Graph - add option to return only a subset of history item references (#228932) 2024-09-18 12:36:57 +02:00
Ladislau Szomoru 557228e262 SCM - Source Control Graph view (#226250)
* Added the new view

* Add support for getting N number of commits

* Added view title actions

* More work to enable view/repository actions

* Expand the view by default, and always show the last N commits

* Add context menu actions

* Improve actions

* Basic infinite scrolling implemented

* Better implementation using --skip instead of a cursor

* Do not refresh graph when pressing Refresh

* Refactor load more/caching

* Rename the view

* Add support for the find widget
2024-08-22 15:54:22 +02:00
Ladislau Szomoru 9219bf5f1f Git - use first commit as common ancestor if the repository has not been published to a remote (#223476) 2024-07-24 01:38:31 -07:00
Ladislau Szomoru 484cd68eff SCM - history view (#216629)
* Hacked up the starting point

* More progress

* More progress

* Simplified algo, basic support for colors

* Add the concept of secondary colors for merge commits

* Further optimizations of the algo

* Bug fixes to clean-up algo

* Add support for curved branches

* Keep track of nodes that are moved so that the second parent for the merge commit is rendered in the correct swimlane

* Account for offset when drawing a base commit

* Algo rework completed

* Revert some of the hacks that were put in place to quickly get going

* Add caching to the history items used in the graph
Remove more hacks that were in place

* Added initial tests

* More work so that incoming/outgoing works along history

* Uncomment more code

* Bug fixes to edge cases

* Experiment with a new rendering for curved branches

* Handle repository with a single commit

* Maintain swimlanes

* Fix condition

* Saving my changes

* More polish and clean-up

* Remove code that is not needed

* Revert change

* Revert more changes

* More fixes

* Rename interface

* One last minor change

* Pull request feedback

* More refactoring

* More pull request feedback

* Fix layering issues
2024-06-19 19:45:06 +02:00
Ladislau Szomoru a8e00a00dd Git - expose untracked changes group (#216414) 2024-06-18 10:59:53 +02:00
Connor Peet 6629c4e0a9 git: allow querying whether files are gitignore (#212982)
* git: allow querying whether files are gitignore

This exposes `checkIgnore`, which I want to use in copilot to determine
which files I should go into when checking references.

* rename method
2024-05-23 21:28:04 +02:00
Ladislau Szomoru a7f384badb Git - remove deprecated extension API (#209010) 2024-03-28 05:25:40 -07:00
Ladislau Szomoru 967170aa0a Git - add the capability to filter git log based on the author (#207169) 2024-03-08 16:41:40 +01:00
Ladislau Szomoru 5be6890cf5 Git - add onCommit event to vscode.git extension API (#202863) 2024-01-19 17:34:44 +01:00
Alex Ross 7109701918 Expose git merge as extension API (#202503)
* Expose git merge as extension API
Part of microsoft/vscode-pull-request-github#200

* Respond to PR feedback
2024-01-15 17:22:43 +01:00
Malix 31f8f0dd17 Remove unused import in extensions/git/src/api/git.d.ts (#200797)
Remove unused import
2023-12-14 09:01:39 +00:00
Ladislau Szomoru 1466cbfcdf SCM - delete scmInputBoxActionButton proposal (#200012) 2023-12-05 10:52:01 +01:00