Skip to content
Discussion options

You must be logged in to vote

The attack vector that worried me was not "My disk is compromised, can someone find it in local logs" (which I agree is very very paranoid).

Instead, it was "Does jj implicitly does git add whenever I change a file? Because if so, couldn't anyone with access to the repo (even remote versions) use git fsck and git rev-list to recover versions of files that were never in any commits".

I've run a little experiment. And here are the conclusions:

  • The implicit git add does happen, and does let someone with access to the local copy of the repo find intermediate states .
  • However, git push only pushes objects that correspond to a commit, shaking off the offending object which cannot be recovered …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@p-avital
Comment options

Comment options

You must be logged in to vote
6 replies
@emilazy
Comment options

emilazy May 28, 2025
Collaborator

@ilyagr
Comment options

@p-avital
Comment options

Answer selected by p-avital
@ilyagr
Comment options

@p-avital
Comment options

@ilyagr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants