StatusCommand is very slow after checkout with jgit

未關閉
#310 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
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. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

eclipse-jgit/jgit 的其他 Issue

查看 eclipse-jgit/jgit 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。