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

git rev-parse @{u} leads to git diff "hallucinations" by referring to files that are present in the upstream branch but not known to the local branch yet. #6947

Open
dkashyn-sfdc opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug

Comments

@dkashyn-sfdc
Copy link
Contributor

Description of the bug:

For this to be the case the origin branch is supposed to have changes that are not merged/rebased into the current branch.

After having the origin branch fetched but not merged/rebased into the current branch, @{u} can add files that are not known to the current branch to the Working Set.

WorkingSet should be populated by using only files that are present current branch lineage.

@{u} is worse option than @ in some scenarios...

Which category does this issue belong to?

Intellij

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  1. Make sure that Sync->Expand sync to Working Set is checked.
  2. Change the origin branch by the addition of a new file or making any edits in any existing file, without making ANY local changes.
  3. git fetch
  4. Run Bazel sync

The file(s) that is added/modified on the remote will be considered as part of the Working Set even though it doesn't make sense in the context of the current branch.

Which Intellij IDE are you using? Please provide the specific version.

2024.2.2

What programming languages and tools are you using? Please provide specific versions.

No response

What Bazel plugin version are you using?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

4 participants