Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Adds stashes into Commit view #3797

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eamodio
Copy link
Member

@eamodio eamodio commented Nov 26, 2024

Still a WIP, but it works for the Commits view. We will need to figure out how to get it to work with the Commit Graph without having to refresh all the commits (and stashes) based on the selected "Branches Visibility"

@axosoft-ramint maybe instead of filtering the stash commits, we just also return a set of "reachable" commits, and then be able to pass both sets into the Graph or something.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 13 changed files in this pull request and generated 1 suggestion.

Files not reviewed (8)
  • package.json: Language not supported
  • src/views/branchesView.ts: Evaluated as low risk
  • src/views/commitsView.ts: Evaluated as low risk
  • src/views/nodes/branchNode.ts: Evaluated as low risk
  • src/views/nodes/repositoryNode.ts: Evaluated as low risk
  • src/git/gitProviderService.ts: Evaluated as low risk
  • src/views/nodes/remoteNode.ts: Evaluated as low risk
  • src/views/nodes/branchesNode.ts: Evaluated as low risk

const data = await this.git.log(
repoPath,
{ configs: gitLogDefaultConfigsWithFiles, ref: options?.ref, stdin: options?.stdin },
{ configs: gitLogDefaultConfigsWithFiles, ref: ref, stdin: stdin },
Copy link
Preview

Copilot AI Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the 'stdin' variable is only included when it has valid content to avoid unexpected behavior. Suggestion: { configs: gitLogDefaultConfigsWithFiles, ref: ref, ...(stdin ? { stdin } : {}) }

Suggested change
{ configs: gitLogDefaultConfigsWithFiles, ref: ref, stdin: stdin },
{ configs: gitLogDefaultConfigsWithFiles, ref: ref, ...(stdin ? { stdin } : {}) }

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant