-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Git interface for file selection and declare git variable for repository operations * wiring up globlas * Add git helper functions for branch and file modifications detection * Use `--porcelain` format in git status to ignore deleted files * Refactor GitClient to use a unified exec method for executing git commands * Refactor GitClient for scope handling and add diff method with filters * Refactor git diff command to use object-based parameters and exclude specific paths * Refactor diff parsing and update GitClient to handle excluded paths correctly * Refactor git diff commands to use new API methods for consistency and readability * refactor: replace host.exec with git.diff and git.exec for cleaner code * Refactor git diff argument handling for clarity and correctness * Enhance chat output by applying prettifyMarkdown function * Add verbose logging for default branch retrieval and console output in script * Update defaultBranch method to use 'remote show' and add setDefaultBranch method * Change `findModifiedFiles` argument from "branch" to "base" for better filtering * Make glob input dynamic and add prompts for missing variables * Add askStageOnEmpty option to GitClient and update scripts to use git.diff method * Add documentation and refactor diff handling logic in core and vscode packages * Add trace filename logging and return it from setupTraceWriting function * Refactor git diff execution to use git library and improve context definition in checkModifications function. * Update git.findModifiedFiles to use "base" instead of "branch"
- Loading branch information
Showing
43 changed files
with
1,368 additions
and
186 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: Git | ||
description: git helpers | ||
sidebar: | ||
order: 51 | ||
--- | ||
|
||
The `git` helper provides a thin wrapper around invoking the [git](https://git-scm.com/) executable. | ||
|
||
## defaultBranch | ||
|
||
Resolve the default branch, typically `main` or `master` in the repository. | ||
|
||
```js | ||
const df = await git.defaultBranch() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.