Bitbucket Server で diff トランスコーディングを使用する
Bitbucket Server を管理する
- ユーザーとグループ
- 外部ユーザー ディレクトリ
- グローバル権限
- Setting up your mail server
- Bitbucket Server をアトラシアン アプリケーションに連携する
- Bitbucket Server を外部のデータベースに接続する
- Bitbucket Server を別のサーバーに移行する
- Run Bitbucket in AWS
- Bitbucket Server のベース URL を指定する
- アプリケーション ナビゲーターを構成する
- アプリの管理
- Bitbucket での監査
- Bitbucket Server のライセンス詳細を更新する
- Bitbucket Server 設定プロパティ
- Bitbucket サーバーを異なるコンテキスト パスに移動する
- データの復元とバックアップ
- Bitbucket Server で Git リポジトリへの HTTP(S) アクセスを無効化する
- スマート ミラーリング
- Data Center 移行
- Git Large File Storage
- Git Virtual File System (GVFS)
- Enabling SSH access to Git repositories in Bitbucket Server
- Bitbucket Server で diff トランスコーディングを使用する
- Changing the port that Bitbucket Server listens on
- ロックアウトのリカバリ プロセス
- Bitbucket Server のプロキシ設定および保護
- High availability for Bitbucket
- サードパーティ製アプリの診断
- Enabling JMX counters for performance monitoring
- Bitbucket Server のデバッグ ログ
- Bitbucket Server の拡張
- Add shortcut links to a Bitbucket Server repository
- Administer code search
- Adding additional storage for your repository data
- Add a system-wide announcement banner
- アプリケーションを横断したプロジェクト リンクの構成
- レート制限でインスタンスの安定性を改善する
- Atlasssian Data Center アプリケーションで CDN を使用する
- Managing personal access tokens
- Connecting to a 3rd party application using Application Links
- Setting a system-wide default branch name
- 非アクティブなプル リクエストを自動的に却下
- データベース パスワードの暗号化
このページの内容
関連コンテンツ
- 関連コンテンツがありません
As of Bitbucket Server 3.1, Bitbucket Server supports transcoding for diffs. This allows Bitbucket Server to convert files in encodings like EUC-JP, GB18030 and UTF-16 to UTF-8, so they are processed correctly by git diff
, which only supports UTF-8. Similar transcoding has been applied to Bitbucket Server's source view since it was released, so this change brings the diff view in line with the source view. Diff transcoding is applied to commit and pull request diffs, as well as the diff-to-previous view.
Git for Windows (旧称 msysgit) には、Unicode パスに関する既知の問題があります。差分トランスコーディングはサポートされているすべてのバージョンの Git for Windows で機能しますが、Unicode パスをサポートするには 1.8.0 以降が必要です。
差分トランスコーディングを有効にする
差分トランスコーディングは (常に実行されるソース ビューのトランスコーディングとは異なり)、各リポジトリで明示的に有効化する必要があります。
リポジトリ管理者はリポジトリ設定ページで差分トランスコーディングを有効化できます。
パフォーマンスおよびスケーリング
There's a performance consideration with transcoding. It is implemented using Git's textconv
support, so using it adds overhead to displaying diffs. Where possible, the best approach, given git
only supports UTF-8 content, is to use UTF-8 encoding so that transcoding is not necessary. In repositories without non-UTF-8 content, diff transcoding should be left disabled. Other encodings are often a necessity, however, and for repositories containing such content enabling diff transcoding allows using the full range of Bitbucket Server features.
When transcoding is enabled, git diff
writes the before and after blobs to temporary files and invokes the textconv
script once for each file. The script Bitbucket Server installs uses Perl to send a request back to Bitbucket Server with the path to each temporary file. Bitbucket Server then opens each file, detects the encoding using the same algorithm the source view uses, converts the file to UTF-8 and streams it out for git diff
to use. After git diff
has invoked the textconv
script the temporary files it created are deleted.
ディスクへの blob の書き込み、Perl の起動、および Bitbucket Server へのコールバックはすべて、トランスコーディングのない差分を実行する場合と比較して、オーバーヘッド処理となります。オーバーヘッドの量は、差分の規模によって異なります。2,000 ~ 3,000 行以下の標準的なサイズのファイルを比較した場合、オーバーヘッドは非常に小さく、平均的なサーバーで 50 未満となります。ただし、大きなファイルを比較すると、オーバーヘッドにより、差分の表示に大幅な遅延が発生する可能性があります。
関連コンテンツ
- 関連コンテンツがありません