StatusCommand is very slow after checkout with jgit

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

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

評価

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

調査の方向性

Start by comparing the cited commit 038353ea91fc4643c8e94215bdafccb8e34ea755 with JGit 7.7.1, focusing on CheckoutCommand, StatusCommand, and DirCache.writeTo. Trace why checkout leaves index timestamps that trigger smudgeRacilyClean and content comparisons during status; done when checkout writes correct timestamps and status no longer incurs the reported slowdown.

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

説明

Version

7.8.0

Operating System

Windows, Linux/Unix

Bug description

Hello,

sorry for my bad english.

I think, there is a regression with commit:

https://github.com/eclipse-jgit/jgit/commit/038353ea91fc4643c8e94215bdafccb8e34ea755

After checkout with jgit (CheckoutCommand), StatusCommand is very slow.

Actual behavior

With CheckoutCommand many entries in index are smudge because smudeSec is befoe entryMtimeSec:

Image

so smudgeRacilyClean is called in DirCache.writeTo

This leads in StatusCommand to compare the file content.

Expected behavior

With checkout the index should be clean and all files in the Index should have the correct timestamp.

Relevant log output

Other information

In 7.7.1 the problem is not present. The index is written correct.

主要言語
Java
スター
427
フォーク
116
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

eclipse-jgit/jgit のほかの issue

eclipse-jgit/jgit の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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