Commit Graph

181 Commits

Author SHA1 Message Date
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
2b52b93770 Git - enable ESLint rule for git extensions (#277156)
* Initial commit with all exceptions

* First pass of fixing

* Add ignored files explicitly
2025-11-13 15:35:01 +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
Ladislau Szomoru
55e72a1f5e Git - basic extension API to compute working tree short stats (#276134)
* Git - basic extension API to compute working tree short stats

* Fix call

* Fix function
2025-11-07 17:47:07 +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
3cc447e709 Improve layering for git model (#272857)
* Improve layering for git model
- Git clone doesn't belong in the model, removed it
- All the extra repo picking didn't seem to fit into `Git` though, as that is really about git operations
- Added a `CloneUtils` namespace for all the clone stuff to live.

* Update extensions/git/src/clone.ts

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

* CloneManager class

* public/private
2025-10-23 16:04:35 +02:00
Alex Ross
dda6e09f62 Update git clone to use new repo cache (#272276) 2025-10-22 21:06:20 +02:00
Matt Bierner
1908c48d3c Update decorator signature 2025-08-06 14:52:15 -07:00
Matt Bierner
3e7a233c64 Revert git api change 2025-08-06 14:38:32 -07:00
Matt Bierner
d8c9852fe9 Don't use experimental decorators in extensions
Seeing if we can compile our extensions using TS native which doesn't support these. The usage is so low that I think we can just remove them
2025-08-06 13:24:19 -07: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
1c10a0e551 Git - remove proposed api typings from git/github extensions (#237409) 2025-01-07 17:00:02 +01:00
Ladislau Szomoru
e258958d35 Git - expose unsetConfig through the extension API (#237393) 2025-01-07 05:46:07 -08:00
Ladislau Szomoru
f990dfb385 Git - expose env through the extension API (#236598) 2024-12-19 16:27:08 +01:00
Ladislau Szomoru
777fd07ccc Git - adopt #private in Git extension API (#236444)
* Git - adopt #private in Git extension API

* Fix post commit command provider
2024-12-18 11:20:00 +01:00
Ladislau Szomoru
253145591b Git - export stash methods in the extension API (#235773) 2024-12-10 21:48:12 +01:00
Ladislau Szomoru
213334eb80 Git - add onDidCheckout extension API event (#234483) 2024-11-24 06:21:17 +05:30
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
8a9caf323a SCM Graph - Add "Create Tag" action to history item context menu (#228428) 2024-09-13 10:17:44 +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
6b0fa93c81 Git - extension should only open repositories for resources with the file scheme (#225024) 2024-08-07 02:20:56 -07: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