StatusCommand is very slow after checkout with jgit

Aperta
#310 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, java

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
427
Fork
116
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-jgit/jgit

Tutte le issue di eclipse-jgit/jgit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.