hiroshinishio / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
0 stars 0 forks source link

Git diff textconv is broken on unstaged changes #11

Open hiroshinishio opened 2 weeks ago

hiroshinishio commented 2 weeks ago

Does this issue occur when all extensions are disabled?: Yes

I'm using ansible vault files and the diffs are broken in unstaged changes only.

For ansible vault files, I'm using this .gitattributes config to make sure the diffs are clean when re encrypting a file with the same content twice.

vault.yml diff=ansible-vault merge=binary
diff.ansible-vault.textconv = "ansible-vault view";

However VsCode only seems to support this when staging the changes, not when the changes are unstaged. To me this seems to be a bug.

Screenshot unstaged:

image

Screenshot staged:

image

The file also shows up as modified even though there haven't been any changes when using the diff strategy defined in the .gitattributes file.

Git Diff doesn't have this problem.

gitauto-for-dev[bot] commented 2 weeks ago

Welcome to GitAuto! 🎉 Click the checkbox below to generate a PR!

gitauto-ai[bot] commented 2 weeks ago

Click the checkbox below to generate a PR!

@hiroshinishio, You have 0 requests left in this cycle which refreshes on 2024-09-04 02:56:25+00:00. If you have any questions or concerns, please contact us at info@gitauto.ai.

gitauto-for-dev[bot] commented 2 weeks ago

â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ 0% Reading this issue body, comments, and file tree...

gitauto-for-dev[bot] commented 2 weeks ago

â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ 0% Reading this issue body, comments, and file tree...

gitauto-for-dev[bot] commented 2 weeks ago

â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ 0% Reading this issue body, comments, and file tree...

gitauto-ai[bot] commented 2 weeks ago

@hiroshinishio Pull request completed! Check it out here https://github.com/hiroshinishio/vscode/pull/21 🚀 Should you have any questions or wish to change settings or limits, please feel free to contact info@gitauto.ai or invite us to Slack Connect.