Generated .gitattributes are inconsistent

オープン
#187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, git

調査の方向性

editor_vcs_interface.cpp の 421 行付近にある .gitattributes の生成を、godot-git-plugin/src/git_plugin.cpp の 198 行付近にあるものと比較してください。まず適切な共通コンテンツを特定し、そのコンテンツを Godot Git Plugin と Godot Engine の両方に実装して、両方の生成経路が同一の出力を生成することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

bug

Introduction

The Godot Git Plugin creates a pre-filled .gitattributes file, if none was found in the project repository.
When no Plugin is installed, the main Godot Engine provides a similar utility via Version Control -> Create Version Control Metadata.

Expected behavior

Both .gitignore and .gitattributes are the same - independent of the way they were generated.

Actual behavior

.gitignore looks the same using both ways ✔️
.gitattributes yields different outputs depending on the selected generation method ❌

More details

The main Godot Engine yields

# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

as defined in Line 421 of editor_vcs_interface.cpp two years ago.

The Godot Git Plugin yields

# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.cpp text
*.c text
*.h text
*.gd text
*.cs text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary

as defined in Line 198 of git_plugin.cpp four years ago.

Steps forward

### Tasks
- [ ] Decide on the proper content of `.gitattributes`
- [ ] Implement it in both the Godot Git Plugin and the Godot Engine
主要言語
C++
スター
966
フォーク
100
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

godotengine/godot-git-plugin のほかの issue

godotengine/godot-git-plugin の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。