git-crypt icon indicating copy to clipboard operation
git-crypt copied to clipboard

git-crypt breaks git partial staging

Open thebucc opened this issue 6 years ago • 1 comments

The problems can be reproduced like this:

  • from command line: 'git add -p' -> Only binary files changed.
  • from git gui: right-click -> 'stage lines for commit' is greyed out

The problem seems to be that if a file is encrypted, it is seen as binary, and patch staging only works for text files so git can only stage the full file. Maybe this is intrinsic to how git-crypt works, but maybe there are workarounds, maybe something can be done changing settings in .gitattributes?

thebucc avatar May 24 '19 13:05 thebucc

Duplicate of #167.

romain-dartigues avatar Dec 11 '19 15:12 romain-dartigues